A view in a view .. or something :) ... need help.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
POi

A view in a view .. or something :) ... need help.

Post by POi »

Hi!

Iv'e started a project to visualize a simulationproject and i'm using IrrLicht (of course). Now i have a problem and i would like some input....

I need a GUI that is a cross between 2D and 3D ... what i mean is i will have mostly 2D Elements but in one corner of the screen i want a 3D "view"

something like this....

Code: Select all

-------------------------
|                       |
|                       |
|            --------   |
|           |        |  |
|           |        |  |
|            --------   |
-------------------------
... the little square is the 3D view (Irrlicht render area) and the rest is 2D elements (buttons, OCX, bmp or whatever).

How could i achieve tihs in a good way?


/POi
bappy
Posts: 63
Joined: Fri Dec 12, 2003 10:49 am
Location: france
Contact:

Post by bappy »

you adjust your render routine like this:

begin render

setviewport(3dregion)
render all 3d
setviewport(all app surface)
render gui

end render

i don t remember exactly the syntax for the setviewport function, search in the doc
-----------------------------
Sans danger, pas de gloire...
http;//bappy.free.fr
-----------------------------
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

There's a mesh viewer in the API, could you use that?
Guest

Post by Guest »

setviewport worked like a charm .. spanx! :D
Post Reply