Animated tiled camera v1.08

Forums: Animated tiled camera v1.08
Forum for OctaneRender Lua scripting examples, discussion and support.

Animated tiled camera v1.08

Postby bepeg4d » Sun Jan 29, 2017 3:49 pm

bepeg4d Sun Jan 29, 2017 3:49 pm
New version of the TiledCameraAni script, now at v1.08 to work with OctaneRender® 2021.1 or greater, and the new AOVs system.
For OctaneRender® v2 to 2020.2.5, please still use version 1.06.

Animated tiled camera v1.08
tiledcameraani_1.08.lua
(33.27 KiB) Downloaded 89 times


Animated tiled camera v1.06
tiledcameraani_1.06.lua
(29.62 KiB) Downloaded 319 times



The idea is to create an animation of a big frame buffer divided into tiles to be ready to be sent to RNDR for rendering more rapidly.
As a side effect, in v2, is useful also for removing the frame buffer limitation on VRAM .
The new script works with Thin Lens, Panoramic, and Backing camera node. It should also work with Universal ThinLens Camera.

Thin Lens Camera,
The script creates an animator for the shift parameter, and changes some parameters like fov and resolution of a Thin lens Camera node. The user define the number of tiles per axis (from 2 to 89) and the script creates the animation. Vignetting and Post processing will be disabled, if present.
The new version takes into consideration if the original camera has already the Shif parameter different from 0.
Note, if Autofocus is active, the script will stop asking to remove the option and choose focus point before executing the script again.
A5396AE0-7895-4C22-9E81-B3C95D5206CD.jpeg


Panoramic Camera
The script automatically creates an animator of the panoramic type in Cube map mode (v3 only) with 6 frames if mono or 12 frames if stereo with Samsung Gear VR resolution (1536x1536). The final node graph has the render target outputs ready to be connected to a render job node.

Backing Camera
Instead of splitting the frame buffer in tiles, the script changes the UV region Size parameter, and creates an animator of the UV Region Minimum parameter. In this way it is possible to multiply the frame buffer to obtain a high resolution version of the backed texture.
DD567B44-ABAF-4A04-8F86-D32052A8868E.jpeg


To assemble all the tiles in Photoshop, I use this modified old java script founded on the Adobe forum:
The attachment mergeTiledImages3.js.zip is no longer available

mergeTiledImages3.js.zip
(2.28 KiB) Downloaded 790 times

Create an empty document with the final resolution, run the script, locate the folder with the rendered frames and click on Process. Unfortunately it doesn't work with Cube Map VR frames.
Happy Rendering
ciao beppe
Attachments
Screen Shot 2017-01-29 at 16.41.58.jpg
Screen Shot 2017-01-29 at 16.41.58.jpg (19.88 KiB) Viewed 15257 times
Last edited by bepeg4d on Fri May 05, 2023 3:50 pm, edited 3 times in total.
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animated tiled camera

Postby smicha » Thu Feb 16, 2017 8:41 pm

smicha Thu Feb 16, 2017 8:41 pm
I must try it asap - seems to be a kick ass script!
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
User avatar
smicha
Licensed Customer
Licensed Customer
 
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

Re: Animated tiled camera

Postby oscartung » Tue Oct 23, 2018 6:44 am

oscartung Tue Oct 23, 2018 6:44 am
I use this script all the time for big renders thanks. However when lens shift is used on the original renders, the output is shifted, is there a way around this?
oscartung
Licensed Customer
Licensed Customer
 
Posts: 64
Joined: Wed May 21, 2014 5:33 pm

Re: Animated tiled camera

Postby bepeg4d » Mon Oct 29, 2018 4:16 pm

bepeg4d Mon Oct 29, 2018 4:16 pm
Hi,
happy to hear that you find my script useful.
Please, try with the attached new version, it should have solved the shift issue, and also works with v4:
tiledcameraani_1.03.lua
(18.83 KiB) Downloaded 508 times

Looking forward for your feedback,
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animated tiled camera

Postby oscartung » Mon Nov 05, 2018 5:02 am

oscartung Mon Nov 05, 2018 5:02 am
Hi Thank you so much for the update, the script is working in 4.0, however the lens shift problem is still not working on my side
oscartung
Licensed Customer
Licensed Customer
 
Posts: 64
Joined: Wed May 21, 2014 5:33 pm

Re: Animated tiled camera v1.05

Postby bepeg4d » Sun Feb 03, 2019 11:37 pm

bepeg4d Sun Feb 03, 2019 11:37 pm
I have updated the script in the first post, now at v1.05, with the correction of the Shift parameter, and a new Backing camera workflow.
Happy Tiled Rendering,
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animated tiled camera v1.05

Postby promity » Wed Jul 21, 2021 10:18 am

promity Wed Jul 21, 2021 10:18 am
Ok, where should I place this script for Octane to see it?
AMD Threadripper 1950X/64gb ram/RTX 3080 Ti + RTX 2070/Samsung SSD 870 EVO 500 gb/
Lightwave 3d
User avatar
promity
Licensed Customer
Licensed Customer
 
Posts: 363
Joined: Sun Dec 19, 2010 7:59 am
Location: Russia

Re: Animated tiled camera v1.05

Postby bepeg4d » Wed Jul 21, 2021 10:35 am

bepeg4d Wed Jul 21, 2021 10:35 am
Hi,
you can go to Standalone menu Windows/Create Scripting window, and load and run the script in it.

Alternatively, go to Standalone Preferences, and define a Script folder path:
A214F287-3A5B-4702-ABD0-30D17644C0F6.jpeg


Then copy in it the desired scripts, and restart Standalone, or use the Rescan Script folder option in Script menu:
794A3C4D-CCE0-4FA2-B776-058E0795144C.jpeg


ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Animated tiled camera v1.05

Postby promity » Wed Jul 21, 2021 11:53 am

promity Wed Jul 21, 2021 11:53 am
Thank you. But when I try to run the script, I get the message "The Resolution node is missing".
AMD Threadripper 1950X/64gb ram/RTX 3080 Ti + RTX 2070/Samsung SSD 870 EVO 500 gb/
Lightwave 3d
User avatar
promity
Licensed Customer
Licensed Customer
 
Posts: 363
Joined: Sun Dec 19, 2010 7:59 am
Location: Russia

Re: Animated tiled camera v1.06

Postby bepeg4d » Thu Jul 22, 2021 5:50 am

bepeg4d Thu Jul 22, 2021 5:50 am
Hi promity,
I have updated it to 1.06, try with this version.

ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Next

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

Thu Mar 28, 2024 4:48 pm [ UTC ]