a technique for generating an image by tracing the path of light through pixels in an image plane and simulating the effects of its encounters with virtual objects

learn more… | top users | synonyms

5
votes
1answer
2k views

Fast pixelshader 2D raytracing

I'd like to do a simple 2D shadow calculation algorithm by rendering my environment into a texture, and then use raytracing to determine what pixels of the texture are not visible to the point light (...
1
vote
1answer
131 views

Ray tracing - glossy reflection

Here I am again with my ray tracer for ipad. Now I'm trying to add glossy reflection to an object. How do i implement it? I read some documentation online like these: http://www.cs.cmu.edu/afs/cs/...
1
vote
2answers
105 views

Cursor position to a 3D ray using angles

I've been stuck for a month trying to get gluUnProject working. After my attempts to use gluUnProject failed (as well as attempts to implement gluUnProject functionality manually) I implemented method ...
2
votes
1answer
172 views

Ray tracing - draw polygon (square/bounded plane)

I'm going on with my own ray tracer as an iPad app for a school project. This is the result with soft shadow, antialiasing, pure reflective and pure transparent object: Now i want to change the ...
0
votes
1answer
139 views

Getting ray using gluUnProject or inverted MVP matrix

I've read a lot of topics here, on SO, opengl.org etc. Example how gluUnProject should work (from NeHe tutorial): winX = (float)x; winY = (float)viewport[3] - (float)y; glReadPixels( x, int(winY), 1, ...