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

    Screen position during rendering

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 116 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 05/02/2007 at 10:04, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.6 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      I would like to transform a world point to screen position during rendering.

      I don´t think it´s safe to store the active BaseDraw for rendering (or is it? I could maybe store the basedraw from initrenderstruct->doc->GetRenderBaseDraw() or so during init phase of my shader?) and I don´t see any function that gives me the screen conversion (only camera to screen) except for GetXY() but this only gives me the eye ray position in screen resolution (well, in render resolution but can be scaled).

      Any advice?

      Thx
      Samir

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