2d view?

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
sebi707
Posts: 18
Joined: Tue Feb 20, 2007 4:19 pm

2d view?

Post 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
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post 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.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
sebi707
Posts: 18
Joined: Tue Feb 20, 2007 4:19 pm

Post 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!
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you want to see the back faces, you need to disable backface culling on the material.
Post Reply