POV-Ray : Newsgroups : povray.newusers : Differents texture on the same object ... : Re: Differents texture on the same object ... Server Time
30 Jul 2024 10:24:28 EDT (-0400)
  Re: Differents texture on the same object ...  
From: Alain
Date: 9 Jul 2004 22:13:54
Message: <40ef50e2$1@news.povray.org>
destroyedlolo nous apporta ses lumieres ainsi en ce 09/07/2004 20:57... :

> Hi all,
>
> I'm working on a way to recreate existing landscape using POVRay. I 
> got DEM data about the real area (VistaPro DEM data), transformed it 
> to PNG image to generate HF and ... everything is working fine :-)
>
> Now, my question is : how can I recreate vegetation or material ?
>
> I'm thinking to create a sort of "image" to map on my HF where I can 
> tell to POV :
> - Ok, if a pixel in light green, use a grass like texture,
> - if it's dark green, it's a tree area,
> - if it's blu, use water texture with waves,
> - if it's gray, it's granit ...
>
> How can I do it ?
>
> An example is welcome as I'm restarting only to play with Pov after a 
> very long time ...
>
> Thanks
>
> Laurent
>
If you have only a few discreete values, you can convert your image to a 
paleted one (16 or 256 colours) and use the index to decide what texture 
to use. I can't give you an example as I never done that, but it's 
mentioned somewhere in the documentation. Look for "texture_map".

Alain


Post a reply to this message

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