instance pivot point problem

Forums: instance pivot point problem
Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

instance pivot point problem

Postby mstewart152 » Mon Aug 13, 2018 2:17 pm

mstewart152 Mon Aug 13, 2018 2:17 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
mstewart152
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

Re: instance pivot point problem

Postby juanjgon » Mon Aug 13, 2018 2:42 pm

juanjgon Mon Aug 13, 2018 2:42 pm
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
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: instance pivot point problem

Postby LightwaveGuru » Mon Aug 13, 2018 7:05 pm

LightwaveGuru Mon Aug 13, 2018 7:05 pm
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
User avatar
LightwaveGuru
Licensed Customer
Licensed Customer
 
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany

Re: instance pivot point problem

Postby mstewart152 » Tue Aug 14, 2018 6:02 pm

mstewart152 Tue Aug 14, 2018 6:02 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 212 times
mstewart152
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

Re: instance pivot point problem

Postby LightwaveGuru » Thu Aug 16, 2018 1:40 pm

LightwaveGuru Thu Aug 16, 2018 1:40 pm
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
User avatar
LightwaveGuru
Licensed Customer
Licensed Customer
 
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany

Re: instance pivot point problem

Postby mstewart152 » Thu Aug 16, 2018 2:32 pm

mstewart152 Thu Aug 16, 2018 2:32 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.
mstewart152
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

Re: instance pivot point problem

Postby LightwaveGuru » Thu Aug 16, 2018 3:17 pm

LightwaveGuru Thu Aug 16, 2018 3:17 pm
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
LightwaveGuru
Licensed Customer
Licensed Customer
 
Posts: 487
Joined: Wed Jun 25, 2014 9:34 am
Location: Germany

Re: instance pivot point problem

Postby Lewis » Mon Aug 20, 2018 9:50 pm

Lewis Mon Aug 20, 2018 9:50 pm
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
User avatar
Lewis
Licensed Customer
Licensed Customer
 
Posts: 1068
Joined: Tue Feb 05, 2013 6:30 pm
Location: Croatia

Re: instance pivot point problem

Postby LichtUndSchatten » Thu Jan 10, 2019 4:51 pm

LichtUndSchatten Thu Jan 10, 2019 4:51 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 :)
LichtUndSchatten
Licensed Customer
Licensed Customer
 
Posts: 24
Joined: Fri May 12, 2017 4:12 pm

Re: instance pivot point problem

Postby juanjgon » Thu Jan 10, 2019 9:48 pm

juanjgon Thu Jan 10, 2019 9:48 pm
Nope, sorry. I don't have a solution for this issue yet, so you are going to need to use a workaround.

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

Return to Lightwave 3D


Who is online

Users browsing this forum: No registered users and 13 guests

Tue Apr 16, 2024 7:20 am [ UTC ]