Subject:
|
Re: Light bricks with light?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 1 Oct 2002 16:14:36 GMT
|
Viewed:
|
608 times
|
| |
| |
In lugnet.cad, Jeremy H. Sproat writes:
> The right way: You want to replace the POV object of the part, with a
> light_source object. e.g. if I wanted my 2x4 brick (3001.DAT, represented
> in l3p as the object _3001_dot_dat) to emit light, I put this after the
> lighting object is declared but before it's used:
>
> #declare BrickLight = light_source {
> <0,0,0>
> color rgb <1,1,1>
> fade_distance 5
> fade_power 1
> looks_like { _3001_dot_dat }
> }
>
> ...then I use the new light_source object instead of the old l3p-generated
> object.
Very nifty! Would that produce the light brick as a uniformly lighted
object, or would it glow from within, in the manner of a brick with a lamp
in it? My thought, which was simpler (ie, less technically precise, in
deference to my lack of savvy) than yours: could you simply inline POV-Ray
code into the dat file so that there's a light_source within the lighted
element, perhaps within the center stud4.dat in the case of a 3001.dat? If
the element were transparent, would that allow the light_source to glow
through? I'm not sure, but wouldn't the inlined light_source would be
retained in addition to the three default lights from L3P?
While we're at it, what's a good way to do glow-in-the-dark green?
Dave!
|
|
Message has 1 Reply: | | Re: Light bricks with light?
|
| (...) It's kinda hard to describe. The object itself emits light. If it's opaque, then it just looks like it's in a well-lit area. But if it's transparent, the clear parts refract and reflect the light is a pretty convincing way. To get realistic, (...) (22 years ago, 1-Oct-02, to lugnet.cad)
|
Message is in Reply To:
| | Re: Light bricks with light?
|
| (...) There are 2 ways to do this -- the quick way and the right way. The quick way: If it's not a transparent part, and if it's in a well-lit area, you can crank up the ambient value of the color the part uses. The right way: You want to replace (...) (22 years ago, 1-Oct-02, to lugnet.cad)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|