A beautiful Sun!!
3 Comments
Page 1 of 4
demo movie
Sometimes a flare is not enough to simulate a big light or a sun.
The problem is that only one point detects the alpha, so you dont have a volume object that emits the light.
Ive had to create a sun for a project and I decided to do it in a way that you can control animation, shape and color. I also wanted it to hide or show behind alphas depending on its shape.
So with a little help of a Flare, a couple of VolumeRays and Radials I achieved a very good result for this job.
Here is the script and the explanation of how it works.
First, I load the sky and its alpha.
I create a Position node (named SunPos) that will control the position of all the moving stuff that create the sun.
Then a VolumeRays with this ex-pression on the Volumetric Centre fields:
root.SunPos.translate.x
root.SunPos.translate.y
Now the Position node controls the center of this effect.
I use one of the RGB channels as a mask for a Gradient node applied to the sky. In this Gradient node I can apply a color correction to the sky to generate volumetric rays caused by the sun/clouds interaction.
Now with a Radial node I draw a little ball.
Firstly I do a couple of steps to optimize the process:
1. with a Shuffle node from the sky image I turn all chanels to 0 and leave the alpha as it is.
2. a Crop node with these expressions to make the ROI smaller
SunPos.translate.x-Radial2.size
SunPos.translate.y-Radial2.size
SunPos.translate.x+Radial2.size
SunPos.translate.y+Radial2.size
This always makes a square around the ball that we draw in next step. (The Radial2.size variable is defined in step 3).
Sometimes a flare is not enough to simulate a big light or a sun.
The problem is that only one point detects the alpha, so you dont have a volume object that emits the light.
Ive had to create a sun for a project and I decided to do it in a way that you can control animation, shape and color. I also wanted it to hide or show behind alphas depending on its shape.
So with a little help of a Flare, a couple of VolumeRays and Radials I achieved a very good result for this job.
Here is the script and the explanation of how it works.
First, I load the sky and its alpha.
I create a Position node (named SunPos) that will control the position of all the moving stuff that create the sun.
Then a VolumeRays with this ex-pression on the Volumetric Centre fields:
root.SunPos.translate.x
root.SunPos.translate.y
Now the Position node controls the center of this effect.
I use one of the RGB channels as a mask for a Gradient node applied to the sky. In this Gradient node I can apply a color correction to the sky to generate volumetric rays caused by the sun/clouds interaction.
Now with a Radial node I draw a little ball.
Firstly I do a couple of steps to optimize the process:
1. with a Shuffle node from the sky image I turn all chanels to 0 and leave the alpha as it is.
2. a Crop node with these expressions to make the ROI smaller
SunPos.translate.x-Radial2.size
SunPos.translate.y-Radial2.size
SunPos.translate.x+Radial2.size
SunPos.translate.y+Radial2.size
This always makes a square around the ball that we draw in next step. (The Radial2.size variable is defined in step 3).
Author: Pau Rocher
Submitted: 2008-06-04 10:49:18 UTC
Tags: expressions, sun, beautiful, nuke, tutorial, and scripting
Software: Nuke
Views: 47,148
Related Items
-
aXYZ design - SMan0001-Se / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CBoy0004-Ru / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CMan0001-St / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CMan0002-Se / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CMan0002-Wa / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CMan0003-Se / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CMan0005-Wa / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CWom0003-Se / 3D Human for superior visualizations 3D Model
$18.00 (USD) -
aXYZ design - CWom0005-Se / 3D Human for superior visualizations 3D Model
$18.00 (USD)