Page 1 of 1
Partially transparent models
Posted: Fri Jul 09, 2004 12:42 pm
by rogerdv
How can I create a mesh with transparent sections? Is that possible?
Posted: Fri Jul 09, 2004 12:58 pm
by joy
As I learned it is all the matter of the colors. with irr::video::EMT_TRANSPARENT_ADD_COLOR or irr::video::EMT_TRANSPARENT_VERTEX_ALPHA the dark colored parts of the mesh gets transparent and the the bright part not or not so much.
Posted: Fri Jul 09, 2004 1:37 pm
by puh
Here is how I do windows in my apps:
Code: Select all
video::SMaterial glass_material;
glass_material.EmissiveColor = video::SColor(0,50,60,60);
glass_material.MaterialType=EMT_TRANSPARENT_ADD_COLOR;
win0->getMaterial(5)=glass_material;
win0->getMaterial(2)=glass_material;
win0->getMaterial(1)=glass_material;
Last three lines are differ from model to model.
It could look like that:
![Image](http://www.platpirs.lv/img/127/s.jpg)
Posted: Fri Jul 09, 2004 2:24 pm
by joy
If you set instead of the Emissive color "normal" color, where would be the difference in your example? How would it look then?
Just curious, because I thought the normal color should be transparent too.