[SOLVED (alternative)] Integrate Billboard As GUI Element

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
h4evr
Posts: 2
Joined: Mon Aug 04, 2008 9:36 pm

[SOLVED (alternative)] Integrate Billboard As GUI Element

Post by h4evr »

Hi!

I'm currently developing an application that uses Irrlicht's 3D and GUI capabilities (version 1.4.1).

I'm having trouble implementing a top-view camera... I mean, I have the camera all set and use a billboard to flip and display a render-target texture (although it crashes when exiting the program, something related to free.c).

My problem is that the 2d map (the top-view...) is to be integrated in the GUI, so the camera should not transform the billboard.
I've though of translating the 2d position coordenates to 3d and translate the billboard but it didn't work.

So, is there a way to "lock" the billboard in front of the camera in a way that it looks like a (2D) GUI element?

Or if you have any alternative, I'll gladelly ear (read :P ) it.

P.S: In my previous implementation I used a IGUIImage to display the texture but this shown the map wrong (flipped).

Thanks in advance,
Diogo Costa
Last edited by h4evr on Tue Aug 05, 2008 1:29 am, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can use draw2DImage, which will fix the RTT flip for Irrlicht 1.5, or just use a separate viewport to render the scene directly into the minimap. I guess we need a more general approach for handling flipped textures, but maybe bitplane can also just add a hotfix for the GUI!?
h4evr
Posts: 2
Joined: Mon Aug 04, 2008 9:36 pm

Post by h4evr »

Thank you!! The separate viewport tip was all I needed! All works very nice now!

Yes, I believe Irrlicht should have a better support for flipped textures but I'm also sure it's only a matter of time until it's fully supported. :D
Post Reply