To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 16892
16891  |  16893
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Problem when rendering custom colors
Newsgroups: 
lugnet.cad
Date: 
Fri, 22 Jan 2010 19:57:21 GMT
Viewed: 
14877 times
  
In lugnet.cad, Eric Albrecht wrote:
It's pretty hard to say what is happening without seeing your files.  I need to
see the portions of the POV-Ray file which define colors, or the include files
which show colors.  You could also post an example *.ldr file.

Eric Albrecht


Hello Eric,

to further explain my problem Ive rendered a scene.
http://www.brickshelf.com/gallery/Flens83/Misc/render_test.jpg

The left part of the fig uses the normal blue (color 1).
Teh right part uses my personal color 162 (a darker blue)
As you can see, the color 2 part of the torso front looks fine.
The color 162 part however looks weird. The leg, which also uses #162, looks
fine as well.

Here is some Pov code:

//// Color 0 Black (from lg_color.inc)
#ifndef (L3Texture0)
#declare L3Texture0 = texture { lg_black }
#end
#ifndef (L3Texture0_slope)
#declare L3Texture0_slope = L3TextureSlope(L3Texture0)
#end
#ifndef (L3Color0)
#declare L3Color0 = L3Material(L3Texture0)
#end
#ifndef (L3Color0_slope)
#declare L3Color0_slope = L3Material(L3Texture0_slope)
#end

//// Color 1 Blue (from lg_color.inc)
#ifndef (L3Texture1)
#declare L3Texture1 = texture { lg_blue }
#end
#ifndef (L3Texture1_slope)
#declare L3Texture1_slope = L3TextureSlope(L3Texture1)
#end
#ifndef (L3Color1)
#declare L3Color1 = L3Material(L3Texture1)
#end
#ifndef (L3Color1_slope)
#declare L3Color1_slope = L3Material(L3Texture1_slope)
#end


//// Color 125 Light_Orange (from ldconfig.ldr)
#ifndef (L3Texture125)
// Color not in lg_color.inc; however use same texture
#declare L3Texture125 = L3TextureOpaqueRGB(234,184,145)
#end
#ifndef (L3Texture125_slope)
#declare L3Texture125_slope = L3TextureSlope(L3Texture125)
#end
#ifndef (L3Color125)
#declare L3Color125 = L3Material(L3Texture125)
#end
#ifndef (L3Color125_slope)
#declare L3Color125_slope = L3Material(L3Texture125_slope)
#end


//// Color 15 White (from lg_color.inc)
#ifndef (L3Texture15)
#declare L3Texture15 = texture { lg_white }
#end
#ifndef (L3Texture15_slope)
#declare L3Texture15_slope = L3TextureSlope(L3Texture15)
#end
#ifndef (L3Color15)
#declare L3Color15 = L3Material(L3Texture15)
#end
#ifndef (L3Color15_slope)
#declare L3Color15_slope = L3Material(L3Texture15_slope)
#end


//// Color 162 AC_Royal_Blue (from ldconfig.ldr)
#ifndef (L3Texture162)
// Color not in lg_color.inc; however use same texture
#declare L3Texture162 = L3TextureOpaqueRGB(0,32,111)
#end
#ifndef (L3Texture162_slope)
#declare L3Texture162_slope = L3TextureSlope(L3Texture162)
#end
#ifndef (L3Color162)
#declare L3Color162 = L3Material(L3Texture162)
#end
#ifndef (L3Color162_slope)
#declare L3Color162_slope = L3Material(L3Texture162_slope)
#end

_______________________________________________________________




Here is the .ldr code:
Note: The RenderT.dat is the torso-front generated with bmp2ldraw

0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
1 1 0 -24 0 1 0 0 0 1 0 0 0 1 3901.DAT
1 125 0 -24 0 1 0 0 0 1 0 0 0 1 3626BP01.DAT
1 15 -0.2 0 0 1 0 0 0 1 0 0 0 1 RenderT.dat
1 15 0 32 0 1 0 0 0 1 0 0 0 1 970.DAT
1 1 -15.552 9 0 0.985 -0.17 0 0.17 0.985 0 0 0 1 982.DAT
1 162 15.552 9 0 0.985 0.17 0 -0.17 0.985 0 0 0 1 981.DAT
1 125 -23.8634 26.5956 -10.321 0.985 -0.12019 0.12019 0.17 0.696395 -0.696395 0 0.707 0.707 983.DAT
1 125 23.8634 26.5956 -10.321 0.985 0.12019 -0.12019 -0.17 0.696395 -0.696395 0 0.707 0.707 983.DAT
1 1 0 44 0 1 0 0 0 1 0 0 0 1 971.DAT
1 162 0 44 0 1 0 0 0 1 0 0 0 1 972.DAT
1 7 -0.6 20 -55 1 0 0 0 1 0 0 0 1 LIGHT.DAT
0

_____________________________________________________________________

And here comes my Torso Part:

0 Test Render Torso
0 Name: RenderT.dat
0 Author: Andre
0 LDRAW_ORG Part UPDATE 2003-02
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
0 BFC CERTIFY CW
0 CMDLINE -c15

1 15 0 0 0 1 0 0 0 1 0 0 0 1 s\973s01.dat
1 0 0 -4 0 4.243 0 -4.243 0 -8 0 -4.243 0 -4.243 1-4cyli.dat

1 16 -19.1 0 -10 0.1 0 0 0 0.1 0 0 0 1 s\RenderTor.dat

4 162 -19 32 10 19 32 10 -19 29 10 19 29 10
4 162 19 29 10 -19 29 10 -14.345 2 10 14.345 2 10
4 162 12 0 10 -12 0 10 -14.345 2 10 14.345 2 10
0

_____________________________________________________________________



If anybody can identify the problem here, I would appreciate it a lot.



Message has 2 Replies:
  Re: Problem when rendering custom colors
 
(...) SNIP (...) I am not very familar with POV-Ray. But could it be that the color 162 is not completely described or that is uses the slope surface here? The problem occur only at that place at the object where the light direct reflect. So I (...) (14 years ago, 22-Jan-10, to lugnet.cad)
  Re: Problem when rendering custom colors
 
(...) It looks to me like a texture issue rather than the color itself. I would recommend adding your color directly to the lg_color.inc file. Copy the definition for the existing blue and change nothing but the RGB color values for the pigment. (...) (14 years ago, 22-Jan-10, to lugnet.cad, FTX)

Message is in Reply To:
  Re: Problem when rendering custom colors
 
(...) It's pretty hard to say what is happening without seeing your files. I need to see the portions of the POV-Ray file which define colors, or the include files which show colors. You could also post an example *.ldr file. Eric Albrecht (14 years ago, 22-Jan-10, to lugnet.cad)

6 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