|
![](/i/fill.gif) |
"Siber" <nomail@nomail> schreef in bericht
news:web.4b10c6a969fb4644ca9ceddd0@news.povray.org...
>I am currently attempting to render certain ships in POV-ray that were
> originally intended for a game. In said game, regions of the ships are
> colored
> by the player's choice of fleet colors, and I would like to replicate this
> in
> the scene in such a way that I can specify these fleet colors in the
> scene, and
> not have to change them in an image editor.
>
> I have three textures, one for the plain texture and one for each of the
> two
> fleet colors, which are brighter where the color in question should be
> stronger,
> but I'm not sure how to get POV-ray to use this information the way I want
> it
> to. Any ideas?
>
>
I suppose you could do this for instance:
#declare P = texture {plain code};
#declare F1 = texture {fleet1 code};
#declare F2 = texture {fleet2 code};
#declare Plain is on;
#declare Fleet1 = on;
in the appropriate parts of the ship(s) you state:
#if (Plain)
texture {P}
#else
#if (Fleet1)
texture {F1}
#else
texture {F2}
#end
#end
Hope this helps
Thomas
Post a reply to this message
|
![](/i/fill.gif) |