3D Lines are translating - Need it to stop

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
DrAnonymous
Posts: 34
Joined: Thu Aug 04, 2005 9:37 pm

3D Lines are translating - Need it to stop

Post by DrAnonymous »

I want to draw 3d lines to show a path. The coordinates I have are in world space. I can get the lines to draw, but they translate with the object I'm moving.

In pseudo code I have this -

Code: Select all

driver->beginScene(xxxx);
smgr->drawAll();
- drawPoints here -
env->drawAll();
driver->endScene();
I tried just drawing 3 lines that go from the origin to 100 units from X, Y, and Z.

The lines show up, but they move with the scene node I have animating. Is there a way to reset the matrix mode, so my line from (0,0,0) to (100, 0, 0) stays where it is supposed to?

Thanks,
Dr. A>
Foole
Posts: 87
Joined: Mon Aug 29, 2005 10:08 am

Post by Foole »

It might help if you showed us the code that is drawing the lines.
Post Reply