how to Gets a projection value On Camera(ViewPort) from.....

Problems building or running the engine, queries about how to use features etc.
hanju
Gnoblar
Posts: 6
Joined: Tue Dec 07, 2004 1:48 pm

how to Gets a projection value On Camera(ViewPort) from.....

Post by hanju »

Could you tell me how to Gets a projection value On Camera(ViewPort) from world position.

"getCameraToViewportRay" can Gets a world space ray as cast from the camera through a viewport position.

how to Gets a projection value On Camera(ViewPort) from world position ?
Last edited by hanju on Sat Jan 22, 2005 4:23 pm, edited 1 time in total.
playerwing
Gnoblar
Posts: 20
Joined: Fri Nov 19, 2004 9:48 am

Post by playerwing »

Position from world ???

try this:
Ogre::Camera::getPosition ()

Hope it useful for you
hanju
Gnoblar
Posts: 6
Joined: Tue Dec 07, 2004 1:48 pm

Post by hanju »

sorry :? Not Camera' position.

for example I have a Node,

Vector3 pos = pNode->getPosition;

How to Get this Position in the Camera(ViewPort) projection value, just like Mouse coordinate.
gymdis
Gnoblar
Posts: 11
Joined: Thu Sep 30, 2004 11:05 pm
Location: Hälsingland, Sweden

Post by gymdis »

See this thread and this thread.

It would be nice to have it included as a function in OGRE though.