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

  1. #1

    Default Lighting

    Hey Guys!

    Im trying to build a 3D lighthouse and Im having trouble getting the beam of
    light to come out of a cylinder I created. I have a wall in the 3d
    environment too, and the light always shines down on it, when I want it to be
    like a beam.

    The code Im using is:
    -- Create new cylinder resource
    lhouselsource = s3D.newModelResource("lightcylinder", #cylinder)
    -- Sets dimensions of the lighthouse lightsource
    lhouselsource.height = 25
    lhouselsource.topradius = 35
    lhouselsource.bottomradius = 35
    -- Create a model from the resource
    -- Make it visible in the 3D world
    myLighthouseLightsource = s3D.newModel("lhouselsource1")
    myLighthouseLightsource.resource = lhouselsource

    -- Rotate model to initial position
    myLighthouseLightsource.rotate(-90,60,0)
    myLighthouseLightsource.translate(0,145,0,#world)
    myLighthouseLightsource.transform.translate(-175,75,-600)

    member("s3D").newLight("beamlight1", #directional)
    s3D.light("beamlight1").color = rgb(249,240,91)
    s3D.light("beamlight1").rotate(90,60,90)
    s3D.light("beamlight1").translate(0,145,0,#world)
    s3D.light("beamlight1").transform.translate(0,145, 0)

    Can anyone help me out?

    Alanistic Guest

  2. Similar Questions and Discussions

    1. Even lighting
      Is there a way to evenly light a 3D model with bitmap textures from every angle? If I include no lights, the exporter calculates lighting from...
    2. Plasma lighting
      Hi there all, I have a quesion about lighting in Plasma. I am creating a walk-through scene in Plasma that will be exported to shockwave. My plan is...
    3. Lighting effect
      Im a student doing a Flash based assignment for university, im trying to do a lighting effect on my introduction page, As the lighting flashes the...
    4. indoor lighting question
      I have been working on doing indoor portrait-taking with my Nikon N70 for some time now. I've been using a single, 250 watt incandescent light...
    5. Text Lighting Effects
      Thanks for the reply...Yes you are right aparantly it is the same...so I have just found out. What has thrown me was for some reason it wouldn't work...
  3. #2

    Default Re: Lighting

    look in the help file, and take there a closer look at the different types of
    light sources.

    at the moment you use the member("s3D").newLight("beamlight1", #directional)

    there are #point, #spot, #ambient.

    i think you should use #spot and determine the angle property of this light
    type.

    friendly greetings

    hondo3000 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