Script to render out several cameras in T4?

Started by hipshot, Today at 03:37:48 AM

Previous topic - Next topic

hipshot

Hi guys!

Back in the days when I was using T1, I had a script that allowed me to render and save multiple images. It was so I could make a sky box out of it without having to sit and render and save all six images manually.

I think the script actually rotated the camera, rendered and saved.

Is there anyway to automate T4 to do the same?

Thanks in advance.

Kevin Kipper

Hi hipshot,

Great question.  First let me point out these two threads about the recent scripts we created for automating a cube map/sky box setup in Terragen and for stitching the rendered images together.

https://planetside.co.uk/forums/index.php/topic,31269.0.html
https://planetside.co.uk/forums/index.php/topic,31270.0.html

Also we made a blog post about it:
https://planetside.co.uk/blog/support-diaries-cubemaps/

I think the approach to render and save the six images automatically would involve the creation of a batch (.bat) file on a Windows system and then executing it.  The batch file would contain instructions from Terragen's command line rendering feature (see link below).  This would essentially launch Terragen, load the project, then render and save the frames.

https://planetside.co.uk/wiki/index.php?title=Command_Line_Reference

I believe Alex Pearce at Sim-plates recently shared some of his scripts for remote rendering on our Discord channel.  You may be able to look at his code and extract what would be needed to render the frames.  Here's a link to the video he shared: https://vimeo.com/1112145456/90b67220e2?share=copy


hipshot

#2
Thanks for the reply Kevin. A lot of info, it's funny how I searched around google and whatnot and didn't find anything about this.

However, all this python and RPC stuff are too complicated for me. I was looking into the command line stuff, but didn't really find anything with cameras there (I feels all this could be a lot simpler haha)
I also have issues finding the discord, it seems all invites are dead. Are there a some what up to date invite I can use?


edit: Actually, I found out how to render and all from a batch file!