Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get Camera position and Forward Vector via python

1 REPLY 1
Reply
Message 1 of 2
Anonymous
461 Views, 1 Reply

Get Camera position and Forward Vector via python

Hi All

I am new to VRED. I am trying to get camera position and forward vector of camera to draw something in front of the camera with a distance. Something like this:

 

cameraPosition+camera.Forward*someDistance

 

How can I do it? I need an urgent help.

 

Thanks

1 REPLY 1
Message 2 of 2
sinje_thiedemann
in reply to: Anonymous

Hi,

the easiest solution to draw something in front of a camera, is to add the geometry as a child to the camera node in the scenegraph. The camera node is a transform node and so the geometry will be transformed accordingly when moving the camera.

 

Regards

Sinje

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report