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 / Confused with exporters !

Author
Message
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 19th Jan 2015 22:53
Hi guys!
I try to find solution to export models from 3ds max to DbPro.I need at least 2 uv stages , correct bone animation and vertex colors.
I have tested Panda Exporter, kw-exporter and alin's directx exporter(i just dont find any more)
I get weird results with each of them

1)Panda - export correct uv's but corrupt vertex color.Also it somehow increase vertex count!Model which have 900 vertexes now have 3500 +
2)kw-exporter - correct vertex color but failed on multiple uv stages.Vertex color is ok but when you read it through vertexdata - blue chanel is missing.
3)alin's directx exporter - the same
All exporters export different vertex count (WTF?) I cant explain it
Maybe anyone solve this?

Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 20th Jan 2015 02:31
vertex counts are changing based on how the exporter is splitting edges and/or triangulating ngons. there is probably not a lot you can do about this

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 20th Jan 2015 16:11
I can't help you there unfortunately. I do not have experience with 3Ds MAX, only Blender.

Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 22nd Jan 2015 09:26 Edited at: 22nd Jan 2015 09:29
Hi Kuper,

One format that DBPro supports is the 3DS format which is a native export from 3DSMax, so there's no need to use the Pander/DirectX exporters unless you're exporting to the .X format.

I found a tool recently which converts both .3DS or a .X formats into a .DBO format (a few TGC forum goers have tested this to be the quickest/most efficient format to use (don't quote me on that, do some tests yourself ))

Attached is the compiled program "ConvDBO", but I can't recall which thread I found it in. It seems to work OK. One bug that I've found with converting 3D file formats, is that Material Names must be simple letters & numbers without spaces, or the resulting 3D model will fail to load in the DBPro application.

Whilst we're on the topic of 3D Modeling, I found that Wings3D is a lot of fun, check it out as hopefully you'll enjoy it and find it useful as much as I did (I've never found time nor love for 3DSMax, nor have I sat down with Blender).

http://www.wings3d.com/

Hope this helps!

If you like, post some example files up for us to have a play with too.

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
Kuper
18
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 27th Jan 2015 08:42
Thanks
Here is from official Kw-export page:
Quote: "Decldata is a newer format for storing vertex data, while FVF is the older format, see here: http://msdn.microsoft.com/en-us/library/windows/desktop/bb206335(v=vs.85).aspx
Jon Watte, the original author of the exporter chose this format. I’m guessing Dark Basic Pro does not parse the data in DeclData 100% correctly. Although I tested out a model in FPS Creator, it DOES in fact use the highest exported UV coordinates contained in DeclData (accesssed via shader), so it partially works at least."

So it can work not properly with DBPro.Alin's directx exporter - also use the same techinique so you can lost your Uv chanels with it.
Vertex colors works well with all plugins but sometimes i get unpredictable results.At least you can make DBpro crash when export more then 4 uv stages from 3ds max( with panda exporter)

I think I find a solution.Here is the way I export this:
1)Use 3ds max 2012
2)Use to paint in UV's in vertex color
3) stage 0 - main texture
stage 1 - vertex color R and G
stege 2 - uv for light mapping
4) export with Panda exporter.You can check "Optimization- normal" inside it.This will decrease vertex count
5) Load to DBPro. Now you are gorgeous!!!

Login to post a reply

Server time is: 2026-07-05 03:48:31
Your offset time is: 2026-07-05 03:48:31