0
$\begingroup$

I have been playing around with volumetric lighting and wanted to make a basic render. I create a point light put a UV sphere around it and deleted some of the faces to get the volumetric light. However the cube for which I'm using to control the volume scatter is still visible. I went an unchecked the Camera for ray visibility but the moment I do that my volumetric light disappears. Any suggestions?

With camera turned on: With camera turned on

With camera turned off: With camera turned off

$\endgroup$
  • $\begingroup$ please post an image of the nodes for the cube. For volumetrics you need noting connected to the surface socket, only the volume socket shoud be used. $\endgroup$ – cegaton Jan 20 '17 at 3:35
1
$\begingroup$

Disabling camera ray visibility prevents an object or shader from being evaluated until after a ray has bounced for the first time. Directly visible volumetric light comes from striking the volume on the first hit. By disabling camera ray visibility, you prevent this interaction since there is no first hit on the volume.

What exactly are you trying to accomplish? I'm not seeing anything wrong with your first image.

Btw, you may get somewhat improved performance by using an emission texture on your light itself instead of enclosing it in a sphere with holes. The texture will prevent sampling around the solid areas of the sphere. Use the texture coordinate > normal output to mapping on a point light.

$\endgroup$
  • $\begingroup$ in the first image it's hard to tell but the cube it'self is still visible. Preventing me from using a world texture. $\endgroup$ – nathan rivera Jan 19 '17 at 20:42
  • $\begingroup$ World texture should still be visible through volumes, provided the scattering doesn't wash it out. Just make sure the cube doesn't have corners/edges visible within the camera frame. $\endgroup$ – JtheNinja Jan 19 '17 at 21:23
  • $\begingroup$ the edges arent visible however the world texture doesn't show through the cube. $\endgroup$ – nathan rivera Jan 19 '17 at 21:24
  • $\begingroup$ Do you have any surface shaders on the volume material? If so, get rid of them. Otherwise, that sound like the scattered light just overwhelming the background. $\endgroup$ – JtheNinja Jan 19 '17 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.