Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    what is SetXY used for?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 408 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post