point visible in view?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 09/11/2005 at 09:01, xxxxxxxx wrote:

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

    ---------
    Hi,

    does anybody know how to fastly detect if a point (any coordinate, not only point object vertices) is visible in the current view?

    Thanks
    Katachi



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 11/11/2005 at 12:20, xxxxxxxx wrote:

    Have a look at the editortools lib. SelectionListCreate() seems quite usefull. The ViewportSelect class is also good for occlusion testing. Just get your point in screencoordinates, test what is below and compare the z depth values. I've tried this and it works and is quite fast. It takes some time to initialize though.. but i think it's the fastest possible way. Don't know about SelectionListCreate(). This also gives a z depth, but this is perhaps not as acurate.

    best regards
    Michael



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/11/2005 at 08:50, xxxxxxxx wrote:

    Ah thank you Michael. Haven´t seen this at all!

    Best
    Samir


Log in to reply