3d - x3d - what blend modes to use -


what blend modes , attributes must use achieve following effect:

first texture tileable grass texture , second texture opacity mask texture.

<multitexture mode='"modulate" "?"'>     <imagetexture repeats="true" repeatt="true" url='"grass.jpg"' />     <imagetexture url='"grass_opacity.png"' />     <multitexturetransform>         <texturetransform scale="8 8"/>         <texturetransform/>     </multitexturetransform> </multitexture> 

using: "selectarg2, selectarg1" seems work hard masks, either 0 or 100% opacity.

using bs contact player.

correct blending is:

<multitexture mode='"selectarg2,selectarg1" "blendcurrentalpha,diffuse_selectarg2"'> 

but bs contact player not supports in x3d file format. vml no problem.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -