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

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

23 Sep 2017, 17:32

I want to create a related set of GUI forms which are arranged as faces of a 3D cube in Unity 3D.
So there could be up to 6 related forms per 3D cube

I created a mockup using Blender (see .jpg in .zip in Attachment) where I used UV Mapping to wrap some .jpgs showing some lines of text to the standard Blender Cube's faces and then I imported the cube into Unity 3d.

Now I want to substitute Noesis GUI forms (i.e. "live' dialogs) in place of the static .jpgs, to render on each cube face.
The goal is to be able to interactively rotate the cube to position a given face to be able to interact with the form on that face.

Is that possible, or do I have to treat the Noesis GUI forms as 2D objects and then render them in close proximity to each 3D cube face?
Attachments
UnityCube02_JSF.zip
(204.71 KiB) Downloaded 13 times
 
ai_enabled
Posts: 186
Joined: 18 Jul 2013, 05:28
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?

23 Sep 2017, 18:21

Hi!
You can setup NoesisGUI component to render to a render texture (and have many of them). So you can render to 6 render textures and map them to each face of the cube. Though, at a single time, only 3 faces of the cube will be visible - you can disable rendering for not visible NoesisGUI panels and use only 3 render textures. I don't know if there is a sample for that.
Also, @jsantos mentioned in the VR GUI topic that it's possible to render directly in 3D space, but I've never tried it.
Regards!
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
 
dlypka
Topic Author
Posts: 3
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?

24 Sep 2017, 18:01

Thank you for the research.
I will check it out.
 
User avatar
sfernandez
Site Admin
Posts: 1167
Joined: 22 Dec 2011, 19:20

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?

25 Sep 2017, 17:20

As aienabled mentioned you can render a Noesis xaml into a texture (RenderTexture) and apply it to each cube face material.

I created the following sample to show how to setup some quads to render a xaml as their texture: https://drive.google.com/open?id=0Bwl3C ... HYwMjdaRmc
 
dlypka
Topic Author
Posts: 3
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?

26 Nov 2017, 20:28

cubeTest01.jpg
Thank you for this sample.

I have a few questions about it.

Can you also provide the source code for the related Microsoft Blend project?
I am a newbie to Noesis GUI and so I am not yet clear on what source code / images has to come from Blend and what comes from Unity 3d, to make this demo happen...

Is that blue logo/icon supposed to represent a Noesis GUI control?
It appears perpendicular to the cube face just to demonstrate the 3D nature of the UI, right?
So an entire Noesis GUI dialog form could be put there as well?

When I load it into Unity 3d as shown in the above snapshot,
then when I try to rotate the cube in the Unity Editor,
the cube splits apart:
cubeTest02.jpg
I assume this is because the cube was constructed in Microsoft Expression Blend which has limited 3D features?

I had been doing my experiments using the default cube from Blender.
That one rotates as expected in Unity 3d.
BlenderCube01.jpg
Is there any way to have the Noesis GUI work with this Blender Cube?
 
User avatar
jsantos
Site Admin
Posts: 1874
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?

29 Nov 2017, 16:08

Blender is not related at all with NoesisGUI. When you render to texture in NoesisGUI you can use that output in whatever geometry you create. We are going to incorporate a render to texture sample soon in our package. Thanks for the suggestion.

Who is online

Users browsing this forum: No registered users and 1 guest