• Welcome to Dark Bit Factory & Gravity.
 

AHX player

Started by bbear, December 12, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Jim

Nice little demo...thanks for the name drop :)

I'm not sure about old 3dfx cards - they used to have a special OpenGL driver (as opengl32.dll) which didn't really support everything - so if you're using glPoint or something like that it might be really slow.  It's quite possible that both are rendering in software...

How are you syncing to 60Hz?  Using wglSwapIntervalEXT() is a good way to sync to the vblank, but if you run at < 60fps everything will look slow and/or jerky.  Either that or you can use the timer (Sleep, timeGetTime, QueryPerformanceCounter) but you have to be careful then about precision.

Jim
Challenge Trophies Won:

bbear

for opengl intro, I used SetTimer(hwnd,1,1000/60,null), case wm_timer:...
for tinyptc intro, it's in the main loop with timeGetTime

but for my friend, he have a S3Trio graphic card, so...

Jim

Try adding
timeBeginPeriod(1)
right at the start, and
timeEndPeriod(1)
right at the end of your program.
That should give the timers a bit more accuracy.  Right now they'll be all over the place.

I don't think that will fix the S3Trio problem though - old card that...

Jim
Challenge Trophies Won:

ufo

Hi,
does somebody have working links for the player (AYS-AHX-Sources.zip)?
I'm currently looking for the smartest static library to play ahx stuff.
I saw this one, too: http://www.dbfinteractive.com/forum/index.php/topic,3876.0.html
But it starts up after a huuuge delay of time only (several secs).
cheers

Raizor

Quote from: ufo on July 19, 2012
Hi,
does somebody have working links for the player (AYS-AHX-Sources.zip)?
I'm currently looking for the smartest static library to play ahx stuff.
I saw this one, too: http://www.dbfinteractive.com/forum/index.php/topic,3876.0.html
But it starts up after a huuuge delay of time only (several secs).
cheers

Here you go ufo. Welcome to DBF too btw :)
raizor

Challenge Trophies Won:

ufo

Whoop.. big thx for the prompt reply!!
But aww.. no compiled ready to use static lib in there :|
Let's see if I can build something usable for the folks with it.
Will report back..

ufo

OK, if anybody ever needs to play AHX in C or ASM via a static
lib (~10kb when packed), then check out the attachment.

cheers

Raizor

Nice one ufo, K++ :)
raizor

Challenge Trophies Won:

CaptainHug

just out of interest, does anyone still have a copy of va!ns AHX collection that he posted a lot earlier in this thread? the original URL was http://www.secretly.de/public/va!ns_AHX_Collection.zip but it seems to be no longer alive :(

Raizor

Quote from: CaptainHug on September 05, 2012
just out of interest, does anyone still have a copy of va!ns AHX collection that he posted a lot earlier in this thread? the original URL was http://www.secretly.de/public/va!ns_AHX_Collection.zip but it seems to be no longer alive :(

Afraid I don't have a copy. I've attached a bunch of AHX tunes to this post though, that I had hanging around from an old AHX player I wrote for the PS2 about 10 years ago.
raizor

Challenge Trophies Won:

CaptainHug

Thanks very much Raizor - this is lovely stuff, and very kind of you to share :-)

Raizor

You're most welcome :)

There are some more here too http://www.mmnt.net/db/0/0/ftp.rave.ca/pub/favourites/AHX/.

And a ton on this FTP.
raizor

Challenge Trophies Won: