|
|
Hello!
I encounter a weird thing here.
As some of you know I import a image (Bitmap) from #VB as text.
Im import this text as commands in POV-Ray, but the colors are all wrong.
Why? Is the rgb different or the order of rgb??
Thanks
Chrisir
Code in POV-Ray:
#macro MySphere (P1, rgb1 )
sphere {
<P1.x,P1.y,P1.z>, 1
pigment { rgb <rgb1.x,rgb1.y,rgb1.z> }
}
#end
MySphere (<1,90,0>,<3,5,0>)
MySphere (<1,90,0>,<31,15,10>)
.........
Code in #VB:
'loop through the entire image
For y = 0 To image1.Height - 1
For x = 0 To image1.Width - 1
clr = image1.GetPixel(x, y)
Red = clr.R
Green = clr.G
Blue = clr.B
strColor=clr.Name
dbg_tw1.WriteLine( "MySphere (<1," & _
x.ToString & "," & _
y.ToString & ">,<" & _
Red.tostring & "," & _
Green.tostring & "," & _
Blue.tostring & _
">)")
Next
Next
Post a reply to this message
|
|