pickobject radius



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

    On 02/10/2009 at 04:16, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11,5 
    Platform:   Windows  ;   Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Hello All,
    i am using pickobject to fill C4dObjectList in my plugin... but Radius parameter won't work. any sugestion ?
    Franz



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

    On 05/10/2009 at 03:11, xxxxxxxx wrote:

    Any Help :) ?



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

    On 05/10/2009 at 07:04, xxxxxxxx wrote:

    I can't confirm this. It's working fine for me.

    Example:

    > \> Bool LiquidToolData::MouseInput(BaseDocument \*doc, BaseContainer &data;, BaseDraw \*bd,EditorWindow \*win, const BaseContainer &msg;) \> { \>      Real mx = msg.GetReal(BFM_INPUT_X); \>      Real my = msg.GetReal(BFM_INPUT_Y); \>      LONG button; \>       \>      switch (msg.GetLong(BFM_INPUT_CHANNEL)) \>      { \>           case BFM_INPUT_MOUSELEFT : button=KEY_MLEFT; break; \>           case BFM_INPUT_MOUSERIGHT: button=KEY_MRIGHT; break; \>           default: return TRUE; \>      } \>       \>      Real                    dx,dy,rad=5.0; \>      Bool                    newmeta=FALSE; \> \>      BaseContainer bc; \>      BaseContainer device; \>      win->MouseDragStart(button,mx,my,MOUSEDRAG_DONTHIDEMOUSE|MOUSEDRAG_NOMOVE); \>      while (win->MouseDrag(&dx;,&dy;,&device;)==MOUSEDRAG_CONTINUE) \>      { \>           bc=BaseContainer(); \> \>           if (dx==0.0 && dy==0.0) continue; \> \>           mx+=dx; \>           my+=dy; \> \>           AutoAlloc<C4DObjectList> list; \>           if (!list) return FALSE; \> \>           if (ViewportSelect::PickObject(bd, doc, mx, my, 50, TRUE, NULL, list)) \>           { \>                GePrint(LongToString(list->GetCount())); \>           } \>      } \> \>      return TRUE; \> } \>

    cheers,
    Matthias



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

    On 05/10/2009 at 07:24, xxxxxxxx wrote:

    HEllo Matthias,
    i use it in GetCursorInfo... but won't work, i hade tried to do a recursive serch in my radius manualy but the result is very slow.
    any sugestion ?
    Franz



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

    On 05/10/2009 at 07:31, xxxxxxxx wrote:

    It works fine in GetCursorInfo as well.

    > \> Bool LiquidToolData::GetCursorInfo(BaseDocument \*doc, BaseContainer &data;, BaseDraw \*bd, Real x, Real y, BaseContainer &bc;) \> { \>      AutoAlloc<C4DObjectList> list; \>      if (!list) return FALSE; \> \>      if (ViewportSelect::PickObject(bd, doc, x, y, 50, TRUE, NULL, list)) \>      { \>           GePrint(LongToString(list->GetCount())); \>      } \> \>      return TRUE; \> } \>

    cheers,
    Matthias



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

    On 05/10/2009 at 16:51, xxxxxxxx wrote:

    Ok Matthias, 
    a very strange things was appens:
    normaly i develop on a pc with Ati Video Card... and any time i have some cinema crash if i change ogl settings.
    on this pc pickobject radius won't work.
    on my laptop... same OS and cinema version with Nvidia card radus work.
    i don't know if is a rilevant issue... but is to strange
    FRanz



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

    On 22/10/2009 at 04:16, xxxxxxxx wrote:

    Ok, problem solved.
    with last Api version now picobject ca use radius withi no problem : )
    thanks
    Franz



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

    On 19/11/2009 at 09:50, xxxxxxxx wrote:

    Ok, i am testing my snapping performance and ViewportSelect::PickObject(bd, doc, x, y, rad , TRUE, NULL, list) works wiht no problem in smal scenes.
    in scene with 1000 object list creation is very slow.
    i have some issue on Parameter allowOpenGL, if i set it true my plug works very slow in big scene, if i set it FALSE i have very fast result but radius wan't work.
    Any sugestion and wath exactly mean allowOpenGL;
    Best
    Franz



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

    On 20/11/2009 at 09:01, xxxxxxxx wrote:

    No Help ? :(
    Franz



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

    On 24/11/2009 at 07:36, xxxxxxxx wrote:

    I can confirm this and have reported to the developers. I'll report back as soon as I know more.

    cheers,
    Matthias



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

    On 24/11/2009 at 08:20, xxxxxxxx wrote:

    Thanks Matthias,
    i'll wait for your reply :)
    Franz



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

    On 25/11/2009 at 01:07, xxxxxxxx wrote:

    Ok, got an answer from the developers. Unfortunatly the ViewportSelect::PickObject() function has currently a very bad performance. It is something they have to look at for future CINEMA 4D releases.

    If allowOpenGL is set to TRUE SelectionListCreate() is called instead internally, which has no radius parameter.

    cheers,
    Matthias



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

    On 25/11/2009 at 01:18, xxxxxxxx wrote:

    Hello Matthias,
    thanks for reply, i'll have to find another solution.
    all the best
    Franz


Log in to reply