GetPickedObject() alternative?

  • Kjow

    Kjow - 2010-03-10

    GetPickedObject() is too slow with a complex freeform, so I need a fast alternative. I read that the RayCastIntersect can do the same work, but much faster… but I can't find how to use it.

    Can you post an equivalent demo of \interface\pick but with RayCastIntersect?


  • Kjow

    Kjow - 2010-03-10

    I forgot to write that the problem appear on a Intel Core i7 + Win7 x64 + ati radeon hd4870 1gb, but it seem to work better on:

    1) Laptop Intel Core Duo T7600 + Win7 x64 + nVidia 7600 256Mb
    2) Laptop Intel Core Duo T5500 + Win7 x64 + ATI Radeon Xpress 1250

  • YarUnderoaker

    YarUnderoaker - 2010-03-10

    May be collisions\meshhit\ help you. Also I have an exotic ReyCastIntersect with geometry shader and transform feedback.

  • Kjow

    Kjow - 2010-03-10

    Thanks, but I tried and when I try to set material of a "generic" object ".Material.FrontProperties.Emission.Color:=clrRed;" it changes color at random (not the selected object and not when I pass mouse over).
    A demo that does things like \interface\pick would be great :)

  • Kjow

    Kjow - 2010-03-17

    Hi again,
    can you upload or send me your RayCastIntersect demo?
    I tried a lot… but no success.

    Thank you!

  • Kjow

    Kjow - 2010-03-20

    Thank you!
    Your demo doesn't work very well on my ATI, but works good on my Nvidia.

    I understood why I had problems… RayCastIntersect doesn't work with objects inside a GLDummyCube with with CamInvarianceMode <> cimNone.

    I'm going to report it (I'm using Lazarus + GLScene svn, so I don't know if the problem is on svn or cvs)


Log in to post a comment.