coordinating raytracing with rasterizer back

Board: Board index Raytracing General Development

(L) [2014/02/10] [tby AlbusDumbledore] [coordinating raytracing with rasterizer] Wayback!

sorry for weak english
i am only doing basic raytracing and not for a long time
I had idea of combining raytracing with rasterization (for obwious benefits) but there is a simple basic stuff i am not sure with, so maybe some will help me
I do raytracing by sending some simple rays (I assume my screen is 38 cm wide, 30 tall, and i am siting 100 cm far) so it makes (for a left top pixel) a ray of origin (-19, -15, +100) [and direction of (-19, -15, +100)/lengthof(-19, -15, +100)]
when rasterizing i need to project figures, i thing for vertices some simple calculation taken from linear proportion ( which consider this number I gave (it is 38 cm width, 30 cm heigth, and 100 cm far)) should be probably ok, but what with edges of mentioned figures - can i just join them by lines in 2d ? (i suppose it will not be precise) doesnt they are distorted when cerfully rendered by raytracer? Also
with depth values (are they perfectly linear between vertices so i need only project the vertices or no)?
I suposse the answer is no (I was not doing triangles yet in my present version of raytracer but i see on the spheres that spheres are not always perfectly round when raytraced)
so what approach tu use to rasterize triangles ans balls with perfect coordination
with my raytracer-produced results? thanx for explanation
(L) [2014/02/11] [tby AlbusDumbledore] [coordinating raytracing with rasterizer] Wayback!

someone on different forum suggest that balls come into ellipses but triangle edges will stay linear, though depth z will not be linear, he belives that 1/z will be linear on triangle but is not sure... could someone here help with that?

back