4-day Multi-threaded Interactive Ray Tracer

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Shadow007
Gremlin
Posts: 185
Joined: Sat May 07, 2005 3:27 pm

Post by Shadow007 »

Yes, I didn't get the point... but the same is true for a rasterizer, isn't it ?
User avatar
madmarx
OGRE Expert User
OGRE Expert User
Posts: 1671
Joined: Mon Jan 21, 2008 10:26 pm
x 51

Post by madmarx »

But the ray tracer can also use non triangles, like true mathematical solid objects (a rasteriser could too, but current gpus can't).""
Gpu can't, but FPGA can! :D
I think there must be some demos outthere.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Post by Kojack »

There's the Saarcor RPU. It's an FPGA which does hardware raytracing.
:)

Using Cuda you can do non triangle stuff on a gpu, but for typical use modern gpus are pretty much triangle based. Shaders can render other shapes, but there's still a triangle there somewhere (even if it's a full screen quad). For example, I wrote a shader which used the sphere equation to render the earth, with different day/night textures (to get city lights) and a rotating cloud layer, but the whole thing was just 2 triangles.

Of course older gpus did things in different ways. The PowerVR could only render csg combinations of infinite planes (with per pixel depth sorting of all intersecting planes for perfect transparency). The Nvidia nv1 chip worked with quadratic texture maps instead of triangles.
Post Reply