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.

AppGameKit Classic Chat / DBO -> AGK Mesh memblock - > OBJ / DirectX

Author
Message
Bored of the Rings
User Banned
Posted: 5th Sep 2019 16:21 Edited at: 8th Sep 2019 16:36
Here is the full source code [edit 08Sep2019-source currently being updated] for exporting any DBO object file to either .OBJ or DirectX formats (also can save out the meshmemblocks-see below).
This is Tier 1 at the moment as it's quicker to develop, Tier2 and my fav C++ later.

There are some option vars:

splitgroups =1 (set to 0 for no groups -> OBJ format only at the moment)
defaulthandedness=1 (1 = right handedness, 2 = left handedness -> OBJ format only at the moment [edit 06Sep19: added code for X format now-will be in next version])
exportformat=1 ( 1=OBJ, 2=DirectX)

you can change the output destination on the following lines that read:



code for skinned meshes ( animated objects) to yet be ported over from my old project.

Code is still in draft and more to add , condense, optimise etc.

All converted models include normals + UV coords. So you can load the converted OBJ or X files directly in AppGameKit and load in texture image and texture the object. A lot more work on the texture side to do.

If you want to save out the AppGameKit meshblock data, you can by uncommenting code which refer to ".mem". I have another program that reads the saved .mem files in, but needs cleaning up as it's still in draft/ dev/ debug state.

some pics attached.

Also works with AppGameKit Studio, uncomment the relevant #Renderer line at top of program.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others

Attachments

Login to view attachments
Bored of the Rings
User Banned
Posted: 5th Sep 2019 21:54
uploaded a character in OBJ format to Mixamo and rigged no problem.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Sep 2019 22:50
Awesome!
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 6th Sep 2019 01:42
Great Stuff !!!
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Login to post a reply

Server time is: 2024-11-22 16:59:56
Your offset time is: 2024-11-22 16:59:56