Hi all,
I am trying to get a light to refract through a medium, in this case glass, using Cycles Render and Blender 2.77. I’ve set up an scene where I have an ambient light (sun), a spot light (with 1 degree cone to produce a small dot), two planes for ground and background, a box to see half of the spot light, and a cylinder to refract light. Here is the blender model: https://www.dropbox.com/s/eb8831v78cua6f8/scene.blend?dl=0. And here are two screenshots:Fig 1-(a) Fig 1-(b)
in Fig 1-(a), the spot light cone do not intersect with the cylinder while in Fig 1-(b) it does. In both cases the spot light impacts first with the Cube in front. This is just to see that the spot light is being rendered when trying to see if it is refracted.
With this set up, I want to achieve something like the following:Fig 2-(a)Fig 2-(b)
In the previous picture, it can be seen how in Fig 2-(a), where the glass of water is not in between the laser pointer and the orange plane, the laser is projected almost to the edge of the orange plastic. In Fig 2-(b), where the glass of water is in between the laser pointer and the orange plastic, the laser is projected in an other place. However, I get the following results:Fig 3
In Fig 3-(a), the red point is projected to the background, as expected since there is no object in between. Fig 3-(b) shows how using Fig 3-(d) nodes for glass (only Glass BSDF) the red point is not projected to the backround orange wall. Finally, Fig 3-© shows how the red dot is projected to the background using Fig 3-(e) nodes for glass (a combination of Glass BSDF and Transparent BSDF mixed using the light path). Although in Fig 3-© the red dot is projected, as I want, it can be observed that it has been projected to the same spot than in Fig 3-(a) which does not fulfill the reality observed in Fig 2. I suspect that this is because on the nodes, I set the cylinder to Transparent when the light ray is shadow (i.e. it has passed through an object).
Does anybody know how to simulate properly what I have observed in Fig 2?
Thank you very much.