Ask a Question related to Macromedia Director 3D, Design and Development.
-
extol #1
Adding a light in Lingo
Can someone please help me with this? I want to have a light under a car model
that shines down on the ground. I know how to create a light in Lingo, but I
can't seem to get it to position under my model. Also, can I attach the light
to the model?
extol Guest
-
Help with possible reasons for red light?
Hello, Maybe somebody here has encountered the problem where the Admin console cannot connect to the 'server1' server? Trying to log in to... -
Light Source
I was wondering if you could have more than one light hitting a 3D object? If so how? -
adding lingo to a flash button
hey guys. i need to be able to add some lingo to a flash button. the lingo needs to establish the global sound setting for multiple .dxr movies, and... -
pantone light box PVL-310
I have several BRAND NEW Pantone PVL-310 light boxes for sale. Please see... -
LED there be Light, a D.I.Y. LED ringlight
Please have a look at http://users.pandora.be/cisken/LED_ringlight/LED_ringlight.html It took me hours to compose this report. So I really don't... -
Newt99 #2
Re: Adding a light in Lingo
You can attach any node to any other node in the scene graph. A node can be a
model, a group, a camera or a light. Use the addChild() method with the
#preserveWorld parameter. By the way, you can attach the light to the model in
3DS Max, saving you the hassle of the code.
Newt99 Guest
-
Ex Malterra #3
Re: Adding a light in Lingo
been using javascript syntax for some time, so my lingo is a little rusty.
others can probably help with my errors. but it would go something like:
-- car stuff
theCar = member("w3dmember").node("carNode")
carPos = theCar.getWorldTransform().position
-- light stuff
theLight = member("w3dmember").light("theLight")
theLight.getWorldTransform().position = carPos
-- make light child of car
theCar.addChild(theLight,#preserveWorld);
you'll now need to point the light at the ground, don't know what state
everything was in befroe adding light, but rotating it shoudl work,
theLight.rotate(-90,0,0)
hth
Ex Malterra Guest
-
extol #4
Re: Adding a light in Lingo
Thanks for the help, guys. I am trying to make it so you can click on a car to
get details about it and the selected car has a glowing circle under it (that
follows the terrain below). I want to be able to do it dynamically.
I tried adding a spot light in 3ds Max and put it exactly where I wanted and
how I wanted it to look, but when I exported it to director, it isn't right. I
tried rotating, and everything. I just can't seem to the the light UNDER my
model and to shine down into a small circle on the ground. Any ideas?
extol Guest
-
Newt99 #5
Re: Adding a light in Lingo
In that case, I would fake it.
I would use a plane textured with an alpha channel bitmap of a round with a
transparent feather effect (for the glow). I would set the emissive color of
the shader for this round to rgb(255,255,255) to light it. Then, I would just
set the visibility of this plane object to #both / #none when I want to display
/ discard it.
You can create the bitmap in Firefox by creating a Shape, then clicking + to
add the glow then select the transparent color for the background (in the
Properties at the bottom). Then save as PNG (default).
Cheers,
Karl.
[url]http://www.chromelib.com[/url]
Newt99 Guest
-



Reply With Quote

