Draw3DLine??? :?

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.
Post Reply
goaty
Posts: 46
Joined: Wed Oct 25, 2006 3:06 pm

Draw3DLine??? :?

Post by goaty »

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 »

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 »

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?!?!? :oops:
goaty
Posts: 46
Joined: Wed Oct 25, 2006 3:06 pm

Post by goaty »

I see moved from advanced help. :lol: Power trippin' boys. Can't stop the rouge sex poster though eh? :lol: :lol: :lol: :lol:
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

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 »

Don't feed the animals...
goaty
Posts: 46
Joined: Wed Oct 25, 2006 3:06 pm

Post by goaty »

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 »

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.
Image Image Image
goaty
Posts: 46
Joined: Wed Oct 25, 2006 3:06 pm

Post by goaty »

More crytics answers, it's like asking a politician! :D No worries, sorted it out myself. Thanks anyway for the help. :D
Post Reply