Results 1 to 11 of 11

Thread: InstanceHandler & Item Instancing

  1. #1
    Registered User darkChief's Avatar
    Join Date
    Mar 2006
    Location
    Global
    Posts
    675

    InstanceHandler & Item Instancing

    How do you set an instances' position, rotation and scale using instance functions in an instance handler?

    Is it setMotionstep? If so how do you use it. The documentation also mentions a function called modifyInstance, but its not there.
    System: AMD Ryzen 2700, 16GB, RX 570 x2, Win 10

    https://www.deepfxworld.com

  2. #2
    creacon
    Join Date
    Nov 2005
    Location
    Belgium
    Posts
    1,300
    That's a part of the SDK that I haven't touched so far, but from the docs I would try:
    - CreateInstance
    then
    - SetInstance
    then
    - SetMotionStep

    creacon

    Quote Originally Posted by darkChief View Post
    How do you set an instances' position, rotation and scale using instance functions in an instance handler?

    Is it setMotionstep? If so how do you use it. The documentation also mentions a function called modifyInstance, but its not there.

  3. #3
    Registered User
    Join Date
    Aug 2016
    Location
    a place
    Posts
    1,894
    btw, there is no way to instance lights or hierarchies of lights, right?

  4. #4
    Registered User darkChief's Avatar
    Join Date
    Mar 2006
    Location
    Global
    Posts
    675
    Quote Originally Posted by creacon View Post
    That's a part of the SDK that I haven't touched so far, but from the docs I would try:
    - CreateInstance
    then
    - SetInstance
    then
    - SetMotionStep

    creacon
    I tried CreateInstance, SetInstance and setMotionstep, but nothing appears in the viewport or render. I don't understand what steps are supposed to do. Will keep experimenting I guess.

    - - - Updated - - -

    Quote Originally Posted by gar26lw View Post
    btw, there is no way to instance lights or hierarchies of lights, right?
    I think only items with mesh info, I could be wrong.
    System: AMD Ryzen 2700, 16GB, RX 570 x2, Win 10

    https://www.deepfxworld.com

  5. #5
    creacon
    Join Date
    Nov 2005
    Location
    Belgium
    Posts
    1,300
    My first guess was that this would be a timestep but then I read this in the header file:

    // LW2018: Use this in favour of the other set**** functions.
    void (*setMotionStepAuto)( LWItemInstanceID vinstance, LWTime time , unsigned int step,
    const LWDVector p, const double m[9] );

    And now I am as confused as you are :-)

    creacon

  6. #6
    Electron wrangler jwiede's Avatar
    Join Date
    Aug 2007
    Location
    San Jose, CA
    Posts
    6,569
    I'm kind of frustrated by the "less than overwhelming" level of detail info provided with many of the new LW2018 APIs in the SDK. That reference creacon just posted should never have made it past review. It just further adds to the impression the release was premature (and/or that the SDK didn't receive much priority).

    They really need to start providing modern, autodoc-style API and structure/pointer documentation, with well-populated descriptions for everything, etc. It was done in 2017, not 1993.
    Last edited by jwiede; 01-19-2018 at 07:51 PM.
    John W.
    LW2015.3UB/2019.1.4 on MacPro(12C/24T/10.13.6),32GB RAM, NV 980ti

  7. #7
    creacon
    Join Date
    Nov 2005
    Location
    Belgium
    Posts
    1,300
    I'm no big fan of autodoc style documentation, but an online version (Wiki - like) where the developers can change or make suggestions would be nice.
    Better commenting in the header files would be nice too.

    creacon

  8. #8
    Electron wrangler jwiede's Avatar
    Join Date
    Aug 2007
    Location
    San Jose, CA
    Posts
    6,569
    Quote Originally Posted by creacon View Post
    I'm no big fan of autodoc style documentation, but an online version (Wiki - like) where the developers can change or make suggestions would be nice.
    Better commenting in the header files would be nice too.
    When I say "autodocs", I really mean it in more the Doxygen, comprehensive, explanatory notations on most things sense. Online would be fine, as long as there's an offline-downloadable version as well. What's frustrating now is the rather "haphazard" coverage of details in either headers or associated docs, and a general lack of workflow / theory-of-operation information, esp. w.r.t. recent SDK changes/additions.
    John W.
    LW2015.3UB/2019.1.4 on MacPro(12C/24T/10.13.6),32GB RAM, NV 980ti

  9. #9
    Curmudgeon in Training Ma3rk's Avatar
    Join Date
    Mar 2003
    Location
    Near Beaverton, OR
    Posts
    1,450
    Quote Originally Posted by gar26lw View Post
    btw, there is no way to instance lights or hierarchies of lights, right?
    See if this is what you're looking for:

    https://vimeo.com/115017755

  10. #10
    Super Member
    Join Date
    Mar 2003
    Location
    USA
    Posts
    493
    Quote Originally Posted by jwiede View Post
    I'm kind of frustrated by the "less than overwhelming" level of detail info provided with many of the new LW2018 APIs in the SDK. That reference creacon just posted should never have made it past review. It just further adds to the impression the release was premature (and/or that the SDK didn't receive much priority).
    Yet Oliver likes all the new changes to the SDk?

    https://www.lightwave3d.com/news/art...h-oliver-hotz/
    Last edited by gclayton; 01-29-2018 at 08:40 PM.

  11. #11
    creacon
    Join Date
    Nov 2005
    Location
    Belgium
    Posts
    1,300
    I like the changes too! Especially the deformation stack.
    And the changes that affect what I am doing are documented.
    It's just this small detail about the instancing that is a bit confusing.

    creacon


    Quote Originally Posted by gclayton View Post
    Yet Oliver likes all the new changes to the SDk?

    https://www.lightwave3d.com/news/art...h-oliver-hotz/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •