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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -