Move a texture with an object?

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

Moderator: juanjgon

ruuterdetuuter
Licensed Customer
Posts: 86
Joined: Tue May 02, 2017 8:41 am

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
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
ruuterdetuuter
Licensed Customer
Posts: 86
Joined: Tue May 02, 2017 8:41 am

Thanks, but whenever I move the object, the texture on the surface goes another way..

Thanks in advance,
Ruud
mikefrisk
Licensed Customer
Posts: 172
Joined: Fri Aug 29, 2014 9:17 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".
ruuterdetuuter
Licensed Customer
Posts: 86
Joined: Tue May 02, 2017 8:41 am

I did, but it didn't make a difference.
Thanks for the suggestion
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
ruuterdetuuter
Licensed Customer
Posts: 86
Joined: Tue May 02, 2017 8:41 am

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?
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
ruuterdetuuter
Licensed Customer
Posts: 86
Joined: Tue May 02, 2017 8:41 am

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.
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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 266 times
Post Reply

Return to “Lightwave 3D”