Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Texture formats allowed by LOAD OBJECT when loading .X

Author
Message
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 2nd Oct 2003 08:39
Which types of images can be used referenced in a .X file? It seems that JPG works now in recent versions of DBPro, but I'm almost positive that only BMP worked before...

AMD900/256MB/Radeon 8500 64MB/Win98SE/DX9.0b
P3-850/384MB/GeForce2 Go 16MB/WinXP Pro/DX9.0b
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 2nd Oct 2003 13:00
Jpg's work now?

EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 3rd Oct 2003 08:49
Yep... they seem to work now.

AMD900/256MB/Radeon 8500 64MB/Win98SE/DX9.0b
P3-850/384MB/GeForce2 Go 16MB/WinXP Pro/DX9.0b
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 9th Oct 2003 01:16
Evedentally, according to the DX9 SDK docs, D3DXCreateTextureFromFile and D3DXCreateTextureFromFileEx (which is likely what DBPro uses) can read .bmp, .dib, .dds, .jpg, .png and .tga.

According to the DX7 docs (can't find my DX8 docs at the moment) those functions can only load .bmp, .dib and .tga.

Nice!

I'll have to look in the DX8 SDK docs to verify that the list of supported formats really did change between DX8 and DX9. This is a great "new" feature that will save people a LOT of time futzing around with converting texture files and possibly hand-editing their .X files!

It should be documented in the appropriate places in the DBPro help system!

Desktop: AMD900/256MB/Radeon 8500 64MB/Win98SE/DX9.0b/Catalyst 3.7
Laptop: P3-850/384MB/GeForce2 Go 16MB/WinXP Pro/DX9.0b/Detonator 45.23
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Oct 2003 01:39
I've always used jpgs, even with DB Classic and DB Pro demo from about 6 months ago.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 9th Oct 2003 01:43
Hmmmm... anyone remember JPGs not working in their .X files?

Desktop: AMD900/256MB/Radeon 8500 64MB/Win98SE/DX9.0b/Catalyst 3.7
Laptop: P3-850/384MB/GeForce2 Go 16MB/WinXP Pro/DX9.0b/Detonator 45.23
ESC_
22
Years of Service
User Offline
Joined: 29th Aug 2003
Location: Mass.
Posted: 9th Oct 2003 04:23
In DBC I recalled them not working correctly

"That's not a bug, it's a feature!"
"Variables won't, constants aren't."

Login to post a reply

Server time is: 2026-07-26 05:02:19
Your offset time is: 2026-07-26 05:02:19