Page 1 of 1

2d view?

Posted: Sun Jun 10, 2007 4:34 pm
by sebi707
is it possible to render an scenemanager with 3d objects in a wireframe 2d perspective? this should be for a level editor! or maybe is it possible to get all objects in the scene and so i can draw the boxes on my own!

sorry for my bad english

Posted: Sun Jun 10, 2007 5:45 pm
by Dances
You can make it appear 2d by setting a camera hard on an axis and not allowing rotation but you can't make it true 2d... then you wouldn't have 3d. This is essentially the same, though.

As for wireframes, yes, but I'm not sure how. I think it has to do with a nodes' materials or something.... theres example code around the forum somewhere that says how... perhaps someone who knows will answer you, though.

Posted: Sun Jun 10, 2007 5:56 pm
by bitplane
A 2d view is just a camera without perspective, see this post for setting up an orthographic view
http://irrlicht.sourceforge.net/phpBB2/ ... 2643#14229

for wireframe, just node->setMaterialFlag(EMF_WIREFRAME, true)

Posted: Fri Jun 15, 2007 3:06 pm
by sebi707
hi the wireframe is not exactly wat i want! i only see the front of the box and not the backfaces.
the ortographic view seems to be exactly what i want!

Posted: Fri Jun 15, 2007 4:44 pm
by vitek
If you want to see the back faces, you need to disable backface culling on the material.