Qbasicnews.com
I Need Raycasting Help! - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Projects (http://qbasicnews.com/newforum/forum-12.html)
+--- Thread: I Need Raycasting Help! (/thread-802.html)

Pages: 1 2 3


I Need Raycasting Help! - TechFalcon - 05-09-2003

Okay, here's what i'm doing. I want to create a homebrew virtual reality system, but I need an engine/library, which I plan to write myself. But what I need is help on how to do raytracing in qb. Anybody got anything good?
Thanks


I Need Raycasting Help! - toonski84 - 05-09-2003

wait... raycasting or raytracing? you gots me confused here...


I Need Raycasting Help! - Ninkazu - 05-10-2003

raytracing usually isn't realtime, so unless you're really really good at optimization, he probably means raycasting.


I Need Raycasting Help! - wizardlife - 05-10-2003

raycasting = wolfenstein, right?


I Need Raycasting Help! - Ninkazu - 05-10-2003

yes


I Need Raycasting Help! - wizardlife - 05-10-2003

Quote:yes

Right... so basically you take the field of view, divide that by the number of pixels across the top of the view, trace lines out from the view for each pixel, and then draw a vertical line based on the distance travelled by the line to hit something... right?


I Need Raycasting Help! - TechFalcon - 05-10-2003

Yes, as far as I know, thats how it works (sorry, toonski, I meant raycasting). I've experimented with it a little, but what I'm wanting to do is build something like the JNK raycaster by Joe King. I don't get how he created the little wave tings and all that other cool 3d stuff.


A very useful link is : - Jark - 05-11-2003

http://fuzzyphoton.tripod.com/index.htm

It's the most comprehensive site about raycasting and raytracing, that gives excellent information about all that stuff.

You can also have a look at :

http://www.daniel-davies.pwp.blueyonder.co.uk/

that provides really interesting QB progs around 3D effects, to include raytracing and raycasting.


I Need Raycasting Help! - TechFalcon - 05-12-2003

Hey, Jark, thanks for those cool sites, which brought up another concept to me. Would it be possible to make a real-time raytracer at an extremely low resolution in qb? The vr helmet I'm looking at using has a resolution of approx. 280x80 (it's a Victormaxx Stuntmaster).


Of course not. - Agamemnus - 05-12-2003

Out of the question.

:rotfl:

J/K. Yes. But you need libs/asm Power.