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 / writing .x object files from agk

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 7th Mar 2021 23:37 Edited at: 8th Mar 2021 00:08
Anyone here ever written a .x object files from agk so they can be loaded again in agk

1>It has lots of advantages like loading multiple objects at once
and texturing individually once loaded as bones for example
2>the ability to scale a heap of objects at once like they are one object

there are lots of other things that would be nice but both of those would be nice
at this point of time

http://www.cgdev.net/axe/x-file.html#_ftnref10

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Mar 2021 20:03
I would like to see them finish implementing the "SaveObject()" command to start with, but your idea has merit. It would be sweet to just create a cube that uses a texture map so you can have different textures on each side. I use AC3D, and sometimes Blender. Something like this...

Simple Mapped Cube
Bored of the Rings
User Banned
Posted: 10th Mar 2021 04:56
Yes I have done it.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 12th Mar 2021 19:02
I have a function that will open an exported. X scene from blender. It will scan the file separate all the objects in the scene into individual. X files it also creates a materials list file that can be side loaded. I use it to export a level from blender straight into agk with textures and shader no code required . This what ur looking for?

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 13th Mar 2021 00:09
smerf, do you have a working .X exporter for 2.9.x versions of blender, I cant use 2.78 that UI is like capitol punishment!!

or can your script be adjusted to read .obj, .fbx or something blender natively exports?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 15th Mar 2021 18:55 Edited at: 15th Mar 2021 19:00
ive exported the scene
and the importer is loading the objects but

1> theyre not being rotated for some reason
2> and in my code the images aren`t being applied

just testing atm and breaking it down to the very bare essentials

ive attached my test proggy
just working on getting a scene to import with textures at this point of time

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 15th Mar 2021 19:02
the scene .x (test.x) is included but not necessary for anybody unfamiliar with smerfs proggy

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 18th Mar 2021 07:49 Edited at: 18th Mar 2021 08:00
Yes I have an importer for blender files and a temp scene inside It wasnt really ready to be released but if someone needs it here is a link
https://www.dropbox.com/s/rlryvharr94opbx/RoaEngine.rar?dl=0

the actual converter is attached separately below it will turn your blender.x scene into individual objects and generate a loadscript. engine will load the script and recreate and texture your level.

Attachments

Login to view attachments
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 19th Apr 2021 15:04
Hi there yes it is posible. Loading multiple objets at once ..you mean loading objects with lot of limbs I suppose ...then we can make different objets from any limb
I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-18 20:59:41
Your offset time is: 2024-04-18 20:59:41