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 / X object loads without textures

Author
Message
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 18th Nov 2003 18:41
I made the object in cart shop then exported it in X format to my working directory. The texturemaps exported with it and all files are in teh same directory. However, when loaded into the program the object has no textures and is blank white. Ive tried several other commands that may turn on or off texture mapping? but nothing seems to activate the texture maps. I checked the Xfile itself and it indicates the texturemaps by name. So why doesnt it load the maps??
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 18th Nov 2003 18:49
have you tried texture object?
texture object object,image


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 18th Nov 2003 18:56
No,..but doesnt dbpro automatically load the textures specified in the x file and then map them? or do I have to load them as image files and then map them? Ive done this before, simply loading the object and then the textures are auto mapped onto it. But maybe cart shop saves them differently,..Ill try a different model and see.
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 18th Nov 2003 19:13
Never assume anything hehe,...ok looks like CShop doesnt save the tmaps in uv relative format. DBPro will load the texture if it has been saved in the uv mapped format, otherwise you have to load the texture as an image and then use the dbpro mapping commands to tile the object.
Any software out there that will load an X then auto rip the surface into a bmp file format image?? I can do it with 3dcanvas but seems time consuming and should be able to be done automatically.
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 19th Nov 2003 04:16
Well that sounds cheesy. If the files are plain text X (ascii), open them up with notepad and see if there is a path problem. I've known some programs to write full paths in the .X file instead of just the filename. So, when you relocate the file, the texture get 'broken'.

Quick tip: search for " and it should take you straight to any filenames.
--
TAZ
richardneail
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Nov 2003 15:01
as far as I know DB and DBP only load the textures onto the model if the textures are in the same directory as the one you are loading the model from.

Rich

You might never win but if you give in will you ever know ??????
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 22nd Nov 2003 03:49
kk ill give the check texture path a try. since my last post this is what ive tried.

Make object in CShop,...texture it,..save it into my working directory. Object and texture maps are there. Load into DBPro,..get object with no textures.
Load Dark Matter created object into DBPro and object load with textures no problem. Dark Matter objects use the uvmapped texture map .bmp or .dds file for their textures. That seems to work for DBPro, so I have now tried to make my own uvmapped texture files by uvripping the object, the painting the uv file in paint program,..but the X object doesnt seem to recognize this file and still loads into dbpro without a texture. Maybe it did?? is there a Turn Texturemap ON command??

Another weird occurence. Load Dark Matter object into Unwrap3d, then resave it. Object loads into DBPro no problem. Make object in Cartshop, texture it, then export as a .X file. Now load that into unwrap3d and resave as X file. X file loads into dbpro like a mess of randomized polygons. So take that file and load it into 3dcanvas,..loads in fine,..resave it in X format from 3dcanvas,..load that into DBPro and object loads fine,..without textures. Yes im missing something here,..anyone got an unscrambler for me??
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 22nd Nov 2003 05:50
CShop exports the textures and the .X file all into the same folder and references the texture files by name in the .X file. The easiest way to use the .X file is to either:
1) Use:

load object "c:/full/path/to/object.x",1

in your program or...

2) copy ALL the texture files and .X file to your DBPro project directory and use:

load object "object.x",1

Either way should work.

I export most of my objects from gameSpace to D:\gsProjects\somename.x, so in DBPro I do:

load object "d:/gsProjects/somename.x",1

and all the textures get loaded fine with DBP U5.1b.

Desktop: AMD900/256MB/Radeon 8500 64MB/Win98SE/DX9.0b/Catalyst 3.9
Laptop: P3-850/384MB/GeForce2 Go 16MB/WinXP Pro/DX9.0b/Detonator 45.23
DBPro with patch 5.1b

Login to post a reply

Server time is: 2026-07-26 15:31:19
Your offset time is: 2026-07-26 15:31:19