|
From: Daniele C. <dca...@in...> - 2007-06-11 07:24:46
|
Great! It seem works very well. James Walker ha scritto: > James W. Walker wrote: > >> On Jun 6, 2007, at 9:04 AM, James W. Walker wrote: >> >> >>> On Jun 6, 2007, at 2:22 AM, Daniele Cavallini wrote: >>> >>> >>>> Do you think It will be possibile work with orthographic cameras into >>>> future? >>>> >>> I don't know how. The problem is that the shadow volume algorithm >>> involves rendering infinite points, which requires setting yon to >>> infinity. But there is no sensible way to set yon to infinity for an >>> orthographic camera. >>> >> I read something saying that if you have the GL_NV_depth_clamp >> extension, you can do it without an infinite yon. >> > > Daniele, you might want to try it with an orthographic camera. On the > 6th, I changed the shadow code so that it does not use infinite yon if > the camera is orthographic, and the code already uses GL_NV_depth_clamp > if that extension is available. > |