The light is being reflected inside the bulb.How to fix it?
The light is being reflected inside the bulb.How to fix it?
I can't seem to find a solution for this problem
Is there any possible fix without affecting how the glass look like?
File:
$begingroup$
Can you find it now ?
$endgroup$
– A NASR
Sep 8 '18 at 15:38
$begingroup$
Yes, if no one else does I'll may have a look at it later, although it seems to me that it is expected but unwanted behaviour
$endgroup$
– WhatAMesh
Sep 8 '18 at 16:05
$begingroup$
The only correct solution is to keep the reflection...
$endgroup$
– John Dvorak
Sep 8 '18 at 23:26
3 Answers
3
To implement this, you just have to ensure that the light from the filament is not bouncing off or interacting with too many surfaces (in technical terms 'bounces').In our case, if the light from the filament comes through the front of the bulb, it means the emission ray from the filament is converted to transmission ray (at the front portion of bulb) and reaches camera. Which means 2 bounces. But in the case of the additional reflections, the bounces are more.
So all we have to do is, make the rays which have more than 2 bounces invisible. We can get this bounce information from 'Ray depth' of 'Light path' node.
Ray Depth is the Number of times the ray has “bounced”, i.e. been reflected
or transmitted on interaction with a surface.
In material node editor, Shift+A and Input>Light path. Also, we can get the 'greater than' operation from math node. Shift+A, Converter>Math and change the operation in the drop down menu to 'greater than'.
Check out the following node setup for emission material of the filament.You can do the same for the rest of the materials that are getting reflected.
$begingroup$
That's what i was looking for. Thank you so much.
$endgroup$
– A NASR
Sep 8 '18 at 18:17
$begingroup$
Happy to help :)
$endgroup$
– Teja
Sep 8 '18 at 18:20
You could try this setup, which is very similar to @Teja's but will not restrict the total bounces in the same way. In this scene, the bulb is seen in a mirror.
This says:'I dont want to hear from the element if its asked by a ray whose transmission depth is greater than 2, or it's being asked for a reflection'
Without the fix:
With the fix:
..but it's still not perfect.. if you looked at your bulb through a window, its filament would disappear.
It is Physically Right. Glass always reflect a little bit Reflection, Anyways here's a trick:
Use A Refraction BSDF instead of Glass BSDF.
Here's the Render:
Unrelated: I checked your Metal Shader, you added diffuse to it. Metal is 100% Gloss
Check: Blender Guru Tutorial For Metals
$begingroup$
Thank you .I have already tried using the "Refraction BSDF" but its not as good as the glass.
$endgroup$
– A NASR
Sep 8 '18 at 16:51
$begingroup$
Results are same I think (except Reflection), Anyway That's the Solution.
$endgroup$
– Shehroz Khan
Sep 8 '18 at 16:54
Thanks for contributing an answer to Blender Stack Exchange!
But avoid …
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
$begingroup$
Please upload your .blend to blend-exchange.giantcowfilms.com
$endgroup$
– WhatAMesh
Sep 8 '18 at 15:30