WingedOne
07-12-02, 06:22 AM
I was working on a ZScript Raytracer. This is only a preliminary experiment and as a result it runs butt-ugly slow right now. This image took about 2.5 hours to render for me. All it does is cast rays and perform a ray-sphere intersection test. The shadow and lights in this image have nothing to do with the raytracer, those were just the standard ZBrush lighting and shadows native to ZBrush.
In the future I hope to optimize the code using proper vector maths as well as add shadows, reflections and phong-highlighting as well as more primitives. Also I need to figure out what to do about the aliasing artifacts.
But the most interesting thing I hope to do is I also hope to extend this so the ray-tracing routines would be able to interact with pre-existing information on the canvas.
Keep in mind that this is just a preliminary experiment and its usefulness is just purely academic right now. :rolleyes:
RayTracer.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1026480115hzy.txt)
http://www2.zbrushcentral.com/zbc_uploads/user_image-1026480142hox.jpg
In the future I hope to optimize the code using proper vector maths as well as add shadows, reflections and phong-highlighting as well as more primitives. Also I need to figure out what to do about the aliasing artifacts.
But the most interesting thing I hope to do is I also hope to extend this so the ray-tracing routines would be able to interact with pre-existing information on the canvas.
Keep in mind that this is just a preliminary experiment and its usefulness is just purely academic right now. :rolleyes:
RayTracer.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1026480115hzy.txt)
http://www2.zbrushcentral.com/zbc_uploads/user_image-1026480142hox.jpg