, 7 tweets, 4 min read Read on Twitter
#unitytips #screenshotsaturday (thread) Break down of how to achieve this timelapse effect in unity using procedural skybox and realtime vfx: rendering 3d skybox for VR, combining it with the standard procedural skybox, creating timelaps effect, LUTs and shadows on unlit mesh 1/7
First you need 6 cameras in 6 different directions (up, down, left, right, forward backward). The cameras render in to a renderTexture which are the six sides of a Cubemap shader. For VR make sure their target eye is None, so that it doesn't get synchronised with the HMD. 2/7
Now add a particle system for the stars, place it around your cubemap cameras, and set both on a layer so that they are not rendered by main cam. If you dont clear the buffer of the cameras and rotate the particle system, you get the time lapse effect. 3/7
To combine this with the procedural skybox, you need another cubemap camera which renders only the standard procedural skybox, then OnRenderImage you blit the stars skybox on the procedural skybox. I modified the procedural skybox code abit to get a tint for the night sky. 4/7
The meshes texture also change color. Done by @windspiek in shader. Using a 3d texture you import a Lookup table in frag shader which you use to adjust texture color. The shadows shader is here to download 5/7
Of course you can drop whatever you want in there. Here is the free earth asset placed on that layer and rendered on the skybox. As you can see the planet rotates and the skybox is real time rendered. You could fake all sort of parallax with a 3d skybox 6/7
And you can also get artistic with it. Here I am applying noise and random colors on the particles. That's it! 7/7
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Shahriar Shahrabi
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!