A new version of this scenario was uploaded on Sun Mar 10 01:01:33 UTC 2013
Now with source code! (Forgot to click the "Publish with source code" button earlier) It's got comments in if anyone wants to have a look.
A new version of this scenario was uploaded on Sun Mar 10 02:25:14 UTC 2013
Changed the example scene.
A new version of this scenario was uploaded on Sun Mar 10 02:25:30 UTC 2013
Changed the example scene.
'this uses a technique called "raycasting" (or "raytracing")' These are totally different things, raytracing is simulating rays going out of the camera and hitting things, being bent by glass, etc. Raycasting is also simulating rays, but they just stop when they hit something and the rays are casted in a 2 dimensional world.
I hope this made it a bit clearer.
And also, great work!
"Raycasting is also simulating rays, but they just stop when they hit something and the rays are casted in a 2 dimensional world."
Not correct; raycasting is usually used in a 3D world. Both ray tracing and ray casting map a view of a 3d world to a 2D surface (the screen).
@davmac Do you mean the same as I do?
http://qt-project.org/doc/qt-4.8/images/raycasting-demo.png is what I think of raycasting, where this is the map: http://sinepost.files.wordpress.com/2012/06/raycasting-map.png?w=540
Three tutorials:
http://www.permadi.com/tutorial/raycast/
http://lodev.org/cgtutor/raycasting.html
http://sinepost.wordpress.com/2012/06/16/raycasting/
Spower, the picture you have is a raycast projection of a 2D world, yes, but you can use raycasting for 3D worlds as well. The difference as I understand it is whether reflections and light sources are taken into account. See the wikipedia entry:
http://en.wikipedia.org/wiki/Raycasting
I could do, MatheMagician, but this is intended to be an example of the images that can be rendered with even simple "ray" + (new Random().nextBoolean() ? "tracing" : "casting"). And, as I attempted to explain in the description, this is never intended to be real-time. My internet had gone down and so I was bored. Hence I decided to spend a couple hours making this. I'll probably improve it at some point though..
2013/3/9
2013/3/9
2013/3/9
2013/3/11
2013/3/11
2013/3/11
2013/3/11
2013/3/11
2013/3/11
2013/3/11
2013/3/12
2013/3/12
2013/3/12
2013/3/12
2013/3/12