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
Transparency using Irrlicht
-
LordNaikon
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
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
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);