Lua script for texture animation?

Forums: Lua script for texture animation?
Forum for OctaneRender Lua scripting examples, discussion and support.

Re: Lua script for texture animation?

Postby Refracty » Sun Feb 15, 2015 8:40 am

Refracty Sun Feb 15, 2015 8:40 am
Thank you Grimm
User avatar
Refracty
Licensed Customer
Licensed Customer
 
Posts: 1598
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln

Re: Lua script for texture animation?

Postby glimpse » Fri Mar 20, 2015 10:48 pm

glimpse Fri Mar 20, 2015 10:48 pm
wow, I just thought about idea of animated HDR backgrounds/skies..& remembered I've seen a thread on forums about animated textures..

curious how it is going on? is it possible? what are the limitations & so on =) it would be so awesome to have this feature! =)
User avatar
glimpse
Licensed Customer
Licensed Customer
 
Posts: 3715
Joined: Wed Jan 26, 2011 2:17 pm

Re: Lua script for texture animation?

Postby grimm » Sat Mar 21, 2015 12:52 am

grimm Sat Mar 21, 2015 12:52 am
The script should still work with the new version, if it doesn't let me know. Here is another little test video I did with two animated textures, a hdri and a movie, running at the same time. The animation is controlled with an Alembic file.

Last edited by grimm on Sat Sep 26, 2015 6:15 pm, edited 1 time in total.
Linux Mint 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Re: Lua script for texture animation?

Postby jtmsf » Tue Jun 23, 2015 6:47 pm

jtmsf Tue Jun 23, 2015 6:47 pm
Did a search in google for an animated texture solution for octane and discovered this script. Absolutely fantastic!! Thank You!!
jtmsf
Licensed Customer
Licensed Customer
 
Posts: 58
Joined: Thu May 28, 2015 9:47 pm

Re: Lua script for texture animation?

Postby Moonhowl » Fri Sep 25, 2015 11:24 pm

Moonhowl Fri Sep 25, 2015 11:24 pm
Many thanks mr. Grimm, you just saved my life. Well, figuratively speaking at least.

Perhaps this will help someone though:

I have a 2500 frame animation and two separate texture sequences, each only 150 frames long, one starts at 400 and finishes at 550 and the other one at 1300 and then finishes at 1450.

So obviously this was an issue as the script by default just starts at frame 0 of the animation itself + annoys with "missing rgb for frame xxxx" for the other 2350 frames.

So I just populated the rest of the frames with either the first or the last frame of the texture animation (so that I had 2500 frames total) and used batch renamer to accurately place the texture sequence with the rest of the frames where it belonged (say, the actual 150 frame texture sequence would start at frame 400, whereas previous 399 frames would be just the same texture from the sequence, the very first one - vice versa on the other end to 2500).

Hope this helps someone.
Asus V Extreme motherboard, i7-5930K CPU, 32 GB DDR4 Quad Channel RAM, 3x Nvidia Geforce 1080ti, Windows 7 Ultimate 64, 3DS Max 2019 64
Moonhowl
Licensed Customer
Licensed Customer
 
Posts: 61
Joined: Tue Apr 13, 2010 12:07 pm
Location: London

Re: Lua script for texture animation?

Postby prehabitat » Sat Sep 26, 2015 9:33 am

prehabitat Sat Sep 26, 2015 9:33 am
Any word from OTOY if this can be checked/polished/vetted and added to the next release?
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
prehabitat
Licensed Customer
Licensed Customer
 
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

Re: Lua script for texture animation?

Postby grimm » Sat Sep 26, 2015 6:19 pm

grimm Sat Sep 26, 2015 6:19 pm
Thanks guys, I had plans on upgrading the script to allow you to choose when to start the animation, etc. Thomas (or maybe Roeland) did say that they will have animated textures in 3.0 so I haven't updated the script.

I can't see the embedded vimeo videos anymore, did something change on the site?
Linux Mint 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Re: Lua script for texture animation?

Postby abstrax » Sun Sep 27, 2015 8:19 pm

abstrax Sun Sep 27, 2015 8:19 pm
prehabitat wrote:Any word from OTOY if this can be checked/polished/vetted and added to the next release?

We will support animated textures natively in version 3, i.e. we don't plan to improve this script graph or include it in Octane.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
abstrax
OctaneRender Team
OctaneRender Team
 
Posts: 5483
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Re: Lua script for texture animation?

Postby prehabitat » Sun Sep 27, 2015 8:50 pm

prehabitat Sun Sep 27, 2015 8:50 pm
abstrax wrote:
prehabitat wrote:Any word from OTOY if this can be checked/polished/vetted and added to the next release?

We will support animated textures natively in version 3


Great news, thanks! :)
Win10/3770/16gb/K600(display)/GTX780(Octane)/GTX590/372.70
Octane 3.x: GH Lands VARQ Rhino5 -Rhino.io- C4D R16 / Revit17
prehabitat
Licensed Customer
Licensed Customer
 
Posts: 495
Joined: Fri Aug 16, 2013 10:30 am
Location: Victoria, Australia

Re: Lua script for texture animation?

Postby lalaku » Sun Feb 05, 2017 3:20 am

lalaku Sun Feb 05, 2017 3:20 am
grimm wrote:Here you go: :D

anim_texture.lua

Darling grimm,about "anim_texture",How do I use it?Do you have a video tutorial?Thanks very much!
lalaku
Licensed Customer
Licensed Customer
 
Posts: 1
Joined: Wed Oct 26, 2016 4:58 am
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 5 guests

Thu Mar 28, 2024 8:34 pm [ UTC ]