To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 123
122  |  124
Subject: 
Re: lit truck raytrace wallpaper (competion bram!)
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 5 Mar 2000 20:45:09 GMT
Viewed: 
1046 times
  
Will Hess skrev i meddelandet ...

You can use the POV-Ray "looks_like" feature for the headlights.
That would make them light up.

This is something I've been trying to do for the apparatus
on my website.  Would either of you be kind enough to share
pointers (or appropriate lines of code) for creating a night
scene?  As an alternative can anyone recommend a
comprehensive POV-Ray tutorial?


You have to lower the ambient value, and fiddle a bit with the parameters for
the light that should be used with 'looks_like'. As an example, take my
Christmas rendering from 1998:
http://user.tninet.se/~hbh828t/merry.htm

Excerpts from the .pov file:

...
// Less ambient light, and more diffuse.
#declare AMB = 0.2
#declare DIF = 0.6
...


...
// Special color for the lights
#declare Color46_t = texture {
pigment { rgbf <1,0.905882,0.211765,0.90> }
finish { ambient 0.6 diffuse 0 phong 0.5 phong_size 40 reflection 0.9
refraction 1 ior 1.25 }
}
...

...
#declare light_point = light_source {
    <0, -8, 0>
    color rgb 0.5*<1,0.905882,0.211765>
    fade_distance 60.0
    fade_power 1.6
    looks_like {_3062_dot_dat texture { Color46_t } }
}
...

Then you just replace the pieces that should be lighted:

object { _3062_dot_dat matrix <1,0,0,0,1,0,0,0,1,-50,-280,10> texture
Color46 } }

is replaced with

object { light_point matrix  <1,0,0,0,1,0,0,0,1,-50,-280,10>}

etc.

Note that I introduced a separate color (Color46_t) for the lighted piece.
I also turned off the L3P generated lights completely.

This is in no way the only method, but it works for me.

HTH
--
Anders Isaksson, Sweden
BlockCAD:  http://user.tninet.se/~hbh828t/proglego.htm
Gallery:   http://user.tninet.se/~hbh828t/gallery.htm



Message is in Reply To:
  Re: lit truck raytrace wallpaper (competion bram!)
 
(...) suggest that (...) LEGO items to (...) headlights. That (...) This is something I've been trying to do for the apparatus on my website. Would either of you be kind enough to share pointers (or appropriate lines of code) for creating a night (...) (25 years ago, 5-Mar-00, to lugnet.cad.ray)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR