ParallelGraphics Forums
Cortona VRML Client
You are here: [Forums]::[Browsers]::[Cortona VRML Client]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
3D Page Of the Week
email:  password:
   Browsers - Cortona VRML Client

Subject: fixed / rotating origin
Sender: dan.vera@gmail.com 4.06.09 16:25

Hello All,

I am trying to display a geometry (a xyz coordinate in my case) that would sit in a corner of the screen area, but that would rotate with the scene ... the same as the reference coordinate in some CAD software.

I have managed to make a fixed "user panel" using the following code, but I cannot make it rotate and stay at the same place:

#VRML V2.0 utf8
DEF PROXSENSOR ProximitySensor {size 1e8 1e8 1e8}
DEF my_tra Transform {
children [
DEF my_pnl Transform {
translation 0 -1 -6.2
     children [
        DEF my_geo Shape {
         geometry Box {
         size 0.2 0.5 0.1
         }
     }
     ]
}
]
}
ROUTE PROXSENSOR.position_changed TO my_tra.translation
ROUTE PROXSENSOR.orientation_changed TO my_tra.rotation

If anyone has a idea/solution, i'd appreciate.

thkx

 


fixed / rotating origin / dan.vera@gmail.com / 4.06.09 16:25
     Re: fixed / rotating origin / zlonka@gmail.com / 15.06.09 20:49
         Re: fixed / rotating origin / dan.vera@gmail.com / 18.06.09 02:32

Messages in thread: 3


© 1998-2009 ParallelGraphics. All rights reserved. Terms of use.