POV-Ray : Newsgroups : povray.off-topic : RK4 is harder than it seems : Re: RK4 is harder than it seems Server Time
7 Sep 2024 11:25:48 EDT (-0400)
  Re: RK4 is harder than it seems  
From: Invisible
Date: 4 Aug 2008 04:06:01
Message: <4896b869@news.povray.org>
>> How is it possible to do that?
> 
>> (I'm not denying that games do it - they obviously do - I'm curios as to 
>> how it's possible to do this given that the GPU only knows about 
>> polygons and texture mapping.)
> 
>   The GPU also knows about vertex normals and can interpolate them and
> calculate the lighting of the surface according to the normal. In a similar
> way as POV-Ray does.
> 
>   Nowadays you can even write a shader which calculates the lighting from
> the normal vector and positions of light sources in special ways, if you
> want.

I was more puzzled as to how you compute shadows.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.