Stupid Shader Tricks 2

MarkBremmerMarkBremmer Posts: 190
edited June 2015 in Carrara Discussion

This SST (Stupid Shader Trick) isn't for the materials room. It's used with spot lights.

There are many additional functions in the Spotlight > Effects tab but I'll concentrate on the ones that are shader based: Gel and Gradient.

Gradient Shaders in will allow you to change color and intensity of a single spot light across the area it lights. It's a super easy way to add visual richness, suggest additional environmental light yet retain consistency of using a single spot.
I've uploaded a portrait and an exterior scene to demonstrate.

Gel Texture Maps are a super way to project effects onto your objects in the scene. (I used a blurry/splotchy gel in my Mayan scene in 'Tis for the Glory 11 to fake shadows from vegetation) In the sample I've uploaded here, I'm projecting a computer display onto the characters face to better tell a story of what is around him.

Faking water caustics can be done really easily with a gel also – even animated if you have video.

Project.jpg
1024 x 768 - 69K
Scraper.jpg
1024 x 768 - 71K
VickiGradient.jpg
1024 x 768 - 48K
2015-06-02_21-50-20.png
250 x 381 - 34K
Post edited by MarkBremmer on

Comments

  • HeadwaxHeadwax Posts: 9,987
    edited December 1969

    great advice, thank you Mark. Goes along way to make lighting less crisp and less cg.

  • TerritanTerritan Posts: 76
    edited December 1969

    Now I feel the need to share my inexplicable favorite.

    It turns out there are a few different gel variations in the Spotlight Effects tab. The barn door and blinds are good for little more than basic shaping, and the Map option allows you to project graphics.

    Now consider the formula gel. Here's an example I just whipped up.

    Drop a Spot light in the scene, set the Gel to Formula, and paste the stuff below into the formula object's text field.

    a=20;
    b=4;
    c=60;
    r=sqrt(u*u+v*v);
    theta=atan2(v,u);
    red=(1+sin(theta*a))/2;
    green=(1+sin(theta*b))/2;
    blue=(1+sin(theta*c))/2;

    I turned on the Light Cone too, with a bit of turbulence and the 3d enabled, and dropped a few objects—unshaded, mind you—into the scene. The result is attached.

    Formulacone.png
    640 x 480 - 379K
  • MarkBremmerMarkBremmer Posts: 190
    edited December 1969

    Playing with the Gel feature for spotlights is one of the surest ways I know to have a couple of hours magically disappear out of you day. :D

  • SockrateaseSockratease Posts: 813
    edited June 2015

    ...
    Gel Texture Maps are a super way to project effects onto your objects in the scene.

    Yup, that is an old favorite trick of mine too!

    For the attached render I used the dollar sign image which I ran through a fractal generator to get the pattern (that image is attached too and everybody is free to use it however they like - if they like) and made it a light gel, tiled it to get the effect I wanted, then assigned the spotlight to only illuminate the multi-plane cyclorama (with the stock "Tiles" Carrara shader) so it seems to be textured onto the floor and wall, but it is really coming from a light in front of everything!

    I did this with other gels in a couple other renders too - but can't find them at the moment...

    4_copy.jpg
    2000 x 2000 - 553K
    car_sales.jpg
    1600 x 1200 - 602K
    Post edited by Sockratease on
  • SockrateaseSockratease Posts: 813
    edited June 2015

    oopsy - double post!


    EDIT - A double post calls for, a double post!

    Went over to Fractalforums and found my entry in last year's contest.

    If you don't know The Mandelbrot Set, this image wont be as funny - but it is called Brotman and uses the same trick as above in the same way (the fractal texture on the walls and floor was the gel this time) and the car was a Carrara item, Quad Racer, I think... Except the wheels were replaced by Mandelbulbs %-P

    brotman.png
    960 x 720 - 1M
    Post edited by Sockratease on
  • evilproducerevilproducer Posts: 9,050
    edited June 2015

    This uses a gel to project the movie on the movie screen.

    It is also worth mentioning that black acts as a mask and will not let any light through. Also, if you need your spot a specific, uniform color, then use a grayscale or black and white gel. If you need (as I did) the gel to also provide color, then you will generally want a white light.

    Holocene_Park_screening-captioned.jpg
    2000 x 1500 - 1M
    Post edited by evilproducer on
  • WendyLuvsCatzWendyLuvsCatz Posts: 38,202
    edited December 1969

    A video in a gel light with a light cone makes a great movie projector screen image, admittedly the only thing I ever used a gel light for but still :lol:

  • WendyLuvsCatzWendyLuvsCatz Posts: 38,202
    edited December 1969

    I had to fiddle with mapping and masking if I recall though to get a rectangle projection, was a while ago do not have it any longer.

  • SockrateaseSockratease Posts: 813
    edited December 1969

    I had to fiddle with mapping and masking if I recall though to get a rectangle projection, was a while ago do not have it any longer.

    Wouldn't setting the spotlight to only effect the screen remove any fussing with masking?

    Mapping may be another story. Getting read to leave for work, so can't check just now - but I wonder what effect resizing the light with the scale tool would have?

    Something to experiment with on break at the job!

  • DiomedeDiomede Posts: 15,168
    edited August 2016

    Need to dive back into the formula options.

     

    Territan said:

    Now I feel the need to share my inexplicable favorite.

    It turns out there are a few different gel variations in the Spotlight Effects tab. The barn door and blinds are good for little more than basic shaping, and the Map option allows you to project graphics.

    Now consider the formula gel. Here's an example I just whipped up.

    Drop a Spot light in the scene, set the Gel to Formula, and paste the stuff below into the formula object's text field.

    a=20;
    b=4;
    c=60;
    r=sqrt(u*u+v*v);
    theta=atan2(v,u);
    red=(1+sin(theta*a))/2;
    green=(1+sin(theta*b))/2;
    blue=(1+sin(theta*c))/2;

    I turned on the Light Cone too, with a bit of turbulence and the 3d enabled, and dropped a few objects—unshaded, mind you—into the scene. The result is attached.

     

    Post edited by Diomede on
  • HeadwaxHeadwax Posts: 9,987

    wonderful, just been mucking round with them and was ready to give up :)

     

Sign In or Register to comment.