Axis Display in Irrlicht
Axis Display in Irrlicht
Hey
I'm writing a 3D level editor and I need to display the axis in the bottom left hand corner of the screen. Like the way Maya and 3DS Max do it. The problem is that I can't just draw lines because if I move my camera then they will disappear.
What other way could I do this?
Thanks
I'm writing a 3D level editor and I need to display the axis in the bottom left hand corner of the screen. Like the way Maya and 3DS Max do it. The problem is that I can't just draw lines because if I move my camera then they will disappear.
What other way could I do this?
Thanks
Hmm, draw3DLine() then (http://irrlicht.sourceforge.net/docu/cl ... r.html#a22) ?
-
- Posts: 49
- Joined: Thu Aug 12, 2004 12:42 pm
- Location: Sweden
- Contact:
couldn't you use
in some way?
if you use that and just make it a little shorter you get one of the lines you need (Z). then just rotate it in the correct angles and you have your axis'.
Code: Select all
core::line3d<f32> getRayFromScreenCoordinates(
00084 core::position2d<s32> pos, ICameraSceneNode* camera = 0)
if you use that and just make it a little shorter you get one of the lines you need (Z). then just rotate it in the correct angles and you have your axis'.
This monkey is useless, it only has ONE ass!!!
Not really. That won't give me a fixed position.couldn't you use
code: core::line3d<f32> getRayFromScreenCoordinates(
00084 core::position2d<s32> pos, ICameraSceneNode* camera = 0)
in some way?
Perhaps I don't understand billboards.Is there some reason you can't use the axis dependant billboards that are in NX for this purpose?
Would you have a screenshot that I could see what you mean?
...and an axil dependant billboard doesn't rotate to face the camera in one direction, so if you disabled the Z axis one then it wouldn't rotate on the Z axis but would rotate to face on the other two, therefore always aligned with the Z axis. This isn't implemented in Irrlicht but is in NX, although I've not used it yet. It should be exactly what you need for this.
hello, I'm the author of the axial billboard stuff (with some help of people around here )
the version put in irrlichtnx is a little buggy but I think you can try it to see if it suits your needs. The new version is in the new patch section of the irrlicht forum but unfortunatly not put in the standard release of NX
the version put in irrlichtnx is a little buggy but I think you can try it to see if it suits your needs. The new version is in the new patch section of the irrlicht forum but unfortunatly not put in the standard release of NX