If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
goaty
Posts: 46 Joined: Wed Oct 25, 2006 3:06 pm
Post
by goaty » Wed Dec 20, 2006 10:41 am
How do I draw a 3d line from a scene node ( obviously from it's center position that could be offset via a parent ) to the movement of the cursor ( a 2D coordinate system ) on the screen???? As in knowing the scene nodes 3D vector ( currently static ) and have a line drawn on screen to the moving mouse cursor. I've tried everything.
CuteAlien
Admin
Posts: 9734 Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:
Post
by CuteAlien » Wed Dec 20, 2006 2:44 pm
Hm, does "everything" already include the following functions?
irr::gui::ICursorControl::getPosition
irr::scene::ISceneCollisionManager::getScreenCoordinatesFrom3DPosition
irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates
irr::video::IVideoDriver::draw3DLine
goaty
Posts: 46 Joined: Wed Oct 25, 2006 3:06 pm
Post
by goaty » Wed Dec 20, 2006 5:29 pm
Haven't done anything yet, but that is what I wanted to do. Just don't know how to go about it at all. A small code example would be fantastic?!?!?
goaty
Posts: 46 Joined: Wed Oct 25, 2006 3:06 pm
Post
by goaty » Wed Dec 20, 2006 11:25 pm
monkeycracks
Posts: 1029 Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:
Post
by monkeycracks » Thu Dec 21, 2006 2:08 am
Post Deleted By Poster
cuz I'm just that good...
Last edited by
monkeycracks on Thu Dec 21, 2006 8:31 am, edited 2 times in total.
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Thu Dec 21, 2006 6:00 am
Don't feed the animals...
goaty
Posts: 46 Joined: Wed Oct 25, 2006 3:06 pm
Post
by goaty » Thu Dec 21, 2006 11:49 am
I'll take that as a 'no one knows' how to do this then?
JP
Posts: 4526 Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:
Post
by JP » Thu Dec 21, 2006 11:56 am
CuteAlien wrote: Hm, does "everything" already include the following functions?
irr::gui::ICursorControl::getPosition
irr::scene::ISceneCollisionManager::getScreenCoordinatesFrom3DPosition
irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates
irr::video::IVideoDriver::draw3DLine
Read up on these functions in the API and it should be clear how you can get what you want working.
goaty
Posts: 46 Joined: Wed Oct 25, 2006 3:06 pm
Post
by goaty » Thu Dec 21, 2006 12:27 pm
More crytics answers, it's like asking a politician!
No worries, sorted it out myself. Thanks anyway for the help.