f
f
Apple Store
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
 Advanced Search
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Nuke > Tutorials > compositing > A beautiful Sun!! > Page 1 Change background colorChange background colorChange background colorChange background color
A beautiful Sun!!
Tutorial by Pau Rocher Castellano
Login to add a Bookmark 0 votes for an average rating of 0.00

Updated:   06/05/08

Works on:    Windows  Linux  MacOS-X
Nuke Versions:   4.x
Readership Level:   Basic
Owner:   toret
Author Name:  Pau Rocher Castellano

demo movie:

http://paurocher.987mb.com/nuke/sunTutorial/sunDemo.qt



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).


.




Continue Tutorial:  1 2 3 4 next page

Login to add a Bookmark 0 votes for an average rating of 0.00

There are no comments

To post a comment please login using the form above or register to post a comment.

Related Learning Tools
Nuke Related DVDs

No Results.
Nuke Related Books



The Art and Science of Digital Compositing
Global DVDs



Visual Effects Compositing Fundamentals

Top Rated Nuke Tutorials

1. A beautiful Sun!! by Pau Rocher Castellano (06/05/08)


Related Tips


Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 38 in /var/www/inc/fx_functions2.php on line 759

No Results to Display


More Tutorials by toret

1. A beautiful Sun!! by Pau Rocher Castellano (06/05/08)






Sponsors

Sponsor

Contact Us | Post Jobs | Post News | Post Events