Subject:
|
Re: Light bricks with light?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 1 Oct 2002 14:34:46 GMT
|
Viewed:
|
665 times
|
| |
| |
In lugnet.cad, Niels Karsdorp writes:
> Does anyone know if and how it is possible to put a lightsource for POV Ray
> inside?
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 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. For example, if l3p gave me:
object { _3001_dot_dat #if (version >= 3.1) material #else texture #end {
Color4 } }
...I would now use:
object { BrickLight #if (version >= 3.1) material #else texture #end {
Color4 } }
For more details, just search for "light_source" in the POV docs.
It's a little weird at first, but once you get the hang of it, it becomes
quite easy.
Cheers,
- jsproat
|
|
Message has 1 Reply: | | Re: Light bricks with light?
|
| (...) 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 (...) (22 years ago, 1-Oct-02, to lugnet.cad)
|
Message is in Reply To:
| | Light bricks with light?
|
| Hi, Currently I am working to model the old light bricks (size 2 x 2) Does anyone know if and how it is possible to put a lightsource for POV Ray inside? First renderings of the bricks and the datfiles will be uploaded to my website this evening (...) (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
|
|
|
|