Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Lighting & Rendering (https://simplymaya.com/forum/forumdisplay.php?f=17)
-   -   Transparency maps and light fog ? (https://simplymaya.com/forum/showthread.php?t=29192)

Andy Gee 06-03-2008 10:20 AM

Transparency maps and light fog ?
 
Hello 2 all

I have been experimenting with lightfog and transparency maps.

I had an idea on how to generate the light beams for my underwater scene, but I am having trouble getting this setup to work properly.

Ok I have a plane with a blinn applied to it I have mapped a file to the transparency of the blinn, just added a simple checker texture, for this test.

I added a spot light, and added light fog to that and placed it above my plane shining down. when I render It does,t cut out the black squares in the checker texure and allow the light fog to come through. Also I get that harsh light cone on the black(transparent areas) of my plane. Also on the white areas of the plane.
Ok this is just a test, but how can I get the result I am after ??

Any help on this would be great.

Thanks

Andy Gee

Alan 06-03-2008 10:26 AM

post a picture for a start ;)

Andy Gee 06-03-2008 10:45 AM

1 Attachment(s)
Top

NeoStrider 16-03-2008 02:43 AM

i believe that light fog doesn't go through transparent materials, only through actual holes... so if you wanted the light fog to pass through the floor you'd have to create a panel that actually had holes in it.


as for the harsh white, what is the value of your spotlight? it looks like you've got that sucker cranked up pretty high...

alexanderH 17-03-2008 04:54 PM

Hey, as far as getting light fog to pass through transparency objects there is a nice bit of a tutorial at the gnomon workshop found here .

Basically what you need to do is create an object that has the hole you want the fog to go through. Leave the default material on it and open up the objects render settings. Turn the visibility off so that it does not render but it will still affect the light. This will allow you to make it look like the fog is going through the items.

Hope that helps!

alexanderH 17-03-2008 05:02 PM

1 Attachment(s)
I have attached a quick mockup of what I do believe you were trying to do. Instead of using a texture for transparency I simply plced my plane and cut out the necessary holes to demonstrate the effect. Where the fog seems to separate is where the plan is but as it is not visible in renders it will still affect the light so if you had a textured plane there which did not affect shadows but showed in renders you should be able to achieve your desired look.

alexanderH 17-03-2008 05:10 PM

1 Attachment(s)
I have attached a quick mockup of what I do believe you were trying to do. Instead of using a texture for transparency I simply plced my plane and cut out the necessary holes to demonstrate the effect. Where the fog seems to separate is where the plan is but as it is not visible in renders it will still affect the light so if you had a textured plane there which did not affect shadows but showed in renders you should be able to achieve your desired look.
I have the file here still if you'd like to see what has been done. All you would have to do is place a plane with your trasnparent texture over the original plane and then adjust its render settings so that it does not affect shaows, and such.

NeoStrider 17-03-2008 11:00 PM

yea! cut holes in it!

Andy Gee 17-03-2008 11:18 PM

Hey AlexanderH

How did you cut holes in the geometry ??

The reaon I am asking is because I want to add an image sequence to plane which is animated so I am not sure how to cut holes from an image sequence ?

any further help would be great.

thanks

Andy Gee

NeoStrider 18-03-2008 01:06 AM

i think for an image sequence you can attach that to the light itself like alexander H shows in the one render... as long as you have an alpha channel attached to the image sequence it should only create the fog within the image's area.


(because to cut holes you have to delete portions of geometry - like faces for polygons or perform trims for nurbs planes...)

alexanderH 18-03-2008 02:59 PM

yeah if you are mapping an image to the colour value of the light, if you map that same image sequence to the lightfog it will only have fog where there is colour. Furthermore the color based transparency in the lightfog options will give you more realistic fog based on that image sequence.


All times are GMT. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018