I’m trying to load a complex model (a house), which have some transparent elements in it (window glass with an alpha of 0.5) and also some PNG textures with transparency in it (plants, decals of damages onto the wall etc …).
The model is made with Google Sketchup and i use Collada format to import.
The model loads well except the transparent elements:
- Window glass is opaque
- PNG’s transparent part is black
I suppose i have to change the bucket of the transparents elements, but what is the best method to do that ?
I see three possible way to do it :
Dividing the model into two models : one containing only opaque elements and one containing only transparent ones.
This is the method i want to avoid.
Setting a parameter during import of model or at the root node of it to tells JMe that this node contains transparent geometry which should be moved in transparent bucket.
Is it possible ?
Using a SceneGraphVisitorAdapter or something similar to detect myself the transparent elements or PNG textures and change by myself the bucket of it.
Is this method feasible ?
Thanks in advance,