Screen position during rendering



  • 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


Log in to reply