Ask a Question related to Macromedia Director 3D, Design and Development.
-
Alanistic #1
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
-
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... -
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... -
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... -
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... -
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... -
hondo3000 #2
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



Reply With Quote

