what is SetXY used for?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/07/2007 at 14:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Hi there,I would like to know what the SetXY command in VolumeData is actually used for? I mean what´s the purpose of this command?
Can I use it during rendering? What would the effect of such a call in CalcVolumetric for example be? Or is it used for AntiAliasing purposes?
ANY information is useful
Thank you
Samir -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/07/2007 at 05:57, xxxxxxxx wrote:
certain shaders can evaluate the screen-pixel position. applications like the baker can control this parameter without rendering an image.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/07/2007 at 06:22, xxxxxxxx wrote:
Ah, first of all thanks Matthias. But I still don´t fully understand I´m afraid. What functions in VolumeData require SetXY to be used before evaluation?
Could you give me a very simple example?
The problem of understanding I have is, why can´t Baker simply use a for loop and then evaluate what it needs to evaluate?
For example:
for(x;x<xres;x++)
for(y;y<yres;y++)
{
...Do something at that screen-pixel position or use GetRay(x,y,ray)...
}Thanks!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/07/2007 at 02:48, xxxxxxxx wrote:
Any further info on this? I would like to precalculate something in my InitRender in Screen pixel position, but would like to know if it´s necessary to use SetXY (is it safe to fill the passed VolumeData in InitRender with SetXY?) or if I can simply use a loop as I stated?
My tests say that it works as expected but maybe SetXY offers some advantages over the loop solution?
thanks