playMaker

Author Topic: How can I make an off-line renderer for Unity?  (Read 940 times)

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
How can I make an off-line renderer for Unity?
« on: January 28, 2020, 12:41:19 PM »
Can I get some advice (pseudo-code or simplified action flow) how I can make an offline renderer with PM?

The idea is that I need to pause Unity at regularly-timed intervals (30 or 60fps) and save an image to hdd. Setting aside the actions that would save the image, how do I stop time so I can do the save-image actions, then advance time by an increment (1/30th second)…?

I own a few 3rd-party tools to do this in Unity, but I'd like to try to control it myself through PM. What actions do I need?

daniellogin

  • Full Member
  • ***
  • Posts: 215
Re: How can I make an off-line renderer for Unity?
« Reply #1 on: January 29, 2020, 06:17:40 AM »
OK so how about the Scale Time action: https://hutonggames.fogbugz.com/default.asp?W95

1) Scale time to 0 to freeze time
2) Do the snap shot or what ever
3) Set Scale Time to 1
4) Do a Wait action for 0.0333 (1 second divide 30)
5) After the wait transition back to the time scale 0 to repeat the process