phoenix1606
June 24, 2003 13:35:13
Hello
I'm using Houdini 6 Apprentice Edition, and when I try to create reflections off of a planar surface, the reflections are only appearing in a circular area on the surface, even though the entire surface is illuminated by one light, and the object only has one shader applied to it.
In addition, the reflections seen in the circular area appear distorted, like in a fisheye lens. I appreciate any help I can get. Thanks!
phoenix1606
Mario Marengo
June 24, 2003 13:59:42
Are these reflections traced, or mapped?
What shader is being applied? One you wrote? Or one of the shipped ones?
And why do you mention the light? Is this a Light shader?
If it's a mapped reflection, then everything depends on how the reflection vector gets calculated… but then, for a flat surface, that gives you a single lookup direction (one color)…
Need more details…
phoenix1606
June 24, 2003 14:36:05
I created my own shader in VOPs by wiring the Color output from a woodPlank shader into the diff input of a Blinn lighting model, which is wired out to the Surface Color (Cf) input of the Output VOP.
There are no lighting shaders, so I guess the lighting is irrelevant. I hope this is enough information…
phoenix1606
wolfwood
June 24, 2003 15:14:01
The default woodplank VOP already has a lighting model (VEX Specular)built into it so you don't need to connect it to a another lighting model. Just connect the woodplank's color to Cf.
If you want to change it to Blinn then select the woodplank VOP and hit enter. This will take you inside the woodPlank network. Go to the “lighting1” VOP and change the Lighting model from VEX Specular to Blinn.
This might fix your problem.
jim.
phoenix1606
June 24, 2003 17:53:52
I'm still getting the same problem. The reflection is only showing in a circular area in the center of the planar surface, and it's distorting around the circle. No idea what it is…
phoenix1606
wolfwood
June 24, 2003 17:56:32
Can you post a sample file?
jim.
Mario Marengo
June 24, 2003 18:17:07
Phoenix,
Could it be that by “reflection” you actually mean the specular spot? – a bright white “circle” in the middle of your grid?
A circle that “distorts” as you change the viewing direction?
phoenix1606
June 24, 2003 19:19:31
Here's a sample image. Can you see the strange reflection on the floor?
phoenix1606
wolfwood
June 24, 2003 20:07:02
I just did a similar setup using the woodplank VOP and it looks fine. What version of Houdini? Can you post a .hipnc file?
jim.
phoenix1606
June 24, 2003 21:18:20
wolfwood
June 24, 2003 22:50:59
Under “box1” of your “Floor” Object turn off “Consolidate Corner Points”. This was causing your normals to interpolate funny.
jim.
wolfwood
June 24, 2003 23:06:41
To see what was happening enter your “Floor” SOP network and append a Point SOP to box1. Set it to “Add Normals”. Turn on display normals to view the normals. Turn on “consolidate points” and you will see the normals being averaged over 3 directions. During the render those corner normals were being smoothly interpolated across the surface causing the funny reflection. With “consolidate points” off the normals at the corners point in the correct direction and during rendering are correct.
Alternatively you could have left on “Consolidate Points” and in your VOP networked created a Inline VOP. For your code you would put something like.
$Nn = computenormal(P);
Then connect Nn to the N input of woodplanks. This will cause a normal to be computed using the derivatives at the current point being shaded which ignores the normals at the corners.
I hope this helps.
jim.
phoenix1606
June 25, 2003 00:30:53
Yes, this resolved the issue. Thank you very much!
phoenix1606