WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How do IM\ make avatar textures two sided? (https://forum.worldviz.com/showthread.php?t=5554)

lklab 11-17-2015 12:39 PM

How do IM\ make avatar textures two sided?
 
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:

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?


All times are GMT -7. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC