Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 01-01-2013 , 04:39 AM
Registered User
Join Date: Jan 2013
Posts: 5

Use Background shader & spot light

I have a question about the Use Background shader and would appreciate help on. I am trying to make a spot light effect render on the surface of a plane with Use Background shader assigned to it. My problem is that when I render, the casted spotlight effect disappears along with the plane.

Anybody know how to make the spot light render without having the plane itself render while using Use background shader?user added image

# 2 01-01-2013 , 11:21 AM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472




Avatar Challenge Winner 2010
# 3 01-01-2013 , 06:14 PM
Registered User
Join Date: Jan 2013
Posts: 5
Thanks Daverave but I have actually already checked out Jay's tutorial, but it doesn't answer my question as to rendering the spot light shape on the plane.

To make things clear here is what I did:

1- I created a polygon plane and assigned UseBackground shader to it
2- created a spot light and oriented it on the plane.
3-Render...

My problem is that the spot light shape disappears along with the plane in the render!!!


Last edited by Vishader; 01-01-2013 at 06:17 PM.
# 4 01-01-2013 , 08:14 PM
Jay's Avatar
Lead Modeler - Framestore
Join Date: Feb 2003
Location: UK
Posts: 6,287
widen the cone angle

J

# 5 01-01-2013 , 08:36 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Seems to be working as intended. The default camera background in Maya is black and assigning the useBackground shader to the plane is telling Maya to make this plane disappear into said background, shining a light on it won't make it any more visible. Maybe you could explain your desired end effect as there is most likely a better way to go about it.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 6 02-01-2013 , 02:30 AM
Registered User
Join Date: Jan 2013
Posts: 5
Sorry I forgot to mention that I have an image attached to the camera and wanted only the light effect (Penumbra and cone angle to show) to render, not the plane itself. I don't know if this can ever work!!!... anyone?...

Here may be this will help explain:

Attached Thumbnails
# 7 02-01-2013 , 05:14 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
The background shader is only for shadows so will not show you spot light, I wonder if fog would be good for this? or try a lighting layer pass and do some light linking.............dave




Avatar Challenge Winner 2010
# 8 03-01-2013 , 10:28 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
By virtue of what the useBackground does to geometry using it, I don't think it can do what you want. You could render out a matte layer and add that onto the background in post.

Attached Thumbnails

- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 9 04-01-2013 , 07:21 PM
Registered User
Join Date: Jan 2013
Posts: 5
Thanks Gen and everyone. I guess its not possible with a Use Background shader. A matte layer is probably the best way way then.

# 10 10-01-2013 , 09:17 AM
Registered User
Join Date: Jan 2013
Posts: 1
i realized why the use background shader was not working. There was no way for it to work, FG affects just the color, doesn't produce a "shadow". I was beating a dead horse:hmm:
Maybe it's possible to trick mental ray into doing a shadow pass out of FG, but i have no ideea how

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads