POV-Ray : Newsgroups : povray.newusers : Different textures with Lionsnake's mesh Server Time
1 Jul 2024 02:37:46 EDT (-0400)
  Different textures with Lionsnake's mesh (Message 1 to 2 of 2)  
From: Harry Callagan
Subject: Different textures with Lionsnake's mesh
Date: 1 Jan 2011 10:50:01
Message: <web.4d1f4cba882b296a3a4912b40@news.povray.org>
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

From: Harry Callagan
Subject: Re: Different textures with Lionsnake's mesh
Date: 2 Jan 2011 07:20:00
Message: <web.4d206d2929ba7a263a4912b40@news.povray.org>
I solved the problem , don't answer.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.