View previous topic :: View next topic |
Author |
Message |
Josh Guest
|
Posted: Tue Feb 15, 2005 3:13 am Post subject: Dark basic |
|
|
Hey, I'm using dark basic to build a 3d game but whenever I try to load a 3d object I made in DeleD it loads it without the materials on it or anything. How can I fix this? |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Feb 15, 2005 7:10 am Post subject: |
|
|
Hi Josh,
You are not the first user to encounter this problem. The thing is, Darkbasic (non-pro version) does NOT support the JPG fileformat, hence the textures not showing up. For the record: we didn't know this until people started to complain about this very problem
Long-term solution: DeleD will (in the future) support a convenient 'convert all textures to BMP' option.
Hotfix to your problem: convert the jpg's to .bmp with your favourite image editor. You can either do this before using them in DeleD, or after exporting the file to .X. If you choose the latter option, make sure to modify the references in the .X file as well (using notepad or some other text file editor). |
|
Back to top |
|
|
dj blackdragon Guest
|
Posted: Fri Feb 18, 2005 10:37 pm Post subject: |
|
|
Thats not entirely true. If you are using classic or enhanced you could use the load image command which would look like this
load image "filename.jpg",1
That is the only way to load them as far as I know. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Fri Feb 18, 2005 11:19 pm Post subject: |
|
|
Hmm, mixed signals here. We've seen troubles with loading DeleD files containing materials that had JPG's stored in them. As far as we know, Darkbasic Classic doesn't support JPG files. Yet you say it does? Can you or someone else verify this? |
|
Back to top |
|
|
Jobyman Member
Joined: 21 Oct 2004 Posts: 42
|
Posted: Fri Feb 18, 2005 11:35 pm Post subject: |
|
|
Well, you can use jpgs by loading them into db and applying them to an exisiting object:
Code: |
Load object "man.x",1
Load image "man.jpg",1
Texture object 1,1
|
This will only work if you have patched your darbasic to the latest version(1.13) from the website, the older version only supported bmp files
but if you made an object and textured it in deled and exported into .x then the images will need to be .bmp
what i do is use a converter. There is a program called "3D Exploration" or "Deep exploration", same program, they just changed the name. you load your object from deled and just go, file=>save as and mak sure that the "save all textures as:" is set to BMP and thats it |
|
Back to top |
|
|
|