Shader script is making error in Shockwave

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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 ...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139