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 / 2907
2906  |  2908
Subject: 
Transparent colors in POV-Ray
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 11 Jun 2009 21:19:44 GMT
Viewed: 
13859 times
  
Hello all,

I'm the developer of LD4DStudio (http://www.ld4dstudio.nl) and I'm in the midsts
of rounding up the 1.1 version which supports POV-Ray export.

But the thing is I'm not too happy about my transparent color setup. At the
moment I'm using the following (this is blue, but all transparent colors are the
same, except for the rgb values)

//----Texture for LDraw color 33 "trans blue"
#declare color33 = texture {
pigment {
  rgbft <0.0000, 0.1300, 0.6300, 0.9000, 0.1000>
}

finish {
  ambient rgb <1.0000, 1.0000, 1.0000>
  diffuse 1.0000
  brilliance 1.0000
  ior 1.2000

  reflection {
   rgb <0.0800, 0.0800, 0.0800>
   falloff 1.0000
   exponent 1.0000
   metallic 0.0000
  }
}
}


The thing is you can't clearly see through it, but if I increast the 't' value
of the pigment it seems like part loses it's own color (e.g. red transparent
renders blue if surrounding parts are blue). I think I'm just not 'getting' the
whole rgbft meaning or something.

so, I was wondering if someone could give me some pointers on how to improve
things.

Greetings,

Roland



Message has 3 Replies:
  Re: Transparent colors in POV-Ray
 
(...) For reasons that I don't understand, the apparent transparency of things in the final POV output is greatly influenced by the background color. Set the background color to black, and things look substantially more transparent than when it's (...) (15 years ago, 11-Jun-09, to lugnet.cad.ray)
  Re: Transparent colors in POV-Ray
 
(...) For which version of POV-Ray you are generating the code? I have just made some tests with 3.6 for windows with your values, and I can not see any faults. Maybe this page give a clue to you (URL) (15 years ago, 11-Jun-09, to lugnet.cad.ray)
  Re: Transparent colors in POV-Ray
 
(...) Try dropping the 'ambient' part. This is how my transparent 'christmas lights' are defined: #declare Color46_t = texture { pigment { rgbf <1,0.905882,0.211765,0.85> } finish { ambient 0.0 diffuse 1.0 phong 0.5 phong_size 40 reflection 0.6 (...) (15 years ago, 12-Jun-09, to lugnet.cad.ray)

15 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