Ask a Question related to Macromedia Director 3D, Design and Development.
-
lduncalfe #1
Shader script is making error in Shockwave
Hi My script for creating a shader seems to be preventing my project from
being able to be viewed in Shockwave format. It works fine as a projector, or
in the 3D window in Director. I have a line in my Main movie script that
calls createShaders(). The function createShaders looks like this: --
createShaders on createShaders shd1 = obj.newShader('noiseShader', #standard)
txt1 = obj.newTexture('noiseTexture', #fromCastmember,
member('noise_shader')) obj.shader('noiseShader').textureList[1] = txt1
obj.shader('noiseShader').shininess = 0 obj.shader('noiseShader').ambient =
color(63,63,63) obj.shader('noiseShader').diffuse = color(238,238,238)
obj.shader('noiseShader').specular = color(255,255,255)
obj.shader('noiseShader').emissive = color(50,50,50)
obj.shader('noiseShader').blend = 50 obj.shader('noiseShader').textureMode =
#wrapPlanar end createShaders What's going wrong?
lduncalfe Guest
-
Script Error after making changes
First, I am not a website designer. I own a website and have been making minor (text) changes using Contribute since I didn't need to know html. I... -
Non-Blinn shader error exporting form Max
Hi everyone I have a problem when I try to export a model form 3dMax v8 to W3D. I canot find a solution for this error : Materials: - Non-Blinn... -
Shader Support for Shockwave 3D
Hello everybody... well I want to know about the shader support for shockwave 3d, if somebody knows, please tell me Thank you so much ... -
Problems making Shockwave movie
I have a movie that I want to turn into a shockwave movie and then put this onto a cd for distribution. I follow what is said that you should do to... -
Shockwave script to obtain shockwave when opening file
When you create the .dcr (Publish settings...) there is an option to include Shockwave detection in the html page, if that helps. Presumably you... -
jrPace #2
Re: Shader script is making error in Shockwave
Yeah, Director has a habbit of doing this to my scripts sometimes. I have a
theory that playing withing projectors and director itself execute code
slightly differently compared to when viewing it in a browser. The way I fix
this is to always assume that the object(s) I'm working with (obj in your case)
may not exist yet. I do this by checking for obj.state == 4 before I do
anything with it. It might be the case that your 3DMember hasn't fully finished
sorting itself out in the browser before calling createShaders(). Hope this
helps Jonathan Pace [url]www.unwrong.com[/url]
jrPace Guest



Reply With Quote

