I've been trying to integrate irrlicht with bullet when I encountered a problem with Bullet Debug Draw.
It requires to implement a DrawLine method which I didn't manage to do so far. I've tried to use pure OpenGL with GLUT as:
Code: Select all
glBegin(GL_LINES);
glColor3f(fromColor.getX(), fromColor.getY(), fromColor.getZ());
glVertex3d(from.getX(), from.getY(), from.getZ());
glColor3f(toColor.getX(), toColor.getY(), toColor.getZ());
glVertex3d(to.getX(), to.getY(), to.getZ());
glEnd();
Then I found the driver->draw3DLine() function but there seems to be a problem with coordinates. Objects gets drawn but it looks like they are flat (Y dimension of each object is close to 0) and they are 'missplaced'. Aditionally no mather what I pass as SColor all lines are always black.
I'd be greatfull for any advice
![Smile :)](./images/smilies/icon_smile.gif)