Hi everyone,
As part of my effort to learn as much as I can about 3d programming, I’ve set out to write my own raytracer. It’s written from C++, and I started from scratch (except for adding in lua so I can script scenes
)
The other day I started to add affine transformations to it, and began with scaling. Everything seemed to be going well, but I’ve struck a problem that’s totally stumped me.
Firstly, and image showing the problem can be seen here:
http://capbbeard.evadosoft.com/raytrace/raytrace.15.png
Notice the ‘arc’ like curve that sweeps around the bottom half of the object? It doesn’t really look like a bug but I’m pretty sure it shouldn’t be there. I just can’t work out what could be causing it.
It does not appear if I disable just reflections, and it does not appear if I disable just shadows. It’s not there if the object isn’t scaled.
The tell-tale sign to me, that it shouldn’t be there, is that it seems to maintain it’s illumination even at the bottom, where it should be in shadow.
I’m not really sure what other information to provide, I’m just wondering if anyone has any hints as to what it may be. I can provide more information about how my scaling works if need be… I’d post it now but unfortunately I’m not at home so I don’t have access to my source code.
Any help or pointers would be greatly appreciated!
Thanks!
But again, thanks for the response.