Transparency using Irrlicht

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
Tathagatha

Transparency using Irrlicht

Post by Tathagatha »

How can I simulate glass and other transparent materials using Irrlicht? I know the SDK mentions that it is possible, but for the life of me I can't figure out how.
And if it's possible, can the glass inherit other properties, such as color, difractive properties, degree of translucency, etc.?
Thanks for your attention
Tathagatha
LordNaikon
Posts: 164
Joined: Wed May 05, 2004 5:34 pm
Location: Germany Berlin
Contact:

Post by LordNaikon »

i don't know if this iss possible ( i'm aslo a new irrlicht user)

create a scenenode with a mesh ( your glass)

and set the materail type so that it is transperent. whit the right texture it is possible to have the illusion of glass. that's the advise of an irrlicht beginner!!!
here the code

Code: Select all

node->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
Post Reply