View previous topic :: View next topic |
Author |
Message |
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Mon Mar 28, 2005 3:58 pm Post subject: Loading a .dmf into DarkBasic |
|
|
I was wondering how to load DeleD's native .dmf file into DB. Any help is much appreciated. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Mar 28, 2005 4:02 pm Post subject: |
|
|
If you want to use .dmf, you'll have to write your own parser in DB. If that's not an option, you can always export to X and use those X files in DB instead. But, .dmf holds more information than X so writing your own parser is almost always worth your while. |
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Mon Mar 28, 2005 4:04 pm Post subject: |
|
|
I tried exporting to a .x but when I loaded into my collision code, it said could not load file at line... |
|
Back to top |
|
|
Chris Member
Joined: 08 Aug 2004 Posts: 161 Location: UK
|
Posted: Mon Mar 28, 2005 4:08 pm Post subject: |
|
|
The trouble with the .x file could be in the materials, make sure there are no spaces in the texture names, DB doesn't like this. |
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Mon Mar 28, 2005 4:17 pm Post subject: |
|
|
Thank you so much!! It ended up being the materials. It was the floor texture that it didn't like. Thank you again. |
|
Back to top |
|
|
Chris Member
Joined: 08 Aug 2004 Posts: 161 Location: UK
|
Posted: Mon Mar 28, 2005 4:19 pm Post subject: |
|
|
Thats ok, had the same problem myself a few months ago. Took me hours of testing before I realised what it was. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Mar 28, 2005 5:06 pm Post subject: |
|
|
Space should be banned!
|
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Tue Mar 29, 2005 11:41 pm Post subject: |
|
|
Ok, now that that question is out of the way, I have one more. Is there any way to make an object look like glass? |
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Wed Mar 30, 2005 7:14 pm Post subject: |
|
|
Any body have any ideas how to do the above? |
|
Back to top |
|
|
Chris Member
Joined: 08 Aug 2004 Posts: 161 Location: UK
|
Posted: Thu Mar 31, 2005 4:34 pm Post subject: |
|
|
The way me and Khris did it was to do all glass as a seperate object, then load both objects and trun on alpha blending for the glass object. |
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Thu Mar 31, 2005 7:07 pm Post subject: |
|
|
Ok, i'll just code it in instead. Now for my next question: How would you export lightmaps in .x, or would I stil have to make a parser to load the .dmf into DB? |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Thu Mar 31, 2005 7:23 pm Post subject: |
|
|
djblackdragon wrote: |
Ok, i'll just code it in instead. Now for my next question: How would you export lightmaps in .x, or would I stil have to make a parser to load the .dmf into DB? |
Lightmaps require multiple sets of UV coordinates per polygon which is something X does not support. DMF does, so writing your own parser would be worth your while. It also shouldn't be very hard because of its simplicity + you've got a detailed description in the Help file and all the Help you need on this forum. |
|
Back to top |
|
|
djblackdragon Member
Joined: 24 Mar 2005 Posts: 31
|
Posted: Thu Mar 31, 2005 7:56 pm Post subject: |
|
|
Ok, thats what I thought. I'll get to work. |
|
Back to top |
|
|
|