Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
pcace's avatar
pcace
Honored Guest
11 years ago

one Scene in 2D next one in 3D?

Hi,

i have a Problem with the "directtorift" App which comes out of Unity (which is an awesome feature compared to DK1 ;) )

Right now i have a 2D interface which uses some GUI elements from walhalla interactive toolkit




box_rahmen = new Box("Box.box_rahmen", new Rect(Screen.width/2 - 250, Screen.height/2 - 90 , 500, 200), new GUIContent(""));

tgl_frau = new ToggleButton("Toggle.tgl_frau", new Rect(Screen.width/2 - 140, Screen.height/2 - 70 , 100, 15), new GUIContent(" Weiblich? "));
tgl_mann = new ToggleButton("Toggle.tgl_mann", new Rect(Screen.width/2 - 140, Screen.height/2 - 50 , 100, 15), new GUIContent(" Männlich? "));


lbl_geschlecht = new Label("Label.lbl_geschlecht",new Rect(Screen.width/2 - 180, Screen.height/2 - 50 , 100, 20), new GUIContent("sex (m/w): "));
lbl_alter = new Label("Label.lbl_alter", new Rect(Screen.width/2 - 180, Screen.height/2 - 30 , 100, 20), new GUIContent("age:"));
lbl_beruf = new Label("Label.lbl_beruf", new Rect(Screen.width/2 - 180, Screen.height/2 - 10 , 100, 20), new GUIContent("profession:"));
lbl_herkunft = new Label("Label.lbl_herkunft", new Rect(Screen.width/2 - 180, Screen.height/2 + 10, 150, 20), new GUIContent("size of hometown:"));
lbl_groesse = new Label("Label.lbl_groesse", new Rect(Screen.width/2 - 180, Screen.height/2 + 30, 100, 20), new GUIContent("height in cm:"));


etc.. etc.

the next scene loaded will be a 3D scene, using the Oculus.
The Problem now is, that i have two options at the moment:
1. I use the "directtorift" feature, which gives me a nice 3D VR Experience, but i cannot see any gui element.
2. i do not use the directtorift feature. This gives me the gui features, but the 3D VR only in a window... (and i have no idea how to get this to my oculus!

How can i solve that Problem? I would like to use the direct to rift feature, but in the end it doesnt matter...

Any Help?

Thanks a lot!

1 Reply

Replies have been turned off for this discussion
  • Orami's avatar
    Orami
    Honored Guest
    I'm not sure if this will help you or not since it is done around the unity engine viewtopic.php?f=37&t=4944 Supposedly it gives you the ability to make a 3D GUI that will display properly in 3D. I've just started messing around with unity and the rift sadly it seems my C++ stuff won't help me much here(ok ok so it helps a little bit).