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 Discussion / Dark Basic is not loading .x files

Author
Message
pr0fess0r cha0s
16
Years of Service
User Offline
Joined: 6th Oct 2008
Location:
Posted: 6th Oct 2008 23:36
I am modelling in blender, and then exporting the files to .x direct x files. db will only show the white model on a blue background, it will not show animation, texture, ect, and any attempt to do so either causes it to crash, or just sort of stop or give me a message. I have tried everything that I can possibly think of. Could it be graphics card, directx version, doesany1 have any ideas?
pr0fess0r cha0s
16
Years of Service
User Offline
Joined: 6th Oct 2008
Location:
Posted: 7th Oct 2008 02:02
does anyone know ?????????
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 7th Oct 2008 03:01
I know that Darkbasic doesn't support skeletal animations. Also, you have to load the images in order for it to texture it, as far as I know.

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
pr0fess0r cha0s
16
Years of Service
User Offline
Joined: 6th Oct 2008
Location:
Posted: 7th Oct 2008 03:47
Thank You
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Oct 2008 04:34
Here, check this out:

DBC directx export

and I always say this: "I have to update this export script..." I wrote this for Blender 2.41 when I was first learning Blender, DBC, and Python. It has a few glitches and I have still to post an update for it - but, in most cases it should get the job done - and it exports animation that DBC can use and it exports materials and textures...

One of these days, I really will correct the bugs!

Enjoy your day.
pr0fess0r cha0s
16
Years of Service
User Offline
Joined: 6th Oct 2008
Location:
Posted: 7th Oct 2008 05:29
wow thnks
pr0fess0r cha0s
16
Years of Service
User Offline
Joined: 6th Oct 2008
Location:
Posted: 27th Oct 2008 21:09
I can't get the export script to work, it kind of works, but it looks nothing like the model, the sub serf modifier, color, ect. Is not loading into DBC. Also, with the highest level sub serf, the .x file should be huge, and its only 100kb. Is there another exporter or a complete one, or does anyone have any suggestions on how to write one, I know nothing about python.
ty
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 28th Oct 2008 01:49
can you attach a copy of your .blend file of the model or one that uses similar methods? I want to try it on out on my new script that has modifications.

Enjoy your day.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Oct 2008 16:18
Hey Latch, could you check out the X file I exported in blender using your exporter? If you wan`t, I will attach it. All it does is show a cube when I load it with DarkBasic...

TheComet

Peachy, and the Chaos of the Gems

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 29th Oct 2008 20:46
Could you attach the .blend file, TheComet ? That way I can test the export. Just a note, if using subsurfacing, the object has to be converted to a mesh before exporting. So in object mode, press ALT+C and delete the original (the cube).

But I found a couple of errors in the old export so it probably won't give you the results you expect but you can still test if the cube is present- some of the coordinates are backwards in whats called a frame transform matrix (this is due to a difference in OpenGL and DirectX - blender is opengl - I though I caught it before, but it occurs more than once! I think I fixed it for the new export).

Anyway, a copy of your .blend file will allow me to test it more. I think you sent me a kirby file once... or maybe it was someone else. I was able to export it without the cubes showing by converting them to a mesh - but the animation caused some problems... I think I fixed the key problem with animation in the export.

I've attached a zip file that contains a .blend file and a .x file of 5 subsurfaced cubes scaled and animated. I converted them to a mesh and deleted the original. It has an animation as well - though lame! One thing I also noticed (and it may be different in later version of Blender - i'm still using 2.41) the object data block stays in memory even when you delete the object. So if the mesh name doesn't match exactly to the object data block, you can get a different shape (one you previously deleted). So, make sure you change the object name to match the data block name, that way you should get what you expect in the export. I was wondering why I was getting a cube only then I noticed the name of the object was the same as an old data block that was a cube. When I changed the name of the object to the data block I wanted, everything was fine.

Enjoy your day.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-07 08:29:02
Your offset time is: 2025-06-07 08:29:02