Hi,
I have a question, i suppose it's not specific to irrlicht, but i'am working with it so...
I try to display a large space. If and object is near the player's ship, i display it. But if something is very far, i want to display a little sign. (just as eve online do http://linuxoutlaws.com/files/eve-online.jpg )
I thought i had to use LOD but the sign must always have the same size however the distance between the object and the ship.
How can I do such a thing ?
P.S : Sorry for my English (I'm french)
Display _very far_ objects
Display _very far_ objects
Guillaume ... hopes HEMERA project will be finished before world's end
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Hi,
It looks like the function you want to use in Irrlicht 1.6 is:
virtual core::position2d< s32 > getScreenCoordinatesFrom3DPosition (core::vector3df pos, ICameraSceneNode *camera=0)=0
Calculates 2d screen position from a 3d position.
From:
http://irrlicht.sourceforge.net/docu/cl ... nager.html
It looks like the function you want to use in Irrlicht 1.6 is:
virtual core::position2d< s32 > getScreenCoordinatesFrom3DPosition (core::vector3df pos, ICameraSceneNode *camera=0)=0
Calculates 2d screen position from a 3d position.
From:
http://irrlicht.sourceforge.net/docu/cl ... nager.html
All your ideas works well. Thanks a lot again
Now i just have to use a LOD to make the models disapear when they are too far.
The problem will be to compute all the distances everytime (or maybe all the 100ms or more like Lonesome Ducky said)
Now i just have to use a LOD to make the models disapear when they are too far.
The problem will be to compute all the distances everytime (or maybe all the 100ms or more like Lonesome Ducky said)
Guillaume ... hopes HEMERA project will be finished before world's end