|
|
On 12-7-2018 16:14, Bald Eagle wrote:
> Nice!
>
> Thanks for posting this, Thomas. I was pondering how to go about this last
> autumn, and perhaps if I can ever get ngPlant up and running, and have enough
> time, I can actually get around to making some outdoor scenes.
>
> Can you provide a little bit of background / explanation about the first few
> lines and the PoseRay macros... ?
>
> Thanks
>
No problem.
1) The Poseray macros are those which are included standard in any
material include file when exporting from Poseray to POV-Ray. It is fun
to play with them and I recommend to do it. The only macro
'automatically' and widely used by Poseray is the pigment_multiply()
one. The way in which this is done changed somewhat with the Poseray
version. Originally, it was used in the form, e.g.:
#declare PR_DIFFUSE = pigment {p_map2}
#declare PR_DIFFUSE = pigment {pigment_multiply(PR_DIFFUSE,
pigment{MyPigment})}
Where MyPigment was defined under the Poseray Materials tab by setting
the Color and Filtering values for the used Pigment (aka image_map).
In the latest Poseray version, the exported use of the macro is as shown
in my code:
#declare PR_DIFFUSE = pigment {p_map2}
#declare PR_DIFFUSE = pigment {pigment_multiply(PR_DIFFUSE, pigment
{color srgb ((<MyColor>-<1,1,1>)*MyFilter+<1,1,1>) })}
Where MyColor and MyFilter are respectively the Color and Filtering
values set in Poseray and mentioned above. I suppose FlyerX has good
reasons for this change of code ;-)
2) Now you can understand what I did. I declared two different diffuses
with a simple yellow and red colour code respectively. I declared
separately a scale vector for the uv map, which I had set previously
under the Poseray Materials tab, under the Transform... button.
For this example, I kept as much as possible the writing style of
Poseray. You may adapt that to your own preferences of course, which I
do all the time.
--
Thomas
Post a reply to this message
|
|