Drawing a 3D line segment in OpenGL ES

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
bigbman
Posts: 23
Joined: Thu Nov 04, 2010 6:35 am

Drawing a 3D line segment in OpenGL ES

Post by bigbman »

Not sure if Irrlicht has any support for this in the iPhone branch, but I could use some pointers please.

For starters, I'd like to draw a single line segment to represent a collision ray.

I'm pretty sure that OpenGL ES doesn't support the draw line function provided with OpenGL...

Thanks!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, try draw3DLine and see if it works under normal OpenGL and then under OpenGL-ES. If not, we might add this later on based on the SW renderer code, using triangles replacing the lines.
bigbman
Posts: 23
Joined: Thu Nov 04, 2010 6:35 am

Post by bigbman »

last I tried it didn't work, but I'll give it another whirl.

Is there an example of how to do this with a quad or box (given 2+ 3d points)?
bigbman
Posts: 23
Joined: Thu Nov 04, 2010 6:35 am

Post by bigbman »

Doesn't seem to work :(
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, I started to work on a full replacement for lines for d3d (due to lack of line thickness feature), so it will be added in the future.
bigbman
Posts: 23
Joined: Thu Nov 04, 2010 6:35 am

Post by bigbman »

I did find this, which might make some people happy: http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
Post Reply