PDA

View Full Version : How do IM\ make avatar textures two sided?


lklab
11-17-2015, 12:39 PM
I created a 3d animated tree in 3ds max. I exported it fine with Cal3d except for the fact that the branch texture only appears on one side of the planes. If I export it as osgb it looks fine but lacks animation.

I see that there is a cullFace method that can swap which side of the plane has the texture but i can't disable it completely. (why??) likewise the inspector can turn it off but i have no way of saving it.

Any help would be much appreciated!!!
thanks!!

Jeff
11-18-2015, 02:39 PM
Currently changes made in Inspector can only be saved to OpenSceneGraph formats, but not avatars. To disable backface culling for the leafs, you would need to check the '2-sided' option in 'Shader Basic Parameters' in the object's material. You could also do this through the Vizard code:

model.disable(viz.CULL_FACE)

lklab
11-18-2015, 03:03 PM
Thanks so much Jeff.

The textures appear on both sides now, but looking from below the transparency still has a substantial outline. Any way to remedy this?