Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Frustum Culling Tutorial Available

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2000
    Location
    Victoria, BC, Canada
    Posts
    14

    Frustum Culling Tutorial Available

    If anyone is interested, I've written up a small tutorial on Frustum Culling with OpenGL. It provides code for extracting the current frustum planes and routines to test points, spheres, and cubes against the frustum.

    I think it's fairly easy to follow, and it even includes a demo (source and Windows EXE are included as well).

    You can access it here .

    Feedback would be appreciated, especially if you spot any mistakes.

    Toom


    [This message has been edited by Toom (edited 12-10-2000).]

  2. #2
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Frustum Culling Tutorial Available

    all i have to say is this is some nice ****.

    not that ur code is **** this is just the stuff i was looking for thanx for puting it up

    Zee
    Later

    Zee

  3. #3
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Frustum Culling Tutorial Available

    i didnt know about the stars

    they make it look worse than it is i love ur code
    Later

    Zee

  4. #4
    Guest

    Re: Frustum Culling Tutorial Available

    Hi toom,

    great sample code for those who want to make a 3D shooter. I'm an absolute newbie to OpenGL, but I'm quite fascinated of the possibilities and technics, which an 3D API like this offers. I think I will just stick around in your code for the next few hours, maybe I'll learn something.

    It would be very cool if someone would post the fps rate, which he/she gets, when running the frustum-demo of toom. Mine is very slow. When I stand very close before a sphere it's about 9 fps. When I have set the the amount of Boxes to about 200 it is a framerate of 17 fps...200 Spheres are 5 fps.

    If it's fullscreen? Why so slow, is my voodoo2 not working? Or are these magic framerates I see in all the games a result of the glide-API supplied by a 3DFX Chip?

  5. #5
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Frustum Culling Tutorial Available

    ive been getting between 70 to 85 fps with 1000 cubes on the screen and when culling is on and between 15 to 20 with it off.

    with 1000 spheres im getting 2 fps with culling off and about 10 fps with it on
    Later

    Zee

  6. #6
    Guest

    Re: Frustum Culling Tutorial Available

    Hi ZeeBoy,

    umm, that sucks...What is your actual Graphic Card?

    So, I think OpenGL is only rendering in Software modus on my PC. Is the v2 not supported?

    daniel

  7. #7
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Frustum Culling Tutorial Available

    Hi Afxtwins,

    I have a voodoo3 2000 pci. So yes 3dfx card r supported by OpenGL the prob may be ur drivers. I suggest downloading glsetup to update the drivers on ur machine

    alternatuivly if u r using win2k go to www.3dfx.com and download the latest win2k drivers. glsetup dosnt work with win2k.

    Hope u get it sorted

    Zee
    Later

    Zee

  8. #8
    Guest

    Re: Frustum Culling Tutorial Available

    Originally posted by ZeeBoy:
    Hi Afxtwins,
    <snip>
    alternatuivly if u r using win2k go to www.3dfx.com and download the latest win2k drivers. glsetup dosnt work with win2k.
    Zee
    I just wanted to throw a quick word of caution in here for some other Win2000/3dfx/GL developers that might be following the discussion. At least in the case of the Banshee (and maybe the V3? not sure), it seems that 3dFX has not yet released an OpenGL "ICD" driver for Windows 2000. The beta driver on their site for windows 2000 only includes their "MCD", which is a "mini-GL" that only implements enough of OpenGL to be able to run Quake3 (ie. the mcd only implements the opengl calls that john carmack actually USED in the Quake3 engine). For most people doing basic GL things (like me, For Now) this won't be a problem, but it could spell trouble for anyone who wants to venture beyond the functionality of what is used by Quake Also, in light of the recent NVidia purchase of 3dFX (and as a result the dissolution of the company-- check their site for the news!), there may never be proper drivers available. That kinda sucks. I guess it's time to rush out and buy an NVidia card
    --
    Maciek/__Maad__

  9. #9
    Guest

    Re: Frustum Culling Tutorial Available

    Hi Maciek,

    what's an ICD, if I'm granted to ask?

    http://members.home.com/borealis/opengl.html

    On this site, which is from a guy called Ryan Haksi, you can get information for 3DFX support in your OpenGL applications. I've compiled the demo Application(2 rotating Cubes, one with coloring , one textures), and it looks really great, and it runs very smooth on my V2.

  10. #10
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    USA
    Posts
    302

    Re: Frustum Culling Tutorial Available

    It seems that I can only get about 20 - 30 fps with a mere 200 spheres while using culling on my K62-400 w/TNT2 M64. That's even when only actually rendering a handful of spheres. To me, that seems awefully slow considering what's being done. Although some things I've written don't go all that much faster... I wonder how professional developers manage to get those blazing framerates while including AI, networking, shadows, reflections, etc.?

Page 1 of 2 12 LastLast

Similar Threads

  1. Frustum Culling
    By Imaging in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-28-2006, 10:00 AM
  2. Frustum culling??
    By sirSolarius in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-18-2004, 08:21 PM
  3. Frustum Culling la HoD
    By HamsterofDeath in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 01-27-2003, 01:09 PM
  4. Frustum Culling help
    By jono_123 in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-17-2003, 02:40 AM
  5. Frustum Culling Tutorial Available
    By Toom in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 12-11-2000, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean