1. Fast gouraud/texture polygon fillers
- Posted by stab master <stabmaster_ at HOTMAIL.COM> Nov 06, 1999
- 488 views
I got kinda inspired by looking at the picasso and vgraph demos, and so I thought: "maybe I should write some polygon fillers too..". Wich I did. So, after two days of coding and many, many CauseWay errors, I'd like to present my contribution to Euphoria's polygon-filling world. It's only two routines, one for gouraud-shaded polygons and one for texture-mapped polygons (where polygons=quadangles). The routines use machine-code for the drawing stuff and are therefor pretty fast. They are also released as public domain so anyone can use them for whatever type of application, just don't blame me if something foes wrong (wich wouldn't be the routines' fault anyway...). I'll send the package to RDS, in the meantime you can get it at: http://home.swipnet.se/progzone/goutex.zip Some maybe-not-so-relevant figures: Gouraud shaded polygons/second: 970 Texture-mapped polygons/second: 584 These are the results I got on my P2-450. The size of the polygons was totally random (anywhere between 2*2 and 318*198). 8000 polygons where drawn for each test. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
2. Re: Fast gouraud/texture polygon fillers
- Posted by M King <boot_me at GEOCITIES.COM> Nov 06, 1999
- 499 views
Mic, I got 66 and 65 fps on your two tests, stopped at random points in the running of the program. Machine same as before when I emailed Jiri... k-6 200 running waterfall pro 2.99 (cpu cooler) 32 megs 10ns sdram dma mode2 hd IDE (samsung 2.5gig) savage s-4 32 meg graphics accellerator running in AGP mode 1 Monty
3. Re: Fast gouraud/texture polygon fillers
- Posted by Greg Phillips <i.shoot at REDNECKS.COM> Nov 06, 1999
- 477 views
I got almost exactly the same frame rates. Odd, my machine is quite a bit more powerful: Intel Celeron 400a, running at 502mHz 64mb ram 10gig IDE hd Trident 4mb graphics accelerator, also mode 1 AGP Must have something to do with your graphics card...I'm looking for a new one, how much was it? Interestingly enough, I still get a good 40fps on my old p120, with a generic 2mb video card. Greg Phillips M King wrote: > Mic, > I got 66 and 65 fps on your two tests, stopped at random points in the > running of the program. > > Machine same as before when I emailed Jiri... > > k-6 200 running waterfall pro 2.99 (cpu cooler) > 32 megs 10ns sdram > dma mode2 hd IDE (samsung 2.5gig) > savage s-4 32 meg graphics accellerator running in AGP mode 1 > Monty
4. Re: Fast gouraud/texture polygon fillers
- Posted by Bernie Ryan <bwryan at PCOM.NET> Nov 07, 1999
- 473 views
69 and 70 on a home built 686-233 with 32megs and virge s3 video card. Bernie
5. Re: Fast gouraud/texture polygon fillers
- Posted by M King <boot_me at GEOCITIES.COM> Nov 07, 1999
- 528 views
>I got almost exactly the same frame rates. > > >Must have something to do with your graphics card...I'm looking for a new one, >how much was it? > $99.00 at Fry's Electonics, although there is a new version out, the Stealth S-540 III extreme (this one is minus the "extreme" add in name) that is clocked up a bit faster, and has slightly better performance. This card is not in the TNT Ultra class, but it is at the bottom of the new generation of AGP 4x capable cards. It has really helped my old system, I can play quake 2 at 1024 x 768 at a very nice frame rate under OpenGl. Diamond has good OGL drivers also. the card can probably be had cheaper, but with 32 megs of sdram on board, it really has speeded things up for not a lot. (has some sort of new compression built into the hardware for textures as well, that a lot of other cards don't even have yet although it is going to be used by everyone. It is already in Direct X)...nice card for the buck ...should be less than $99 if you look around) Also I am thinking of a new GeForce 256 card, so maybe you are interested in buying this one? Might be able to work a deal, although not for a while yet (can't afford the GeForce yet) Monty
6. Re: Fast gouraud/texture polygon fillers
- Posted by stab master <stabmaster_ at HOTMAIL.COM> Nov 07, 1999
- 487 views
- Last edited Nov 08, 1999
The cubes does stop at times. This is not because of speed-problems but because of the delta-angle randomization (delta-angle sometimes becomes zero for all three axes => the object doesn't move). I've sent some a new version to RDS this morning (november 8th) with some new routines and HUGE speed-ups. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
7. Re: Fast gouraud/texture polygon fillers
- Posted by stab master <stabmaster_ at HOTMAIL.COM> Nov 07, 1999
- 508 views
- Last edited Nov 08, 1999
>From: Greg Phillips <i.shoot at REDNECKS.COM> >Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >To: EUPHORIA at LISTSERV.MUOHIO.EDU >Subject: Re: Fast gouraud/texture polygon fillers >Date: Sat, 6 Nov 1999 18:40:59 -0800 > >I got almost exactly the same frame rates. > >Odd, my machine is quite a bit more powerful: >Intel Celeron 400a, running at 502mHz >64mb ram >10gig IDE hd >Trident 4mb graphics accelerator, also mode 1 AGP > Actually it's not odd at all. The programs uses a routine in STUFF.E called wait_vrt() wich waits for a vetical retrace before updating the contents of the screen (this would set the maximum framerate to 70 on any computer, unless your monitor supports a higher framerate ofcourse...). ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com