instance pivot point problem

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

Post Reply
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

Anyone know why the wheels on the right Instanced car are in a different spot in Octane then in Lightwave viewport. THe wheels are on different layers, with pivot moved in modeler to wheel center... I have had this problem before, and to fix it I centered the object to the origin, and moved it in layout to correct place, and that does work.. but this will be extremely annoying for a Car Library. I have tried all coordinate options in instancer as well.. Parent, local, and world.
Capture.PNG
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

I remember a problem related to limitations in the LW SDK in the instancing of objects with not centered pivot points, but if you want to send me the scene, I can take a look at it to see what can be done to try to fix it.

Thanks,
-Juanjo
User avatar
LightwaveGuru
Licensed Customer
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany
Contact:

mstewart152 wrote:Anyone know why the wheels on the right Instanced car are in a different spot in Octane then in Lightwave viewport. THe wheels are on different layers, with pivot moved in modeler to wheel center... I have had this problem before, and to fix it I centered the object to the origin, and moved it in layout to correct place, and that does work.. but this will be extremely annoying for a Car Library. I have tried all coordinate options in instancer as well.. Parent, local, and world.
Capture.PNG
change the instance option W (for world) to L (for local)

snip lwugru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

here is a test scene... Guru..local doesnt fix it. Its defentiely a problem with SDK, or something.. Fix is to have object at origin, then move into place... but that can be a less optimal workflow in some cases.
Attachments
intance_test.zip
(11.5 MiB) Downloaded 255 times
User avatar
LightwaveGuru
Licensed Customer
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany
Contact:

mstewart152 wrote:here is a test scene... Guru..local doesnt fix it. Its defentiely a problem with SDK, or something.. Fix is to have object at origin, then move into place... but that can be a less optimal workflow in some cases.
its a limitation from the instancer. the instancer can not see the pivots you set with the pivot tool in lw modeler.
so you need another set up. (and also thats not the best set up. do you remember. you can instance also cloned lw geometry.
so you need not 4 wheels! one wheel is enough...if you clone them in layouter octane see that and you save VRAM!
anyway...here your scene with the right set up with 4 wheels...

Image

including the instance ID based coloring surface for the instances...

download scene here >

https://drive.google.com/open?id=1THVNX ... 1F9qo4JoCb

snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
mstewart152
Licensed Customer
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

thanks for that Guru. That is what i ended up doing. Kind of a bummer octane can not see the modeler pivot points though.... here is main reason why.

For a car, no big deal, put the wheel at origin... and move on......but.

For something more complex, such as a layered Humanoid Robot.... with each arm, leg, finger, etc... on different layers and pivot points all figured out.... this becomes much more of a pain...

I know you did you bicycle robot guy using one layer mesh and weight maps... BUT I do not prefer that method because it slows lightwave performance way down when it has to look at TONS of vertices and weight map associations. If you Parent individual pieces to bones, its response time in the view port is WAY faster. Also, you dont need bones at all for that matter if its not deforming. But that would be a massive pain sense Octane can not see the modeler pivot points.... Re-arranging every piece by hand on a complex robot..... that would not be fun.....

One Alternative to this I have thought of is this.

1. Model the robot as you like.... get all pieces where they should be......

2. Save a separate version for piece break outs.

3. Layout bones using single layer version as reference

4. Put each piece at origin facing down Z axis

5. Parent each piece to the proper bone. The piece will automatically snap to the correct position. Assuming your bones rest positions are zeroed out.


This method would achieve the correct layout, and would be instance able by octane as well. It would also be very fast to animate, because your not using weight maps to separate pieces.
User avatar
LightwaveGuru
Licensed Customer
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany
Contact:

mstewart152 wrote:thanks for that Guru. That is what i ended up doing. Kind of a bummer octane can not see the modeler pivot points though.... here is main reason why.

For a car, no big deal, put the wheel at origin... and move on......but.

For something more complex, such as a layered Humanoid Robot.... with each arm, leg, finger, etc... on different layers and pivot points all figured out.... this becomes much more of a pain...

I know you did you bicycle robot guy using one layer mesh and weight maps... BUT I do not prefer that method because it slows lightwave performance way down when it has to look at TONS of vertices and weight map associations. If you Parent individual pieces to bones, its response time in the view port is WAY faster. Also, you dont need bones at all for that matter if its not deforming. But that would be a massive pain sense Octane can not see the modeler pivot points.... Re-arranging every piece by hand on a complex robot..... that would not be fun.....

One Alternative to this I have thought of is this.

1. Model the robot as you like.... get all pieces where they should be......

2. Save a separate version for piece break outs.

3. Layout bones using single layer version as reference

4. Put each piece at origin facing down Z axis

5. Parent each piece to the proper bone. The piece will automatically snap to the correct position. Assuming your bones rest positions are zeroed out.


This method would achieve the correct layout, and would be instance able by octane as well. It would also be very fast to animate, because your not using weight maps to separate pieces.

Juanjo have now your scene and my scene. now he can search why octane not see the pivots...more i can not do in that case...

snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
User avatar
Lewis
Licensed Customer
Posts: 1101
Joined: Tue Feb 05, 2013 6:30 pm
Location: Croatia
Contact:

mstewart152 wrote:here is a test scene... Guru..local doesnt fix it. Its defentiely a problem with SDK, or something.. Fix is to have object at origin, then move into place... but that can be a less optimal workflow in some cases.
Try in LW 2015, Instancing behavior is "changed" in LW 2018 so "Local" mode doens't really work same as it was before and makes problem in parented/child scenes.
--
Lewis
http://www.ram-studio.hr
Skype - lewis3d
ICQ - 7128177

WS AMD TRPro 3955WX, 256GB RAM, Win10, 2 * RTX 4090, 1 * RTX 3090
RS1 i7 9800X, 64GB RAM, Win10, 3 * RTX 3090
RS2 i7 6850K, 64GB RAM, Win10, 2 * RTX 4090
LichtUndSchatten
Licensed Customer
Posts: 26
Joined: Fri May 12, 2017 4:12 pm

Hello.

Is this pivot point problem still there?
If yes. Is there a possibility to get it fixed or do we have to get used to
do a workaround.

Thx :)
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Nope, sorry. I don't have a solution for this issue yet, so you are going to need to use a workaround.

Thanks,
-Juanjo
Post Reply

Return to “Lightwave 3D”