This content has been marked as final. Show 5 replies
To change the image of an existing texture:
myTexture.image = <image object>
myTexture.member = <member with an image property>
To swap one existing texture for another in an existing shader:
myShader.texture = myTexture
myShader.textureList[<index>] = myTexture
You can find a movie for testing texture and shader properties at http://nonlinear.openspark.com/tips/3D/shaders/. You can find a very simple movie for swapping textures at http://nonlinear.openspark.com/tips/3D/texture/
Is your *.w3D file embedded in Director, or is it linked? Are you testing the HTML file locally, and if so, is all the content inside a folder named dswMedia?
Thanks. Do you know if it is possible to achieve the same results in flash as well? I need this addition of a texture changing 3d object to be some how compatible with flash. Would the only way to resolve this be to create a link to a different html page with the shockwave file linked?
Flash does not have an interactive 3D engine, so you cannot display *.w3D files in Flash. You can use the image of a Flash member as a texture for a 3D object.
about the w3d files not working right when i publish...
It seems tha when i preview in a browser it works fine, but when i publish the settings as a stand alone shockwave with the html document, the movie does not show up. How would i fix that?