creating pics

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
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

creating pics

Post by Cleves »

Hey,

I wanted to ask how can I make transperant pics,what I meen is that i want to create a GUI for my game but i don't want the background of the pic to appear only the GUI itself.Something like a particle that comes with Irrlicht, only the particle itself is visible.

Thanks
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

The 2DGraphics example that comes with Irrlicht 0.4 demonstrates how to do this. Basically you have to call driver->makeColorKeyTexture(yourTexture,locationOfTransparentPixel);
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

There is also

virtual void irr::video::IVideoDriver::makeColorKeyTexture ( video::ITexture * texture,
video::SColor color
) [pure virtual]

if you want to specify the color, instead of some point in the texture.
Crud, how do I do this again?
fretnoize
Posts: 43
Joined: Sun Feb 01, 2004 4:57 am
Location: Los Angeles

Post by fretnoize »

should this go into the "how to" section now?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

not really-- its one line of code, and its in the tutorials.
a screen cap is worth 0x100000 DWORDS
Post Reply