|
|
If the object to be faked is rather complex, bounding it with a sphere
around the camera will make the scene render slower since tests with the
complex object will be performed for each pixel on screen. With a plane it
doesn't matter, since the plane is tested for each pixel anyways, but for
other objects it may be significant.
A better solution is to use a regular bounding object which is the scaled
so that it get very small and goes very near the camera (like the camera was
the origin and you scaled the object very small). This way you get both
effects, fast rendering and the desired special effect.
The scaling can be achieved this way:
#declare camera_location = ...
object
{ VampireObject
bounded_by
{ object
{ Whatever
translate -camera_location
scale .0001
translate camera_location
}
}
}
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|