tomwindcloud
unread,Nov 16, 2009, 10:29:43 PM11/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pbrt
First , if Matt or Greg are reading: thanks for your great work
(book, codes)!
In 2.0, GenerateRay is replaced by GenerateRayDifferential,
rxOrigin, ryOrigin, rxDirection and ryDirection substitute rx, ry.
But i think the result maybe is inaccurate.
For example, ray->rxDirection = Normalize(Vector(Pcamera) +
dxCamera).
dxCamera is get by :
dxCamera = RasterToCamera(Point(1,0,0)) - RasterToCamera(Point
(0,0,0));
but dxCamera1 = RasterToCamera(Point(151,0,0)) - RasterToCamera
(Point(150,0,0)); dxCamera can't always equal dxCamera1.So, maybe it
is inaccurate??
ps: ha, i see. I test the result in my project, given film(xres:300,
yres:300, znear:1e-2f), dxCamera.x = 2.7614180e-005, dxCamera1.x =
2.7614238e-005. The error is too small, so GenerateRayDifferential can
get right result. Anyway, i thanks Matt and Greg again, your work is
great!