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 / 498
497  |  499
Subject: 
Re: L3P / POVRay material questions
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 24 Aug 2000 21:04:17 GMT
Viewed: 
598 times
  
Sproaticus skrev i meddelandet ...
a)  How do I incorporate Anton Raves' color and materials library (2) to a
file generated from L3P?  (please give an example)
Sorry, no info on this.

b)  How do I make a transparent color more transparent?  (please give an
example)
c)  How do I make something *glow*, besides, just putting a light source in
it?  (please give an example)

This is how I do it in my Christmas renderings,
http://user.tninet.se/~hbh828t/merry.htm
http://user.tninet.se/~hbh828t/merry99.htm

-8<-----------
#declare Color46_t = #if (version >= 3.1) material { #end texture {
pigment { rgbf <1,0.905882,0.211765,0.90> #if (QUAL > 1) filter 0.85 #end }
finish { ambient 0.6 diffuse 0 }
#if (QUAL > 1)
  finish { phong 0.5 phong_size 40 reflection 0.9 }
  #if (version >= 3.1) #else finish { refraction 1 ior 1.25 } #end
  #if (BUMPS) normal { BUMPNORMAL } #end
#end
} #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.25 } #end } #end


#declare light_point = light_source {
    <0, -8, 0>
    color rgb 0.4*<1,0.905882,0.211765>
    fade_distance 100.0
    fade_power 1.6
    looks_like {_3062_dot_dat #if (version >= 3.1) material #else texture #end
{Color46_t} }
}
-8<-----------

The important thing here is that I do not put a light inside a brick, but
declare a light which 'looks_like' the brick, and putting this in the model
instead of the original brick. I'm also using a special color, to be able to
experiment with the different parameters.

The fourth value for an 'rgbf' is the transparency. The reflection values
might also need some twiddling.

With a lot of extra lights, the overall lighting needs adjustment too (and AMB
etc.). All in all, it's a lot of test renderings, changing !JUST ONE!
parameter at a time between renderings...

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



Message has 1 Reply:
  Re: L3P / POVRay material questions
 
(...) Thanks! :-, But I had trouble positioning the light_source; it wouldn't be rotated and translated like an object. Did you have to figure out the coordinates all over again? BTW, any chance of seeing the .POV for your scene? (...) Is that rgbf (...) (24 years ago, 25-Aug-00, to lugnet.cad.ray)

Message is in Reply To:
  L3P / POVRay material questions
 
Hey all, While being fairly decent at LDrawing stuff, I'm still banging my head against some of the nuances of POVRay. (1) Can anyone help me answer these questions, or point me towards someone who can? a) How do I incorporate Anton Raves' color and (...) (24 years ago, 24-Aug-00, to lugnet.cad.ray)

12 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
    

Custom Search

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