Frustum Culling Demo Uploaded
Ok, I've pretty much finished the programming for the Frustum Culling tutorial that I'll be submitting to NeHe's site (if he'll take it).
You can download an EXE for Windows from here:
www.webgadgets.com/LessonX.exe
It basically lets you walk around amongst a large number of spheres (200 by default, but you can add/subtract spheres on the fly). The current FPS, FOV, number of spheres, and the actual number of spheres rendered are displayed.
The more spheres you have, the greater the impact culling should have on FPS, but this will vary somewhat with your hardware. I'm using a PIII-600 with a TNT card.
Keyboard commands are:
'+' (on keypad) adds spheres (up to 1000 total)
'-' (on keypad) subtracts spheres
'w' Wide-angle (increases FOV)
't' Telephoto (decreases FOV)
'g' Toggles display of grid
'c' Turns frustum culling on/off
'u' Look up
'd' Look down
UP Move forward
DOWN Move Backward
LEFT Turn left
RIGHT Turn right
After I add a few things and finish commenting the code, I'll write up some text and make the whole thing available including source.
Please let me know what you think.
Toom
Edited by - toom on 12/7/00 7:56:18 PM
Edited by - Toom on 12/7/00 7:56:36 PM
Oh and just as a reference point, with all 1000 spheres enabled I get about 5 FPS without culling, and about 40 FPS with culling.
Toom
Toom
1000 spheres w/out culling: 5 FPS
1000 spheres with culling: 109 FPS
My system:
- PIII 500
- 128 MB
- GeForce2 MX
- Win98SE
Nice!
1000 spheres with culling: 109 FPS
My system:
- PIII 500
- 128 MB
- GeForce2 MX
- Win98SE
Nice!
Wow!
without culling 30fps
with 170fps
system:
PIII500
256mb RAM
Asus 7700 dlx gts (GeForce 2 Gts)
winme
Edited by - beyonddeath on December 8, 2000 7:44:34 AM
without culling 30fps
with 170fps
system:
PIII500
256mb RAM
Asus 7700 dlx gts (GeForce 2 Gts)
winme
Edited by - beyonddeath on December 8, 2000 7:44:34 AM
December 08, 2000 10:35 AM
nice work!!
1000 spheres:
with culling: about 50 fps
without culling: about 4 fps
my system:
Athlon 800
192 MB
Riva TNT 2 Ultra
Win 98
1000 spheres:
with culling: about 50 fps
without culling: about 4 fps
my system:
Athlon 800
192 MB
Riva TNT 2 Ultra
Win 98
nice work!!
1000 spheres:
with culling: about 50 fps
without culling: about 4 fps
my system:
Athlon 800
192 MB
Riva TNT 2 Ultra
Win 98
1000 spheres:
with culling: about 50 fps
without culling: about 4 fps
my system:
Athlon 800
192 MB
Riva TNT 2 Ultra
Win 98
December 08, 2000 11:57 AM
great job
i hope nehe will take it
PIII 500@700
128 MB RAM
GeForce DDR
Win2k
1000 spheres:
without culling 12 fps
with culling 200 fps
i hope nehe will take it
PIII 500@700
128 MB RAM
GeForce DDR
Win2k
1000 spheres:
without culling 12 fps
with culling 200 fps
I emailed Jeff yesterday and he seems enthusiastic about it. He''s sending me a copy of his HTML framework so I can save him some time. I''m not sure how long the HTML part will take, but I expect the tutorial will be on his site shortly.
The code itself is done and fully commented, although I''ll probably add some points and boxes in addition to the spheres, just to demonstrate all three types of frustum tests.
If the HTML work looks like it''ll take a while, I''ll try and post the whole thing on my own site some time today so you all can see the source.
Toom
The code itself is done and fully commented, although I''ll probably add some points and boxes in addition to the spheres, just to demonstrate all three types of frustum tests.
If the HTML work looks like it''ll take a while, I''ll try and post the whole thing on my own site some time today so you all can see the source.
Toom
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement