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 / 2872
2871  |  2873
Subject: 
colors.dat (Was: POV Color Cheat?)
Newsgroups: 
lugnet.cad.ray
Date: 
Tue, 29 Jan 2008 02:20:36 GMT
Viewed: 
8685 times
  
Here's an "include file" with some redifinitions of the most horrible L3P
colors:

0 Color Redifinition Include File
0 Name: colors.dat
0 Author: Tore Eriksson

0 L3P IFPOV
0 #undef Color1
0 #ifndef (Color1)
0 #declare Color1 =  #if (version >= 3.1) material { #end texture {
0 pigment { rgb <0,0.1992,0.6953> }
0 finish { ambient AMB diffuse DIF }
0 #if (QUAL > 1)
0 finish { phong 0.5 phong_size 40 reflection 0.08 }
0 #if (BUMPS) normal { BUMPNORMAL } #end
0 #end
0 } #if (version >= 3.1) } #end
0 #end
0
0 #undef Color2
0 #ifndef (Color2)
0 #declare Color2 =  #if (version >= 3.1) material { #end texture {
0 pigment { rgb <0,0.5468,0.0781> }
0 finish { ambient AMB diffuse DIF }
0 #if (QUAL > 1)
0 finish { phong 0.5 phong_size 40 reflection 0.08 }
0 #if (BUMPS) normal { BUMPNORMAL } #end
0 #end
0 } #if (version >= 3.1) } #end
0 #end
0
0 #undef Color4
0 #ifndef (Color4)
0 #declare Color4 =  #if (version >= 3.1) material { #end texture {
0 pigment { rgb <0.7656,0,0.1418> }
0 finish { ambient AMB diffuse DIF }
0 #if (QUAL > 1)
0 finish { phong 0.5 phong_size 40 reflection 0.08 }
0 #if (BUMPS) normal { BUMPNORMAL } #end
0 #end
0 } #if (version >= 3.1) } #end
0 #end
0
0 #undef Color6
0 #ifndef (Color6)
0 #declare Color6 =  #if (version >= 3.1) material { #end texture {
0 pigment { rgb <0.3594,0.125,0> }
0 finish { ambient AMB diffuse DIF }
0 #if (QUAL > 1)
0 finish { phong 0.5 phong_size 40 reflection 0.08 }
0 #if (BUMPS) normal { BUMPNORMAL } #end
0 #end
0 } #if (version >= 3.1) } #end
0 #end
0
0 #undef Color10
0 #ifndef (Color10)
0 #declare Color10 =  #if (version >= 3.1) material { #end texture {
0 pigment { rgb <0.418,0.9297,0.5625> }
0 finish { ambient AMB diffuse DIF }
0 #if (QUAL > 1)
0 finish { phong 0.5 phong_size 40 reflection 0.08 }
0 #if (BUMPS) normal { BUMPNORMAL } #end
0 #end
0 } #if (version >= 3.1) } #end
0 #end
0 L3P ENDPOV
0



Message has 2 Replies:
  Re: colors.dat (Was: POV Color Cheat?)  [DAT]
 
(...) <snip> ... and here's a sample file of how to use it. 0 Color Redefinition Test 0 Name: Test.ldr 0 Author: Tore Eriksson 1 16 0 0 0 1 0 0 0 1 0 0 0 1 colors.dat 1 1 -40 0 0 0 0 -1 0 1 0 1 0 0 3004.dat 1 2 -20 0 0 0 0 -1 0 1 0 1 0 0 3004.dat 1 (...) (17 years ago, 29-Jan-08, to lugnet.cad.ray)
  Re: colors.dat (Was: POV Color Cheat?)
 
I have two comments. First of all, it appears that you divided the colors in ldconfig.ldr by 256, instead of dividing by 255. For example, blue in ldconfig.ldr has RGB values of 0, 51, 178. Dividing these by 256 yields the values you have below, (...) (17 years ago, 30-Jan-08, to lugnet.cad.ray)

Message is in Reply To:
  Re: POV Color Cheat?  [DAT]
 
(...) [ snipped ] Intresting, and yes it will work but with a few buts. First you will need to do the color-declaring before you do your model. And you have to (well, not "have to" but is saver to) "undeclare" (or undef) the old color definition. (...) (22 years ago, 5-Aug-02, to lugnet.cad.ray)  

11 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