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 / Is it possible to prevent DB pro automatic load textures when load .dbo or .x object?

Author
Message
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 27th Jan 2012 10:17
Hi!is it possible to prevent DB pro automatic load textures when load .dbo or .x object? i keep textures and models in one directory but i want to load and assign textures by myself. Thanks
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 27th Jan 2012 10:36
Well, don't assign them to the models in your 3d editor...

-Mental Hybrid: A unique heavy story based shoot'em ~40% (primary project)
-CoreFleet: An underground commander unit based RTS (canned) ~15%
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 27th Jan 2012 10:38
Any other way to do it?
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 27th Jan 2012 11:12
You could put the models and textures into separate folders.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Jan 2012 12:07
As far as I know .dbo stores the textures within the file... but .x you should have seperate files and the load object statement should have flag arameters... look at the command closely with F1

you then use LOAD TEXTURE to load the texture... again check the texture flags...

Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 27th Jan 2012 12:39
yes x and dbo files have info about assigned textures.i search help files for db pro and find nothing about my problem.Also when dbpro automatic load texture for model it loads it not as load image command with number 1-65000 it loads it with number -1,-2 and so on.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Jan 2012 12:47
I think you ignored my post ... when I load a .x it shows up all black... If this is not what you want... please make clear your issue... from what I see your talking about something different than just loading a texture...

revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 27th Jan 2012 15:22
He is talking about the fact that when you load a model, DBPro automatically: looks for, loads, then applies the textures which are referenced within the file. He is looking for a method of bypassing that feature.

Quote: "As far as I know .dbo stores the textures within the file"
Nope, .DBO's still use external texture files just as .X files do.

Quote: "load object statement should have flag arameters"
The only texture-related parameter which load object accepts is to lower the quality of auto-loaded textures.
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 27th Jan 2012 15:36
The only other way for removing the textures from a loaded dbo or x file is to re-texture the object using a NULL texture, ie TEXTURE OBJECT ObjID, 0

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Jan 2012 17:32
Yes, but I guess the point is that you don't want to waste loading time, and perhaps memory, by loading unwanted images behind the scenes.

Quote: "Also when dbpro automatic load texture for model it loads it not as load image command with number 1-65000 it loads it with number -1,-2 and so on."


Interesting. Does that mean you can access them in the usual way?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Jan 2012 22:48
No, you can't access image ids with negative numbers.

Also, DBPro automatically dedupes the images it loads for objects - if the image has already been loaded with a negative image id, it won't be loaded a second time when loading another object.

Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 28th Jan 2012 10:01
So I get that the only way is keep model and texture files separately.
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 28th Jan 2012 10:53
Quote: "So I get that the only way is keep model and texture files separately."


I see at least 3 workable solutions in the post above? Here's a recap

1) Remove textures manually in a 3D Editor

2) Store textures at a different path to what the model expects

3) Re-texture the object after it has loaded with a null or blank texture.

Login to post a reply

Server time is: 2026-07-10 10:21:05
Your offset time is: 2026-07-10 10:21:05