|
![](/i/fill.gif) |
> Let me turn the question around.
>
> Can someone write a script which draws two triangles with a single
> texture projected on it; using provided UV co-ordinates?
Just change the texture on your example by this one:
texture{
uv_mapping // <---- tells the texture to use UV coords
pigment{
image_map{
jpeg "test.jpg"
}
}
finish {specular 1}
}
> My attempt is clearly incorrect. I tried copying line for line what
> I have seen in tutorials and it still doesn't work, so clearly I'm
> doing something wrong.
Better have a look first at this page of the docs:
http://www.povray.org/documentation/view/3.6.1/68/
> I can get it work if I load my Wavefront OBJ file into PoseRay and
> then export it. However, PoseRay exports a whole lot of stuff;
> hundreds of lines of script.
Try it first with a *small* mesh to see how it creates the POV-Ray mesh.
> Also, as long as I have people's attention. Is there a good link to
> find set up scripts to texture and light terrains? Scripts which do
> the marbling effect based on slope, and synthesize really rich
> looking ground textures?
Look at the textures on my Tierra project (i_land.inc):
http://www.ignorancia.org/en/index.php?page=Project_Tierra
It uses isosurfaces, but the textures there should work the same on a
heightfield or a mesh.
Regards,
--
Jaime Vives Piqueres
La Persistencia de la Ignorancia
http://www.ignorancia.org
Post a reply to this message
|
![](/i/fill.gif) |