Anim8or Community
General Category => Anim8or v0.98 Discussion Forum => Topic started by: Apophis on August 23, 2008, 02:52:37 pm
-
The same images are rendering differently with Scanline and ART Ray Tracer. Specifically, objects are being shaded/casting and receiving shadows oddly. ART is giving me an odd, partial shadow. How can I fix the shadows in the ART renders?
I've included some examples. Other than moving the camera, nothing has been changed in any way. As you can see, only the bottom half of the jewel is casting a shadow.
The settings are as follows:
Rendering Antialiased
Light and Camera hidden
Rendering from View->Camera
Environment:
Background: Solid, Color: 153, 153, 153
Ground Grid: Off
Fog: Enabled, Start: 300, End: 1250, Max%: 100, Color: 153, 153, 153
Shadow Bias: 0.0010
Clip Planes: Z-Near: 50, Z-Far: 10000
Light:
Color: 255,255,255
Type: spot
Inner: Radius 500, Angle 30
Outer: Radius 5000, Angle 40
Casts Shadows, Percent Dark: 70, Ray Trace
"Jewel" material:
Ambient: 0.300 Color: 206, 6, 1
Diffuse: 0.300 Color: 206, 6, 1
Specular: 1.000 Color: 126, 12, 9
Emissive: 0.100 Color: 0, 0, 0
Rough: 5
Brilliance: 1
Transparency: 0.30
"Wall" material: none/default
The "Jewel" also has Smooth Angle: 20 (I've since changed it to 10, which has no effect on the shadows but makes it look more like a jewel.)
(http://i2.photobucket.com/albums/y48/_Apophis/raytrace6.jpg)
(http://i2.photobucket.com/albums/y48/_Apophis/raytrace7.jpg)
Edit: Here's are two more examples. They're the exact same settings as the two above, except that I turned on the ground grid. As you can see, the shadow is more complete, but there are still strange gaps. Why am I getting these gaps, and why is the ground affecting the shadows?
(http://i2.photobucket.com/albums/y48/_Apophis/raytrace5.jpg)
(http://i2.photobucket.com/albums/y48/_Apophis/raytrace8.jpg)
-
Oddly, moving everything higher on the y-axis changes which and how many sections of the shadow are missing. I don't get it, since the light, camera, and objects are in the same positions relative to one another and the light's cone doesn't intersect with the ground until well past the Wall. Also, the shadow problem doesn't occur with scanline, but I don't want to get it to work with ART so I can try to use the new ART classes for materials.
Edit: Rotating the jewel around the Z-axis in object mode also affects where the gap is in the shadow. Again, I get a complete shadow when using the Scanline renderer.
Also, it only happens when the light and objects are lined up one the same horizontal plane. Tilt the axis that runs through all three, and you get a complete shadow.
-
Strange. Can you send me the .an8 file? This looks like a bug and I'd like to fix it.
-
Okay. I sent you the link.
-
#097-016 - Ray traced shadows can have missing faces.
Yeah, it's fixed! I stumbled on the problem with your example. That's at least the third time I've tried to find the cause but now I'm pretty sure this is it. It was definitely a bug (I used the x coordinate for one part of a formula when I should have usedy.)
-
Glad to help. Incidentally, I've noticed the bug numbering system you use, and I was wondering if there is a current list available for viewing. The one on the v0.97 preview is for v0.96 and hasn't been updated in over a year (August 1, 2007).
-
Yeah, I should upload the new list, shouldn't I? I'll do it tonight when I get home.
-
Current bug list has been uploaded: http://www.anim8or.com/beta/v0.95_bugs.txt (http://www.anim8or.com/download/beta/v0.95_bugs.txt)