|
|
Hello,(I'm french, sorry for my english)
I have recently found lionsnake for creating meshs object. After some tries, I
succeed in creating three group of mesh objects. 2 objects of these 3 are
colored in Brown and the other in gray(both in Lionsnake). I exported the file
in an ...inc file.
http://harry.fourmi.pagesperso-orange.fr/fichiers/POV-Ray/Ex002.inc
for the inc and the .lsm; there :
http://harry.fourmi.pagesperso-orange.fr/fichiers/POV-Ray/Ex002.lsm
The main pov file:
(http://harry.fourmi.pagesperso-orange.fr/fichiers/POV-Ray/TestMesh.pov)
The problem is that when I attempt to assign two textures (the same than those
in Lionsnake, ie brown and gray), POV Ray render a scene with only a brown color
for the whole mesh elements. I search on internet, but didn't find anything. How
to apply different textures for the mesh ? As you can see, I used an array
"#declare ArrayTexture=array[33]{M1,M1,M1,M1,M1,M1,M1,M1,
M1,M1,M1,M1,M1,M1,G1,G1,
G1,G1,M1,M1,M1,M1,M1,M1,
M1,M1,M1,M1,M1,M1,M1,M1,
G1}"
With :
//M1=Marron1=Brown1 et G1=Gris1
#declare M1=texture {pigment {rgb <125/255,77/255,65/255>}}
#declare G1=texture {pigment {Gray}}
and :
object { c2s3_BuildTexturedMesh(ArrayTexture) }
etc... What's wrong with my code ? Thank
you.
Post a reply to this message
|
|