Skip to main content
GameDev.net gamedev.net
🔒 Locked

ray tracing without rays

Started by ironfroggy May 24, 2003 at 8:05 PM 4 replies 550+ views
Original Post
ironfroggy
ironfroggy
can ray tracers trace other shapes? like cones (representing a collection of rays from a single point) or fans (ditto) ?
(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)
Ready4Dis
Ready4Dis
Umm... yes. Raytracing means following a ray from a point and checking what it collides with. The object itself can be anything that you can come up with a formula for. Cone, torus, triangle, plane, cube, bezier patch, etc, etc, etc.
ironfroggy
ironfroggy
well duh.

i mean testing the visable shapes against things other than a ray. like tracing a cone to see if it collides with a box.
(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)
Tron3k
Tron3k
Well, yes, I suppose you could. However, it serves no purpose and is more complex mathematically.
“[The clergy] believe that any portion of power confided to me, will be exerted in opposition to their schemes. And they believe rightly: for I have sworn upon the altar of God, eternal hostility against every form of tyranny over the mind of man” - Thomas Jefferson
ironfroggy
ironfroggy
serves much purpose. if a the rays fan out over a 35 degree angle, then its much faster to test a cone than all the different rays.
(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)
TerranFury
TerranFury
You mean, using a cone / object intersection test for fustrum culling? That makes a lot of sense; it''s fairly commonly done. Still, you need some per-pixel test (usually rays) to actually draw the thing.

I say "usually rays" because "raytracing" has been modified to use a volume for each pixel; replacing point samples with areas, eliminating the need for antialiasing. But I have a feeling that''s not what you were talking about.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.