POV-Ray : Newsgroups : povray.tools.general : Mesh variable colors : Re: Mesh variable colors Server Time
3 May 2024 10:37:18 EDT (-0400)
  Re: Mesh variable colors  
From: Stephen
Date: 31 Mar 2006 04:00:01
Message: <web.442cef106987b145c6b359800@news.povray.org>
"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I have a mesh2 that I would like to repaint without creating multiple mesh2
> objects in memory
>
> Here;s the deal:
>
> The mesh is a car I converted using PoseRay.  I want the windows/headlights
> etc. to remain the same texture, but the car body to be randomized.
>
> right now, I have:
>
> object{ car translate... }
>
> I would like to be able to re-color just the car body somehow without
> creating multiple versions of the exact same mesh.
>
> I thought of using a macro, but that would load the car in multiple times as
> well, wouldn't it?
>
> If I cant do what I want then perhaps I'll just make 5 or 6 versions and
> randomly choose from them.
>
> This scene requires many models of various cars to be placed, and I'd rather
> not have to create each instance separately.

To start you off. If I remember correctly, PoseRay creates a separate INC
file with the material definitions. You can copy and rename this file. Edit
it then reference it in your object.

Stephen


Post a reply to this message

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