Billboard scene note rotates to face camera

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
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Billboard scene note rotates to face camera

Post by MikeR »

How do I stop it?
I have a billboard that I've added to my scene that is supposed to be a type of picture. It's there, rendered properly, but when the camera passes it, it turns to always face the camera. Nice feature, but not what I want for this particular billboard.
Here's the code:

Code: Select all

scene::ISceneNode* bill = 0; 
      bill = smgr->addBillboardSceneNode(bill,    
               core::dimension2d<f32>(150, 150)); 
      bill->setMaterialFlag(video::EMF_LIGHTING, false); 
      bill->setMaterialTexture(0, driver->getTexture  
                                               ("media/billboard.jpg"));    
      bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR); 
      bill->setPosition(core::vector3df(240,-1420,-1640)); 
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

would it, in regard to ur design, be ok to use a simple 'wall' and texture it with ur image?
Dont think the behavior of a billboard node can be altered
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Guest

Post by Guest »

That's what billboards do and what they are useful for (facing the camera at all times).

I would do as bearsoft said just sick a plane / mesh in and texture it.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Aye mike. I believe Irrlicht has the option to be able to draw some simple primitives like Rectangles. If you dont want to make a mesh you could just make a rectangle and apply your texture to it.

Inherently billboards rotate because this is very useful for effects. You can choose which axis they are allowed to rotate about, but cant say that they cant rotate about any axis.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Been out of town.
I have a wall made in DeleD and put a tga texture on it, but for some odd reason, Irrlicht makes it look very light. The billboard looked correct.
I'll try a 2d rectangle and see if that fixes the problem.
Thanks for the tips. :)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Post Reply