dlypka
Topic Author
Posts: 9
Joined: 17 Mar 2013, 08:49

Re: Can Noesis GUI form "wrap" a Unity 3D Cube face? Is the GUI from from XAML a 2D or a 3D object in Unity?

17 Jul 2020, 13:37

Rendering to texture is explained here:

https://www.noesisengine.com/docs/Gui.C ... #rendering

Porting that Unreal example should be straightforward, please let us know about it.

I think, not sure, you don't need Unity 3D Pro for that, it was like that in the past but I think these days the feature is available in the free version of Unity.
As I understand it, there are 3 methods to present a Noesis Widget in 3D:

1. Transform3D - this rotates the UI in place, not pasted to the surface of any 3D object
2. RenderTexture - pastes the UI to the surface Texture of a 3D object
3. In UE Unreal Engine: present a `NoesisView` in UE 3D

1. Inventory and
TicTacToe are the only 2 3d samples using Transform3D

2. But Actually the most interesting command is RenderTexture (.renderTexture) in the Unity version of the Widget3D sample:
C:\Lypka\Unity 3d\Tutorials-master\Samples\Widget3D\README.md(7):This example shows how to use a Unity's *RenderTexture* to draw UI controls inside 3D scenes.
C:\Lypka\Unity 3d\Tutorials-master\Samples\Widget3D\README.md(9):The XAML is rendered to a camera with a RenderTexture target. That texture is then used in the material assigned to a 3D object in the scene.
C:\Lypka\Unity 3d\Tutorials-master\Samples\Widget3D\Unity\Assets\NoesisGUI\Samples\Widget3D\Textures\ScreenF.renderTexture(4):RenderTexture:

3. The additional 3D UI method is in Widget3D in UE Unreal Engine
The UE Widget3D sample does not use Transform3D or RenderTexture
Instead it uses some technique to present a `NoesisView` in UE 3D
This is a demo that shows how to "present a `NoesisView` in 3D". This sample makes use of Unreal Engine's First Person package assets and code.
The main focus points of this demo are:
* Shows how to create a `Widget` from a `NoesisView` within a `WidgetComponent` and interact with it using a `WidgetInteractionComponent`.
* Shows how to override the default `DataContext` of a `NoesisView`.

Question:

To convert the UE Unreal Engine Widget3D "Menu on a cube face" view (without the First Person components) into Unity
should it be done with RenderTexture or with the 'NoesisView' technique?
Or is the NoesisView technique only available in UE Unreal Engine?
 
User avatar
sfernandez
Site Admin
Posts: 3008
Joined: 22 Dec 2011, 19:20

Re: Can Noesis GUI form "wrap" a Unity 3D Cube face? Is the GUI from XAML a 2D or a 3D object in Unity?

17 Jul 2020, 14:10

The Widget3D tutorial includes a sample for Unity too: https://github.com/Noesis/Tutorials/tre ... et3D/Unity
Where a UI is rendered in a 3D plane as a texture.

If you want to create a scene with a cube, do the following:
- Create a Cube, select the material you want to use, assign a RenderTexture.
- Then drag a xaml onto the Cube gameobject, it will create a NoesisView component. Set the same RenderTexture in the "Render Target" of NoesisView component.
- Now you can play the scene to see the cube with the UI rendered on its faces.

Hope this helps.
 
User avatar
jsantos
Site Admin
Posts: 3939
Joined: 20 Jan 2012, 17:18
Contact:

Re: Can Noesis GUI form "wrap" a Unity 3D Cube face? Is the GUI from from XAML a 2D or a 3D object in Unity?

18 Jul 2020, 13:22

To convert the UE Unreal Engine Widget3D "Menu on a cube face" view (without the First Person components) into Unity
should it be done with RenderTexture or with the 'NoesisView' technique?
Or is the NoesisView technique only available in UE Unreal Engine?
If your UI doesn't have 3D layers, I recommend using RenderTexture as sergio said.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 9 guests