Move a texture with an object?

Forums: Move a texture with an object?
Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

Move a texture with an object?

Postby ruuterdetuuter » Fri Oct 06, 2017 3:51 pm

ruuterdetuuter Fri Oct 06, 2017 3:51 pm
Hi,

Is there a possibility to let textures move with an object? Like in LW you can set a reference object and the texture follows this?

I was thinking about spot info connected to the U and V translation inputs... but that doesnt do anything..

thanks in advance.
Ruud
ruuterdetuuter
Licensed Customer
Licensed Customer
 
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Re: Move a texture with an object?

Postby juanjgon » Sat Oct 07, 2017 9:41 am

juanjgon Sat Oct 07, 2017 9:41 am
The spot info is not going to work because this information is not available in the Octane context, but I suppose that you can link the position info from any object item info node to the translation input of the Octane projection node.

Be aware that perhaps this workflow is not going to work in realtime in the IPR, but if you reload the scene or redraw it, the texture should move with the reference object.

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

Re: Move a texture with an object?

Postby ruuterdetuuter » Sat Oct 07, 2017 3:54 pm

ruuterdetuuter Sat Oct 07, 2017 3:54 pm
Thanks, but whenever I move the object, the texture on the surface goes another way..

Thanks in advance,
Ruud
ruuterdetuuter
Licensed Customer
Licensed Customer
 
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Re: Move a texture with an object?

Postby mikefrisk » Sat Oct 07, 2017 6:03 pm

mikefrisk Sat Oct 07, 2017 6:03 pm
ruuterdetuuter wrote:Thanks, but whenever I move the object, the texture on the surface goes another way..

Thanks in advance,
Ruud


Just a hunch, you could try using "world position" instead of "position".
mikefrisk
Licensed Customer
Licensed Customer
 
Posts: 169
Joined: Fri Aug 29, 2014 9:17 pm

Re: Move a texture with an object?

Postby ruuterdetuuter » Sun Oct 08, 2017 9:06 am

ruuterdetuuter Sun Oct 08, 2017 9:06 am
I did, but it didn't make a difference.
Thanks for the suggestion
ruuterdetuuter
Licensed Customer
Licensed Customer
 
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Re: Move a texture with an object?

Postby juanjgon » Sun Oct 08, 2017 9:21 am

juanjgon Sun Oct 08, 2017 9:21 am
ruuterdetuuter wrote:Thanks, but whenever I move the object, the texture on the surface goes another way..

Thanks in advance,
Ruud

Probably you need some math nodes to adjust the coordinates system. Octane has the Z axis inverted, so you should try to invert this axis to see if it works.

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

Re: Move a texture with an object?

Postby ruuterdetuuter » Mon Oct 09, 2017 6:40 pm

ruuterdetuuter Mon Oct 09, 2017 6:40 pm
I can get it to invert (-100 scale on the Add Scaled Node) But then it inverts on the X axis also... Is there a way to invert only the Z-Axis?
ruuterdetuuter
Licensed Customer
Licensed Customer
 
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Re: Move a texture with an object?

Postby juanjgon » Mon Oct 09, 2017 8:53 pm

juanjgon Mon Oct 09, 2017 8:53 pm
You could use the Vector Scalar node to extract the X, Y and Z components, invert the Z and use the Make Vector node to build the vector again.

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

Re: Move a texture with an object?

Postby ruuterdetuuter » Tue Oct 10, 2017 6:37 pm

ruuterdetuuter Tue Oct 10, 2017 6:37 pm
Thanks Juanjgon for thinking along. But I cannot make it work. The nodes are not working as I'd like them to work... Maybe for the next update of Octane it would be an idea to just invert the Z axis? or otherwise deliver a node that does just that?

Thanks again. Hoping for other suggestions.
ruuterdetuuter
Licensed Customer
Licensed Customer
 
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Re: Move a texture with an object?

Postby juanjgon » Tue Oct 10, 2017 11:02 pm

juanjgon Tue Oct 10, 2017 11:02 pm
Weird. It should work. Attached you have a sample scene. Put any file in the texture node and check what happens if you move the Null object. Remember that you must reload the scene in the IPR to see the changes.

Thanks,
-Juanjo
Attachments
plane.rar
(4.31 KiB) Downloaded 224 times
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain
Next

Return to Lightwave 3D


Who is online

Users browsing this forum: No registered users and 21 guests

Tue Apr 23, 2024 10:07 am [ UTC ]