# MR Refraction Problems - Solution MR Custom Shader

**URL:** https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494
**Category:** Maya
**Tags:** mental-ray
**Created:** [March 13, 2004, 11:53pm UTC](https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494 "2004-03-13T23:53:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![boxershorts](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@boxershorts](https://forum.highend3d.com/u/boxershorts)
#### Post date: [March 13, 2004, 11:53pm UTC](https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494/1 "2004-03-13T23:53:33Z")

</div>

Hello,

i wrote a similar post on that topic some time ago. This time i set up a scene for a glass of water with grey ground and background and a half sphere for mapping reflections to the glass. I am using the dielectric material of MR so i can

---

<div class="post-metadata">

### Author: ![latrommi\_suineg](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/l/e99b99/32.png) [@latrommi\_suineg](https://forum.highend3d.com/u/latrommi_suineg)
#### Post date: [March 15, 2004, 10:07am UTC](https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494/2 "2004-03-15T10:07:51Z")

</div>

go into the gloabals and under the custom entities tab... find the custom textures... and create one there...

then take the name of that texture and type it into the slot labelled tex in the sphere lookup...

---

<div class="post-metadata">

### Author: ![scottnofriends](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@scottnofriends](https://forum.highend3d.com/u/scottnofriends)
#### Post date: [May 18, 2004, 3:24pm UTC](https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494/3 "2004-05-18T15:24:40Z")

</div>

I'm having to same problems with a photo real car. Which is being lite with a HDRI Sphere with final gather. I found if I scale my sphere out side my clipping plane I can get an alpha, but I can't exclude it from my refraction so the image is visible through my windows ![](http://www2.highendnet.com/forums/icons/frown.gif) I've tried to understand the connections explains in the last two postings but I am getting errors or different results. Do I need to remove my sphere once these connections are made? Will this work with HDRI images?  
I'm still using 4.5, upgrading to 6 soon with any luck. Any help would be great.

Thanks  
Scott

---

<div class="post-metadata">

### Author: ![boxershorts](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@boxershorts](https://forum.highend3d.com/u/boxershorts)
#### Post date: [May 18, 2004, 10:45pm UTC](https://forum.highend3d.com/t/mr-refraction-problems-solution-mr-custom-shader/46494/4 "2004-05-18T22:45:41Z")

</div>

Hello Scott,

i
