|
![](/i/fill.gif) |
> I don't understand your point, trace_pixel (in render.c) has
> the screen coordinates you need, so there is absolutely no problem.
right ! i'll try to add this in trace_pixel
my problem was due to the fact that i was trying to add the compute
background pigment in Do_Infinite_Atmosphere (simply because it's where
Frame.Background_Colour is used). However this function can be called for
refracted or reflected rays, where there is no more screen coordinates ..
(sorry for my pathetic english..)
by the way , while looking at pov source code i notice a huge switch/case in
pattern.c (in Evaluate_TPat). Wouldn t it be faster if a pointer of function
was used ? i think the evaluate_tpat is called very often so any
optimization could result in faster rendering
M
Post a reply to this message
|
![](/i/fill.gif) |