Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 927 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
Saving a modified model ingame as mdl #384734
10/06/11 19:19
10/06/11 19:19
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline OP
Senior Expert
Pappenheimer  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Is it likely that you add a function to save a mesh from within the engine as an mdl?

I'm giving workshops about game making for kids, and get more and more younger children who are hardly able to get satisfying results within MED.
So I worked on an editor that allows to modify existing models in game by vec_to_vertex. I save them by a code contributed by ventilator, http://www.opserver.de/ubb7/ubbthreads.p...true#Post185155, but it saves only in the format .obj.
First the models with the format .obj don't load reliable, means sometimes they load, sometimes they don't.
Second the format doesn't store animations or bones, but I would like to let the children modify animated characters as well.

Thank you for your time.

Re: Saving a modified model ingame as mdl [Re: Pappenheimer] #384741
10/06/11 20:17
10/06/11 20:17
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
What a great contribution to the community.
Great job ventilator!
If we would have an mdl exporter i definitly would use that...

Re: Saving a modified model ingame as mdl [Re: Aku_Aku] #384748
10/06/11 21:36
10/06/11 21:36
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany

Re: Saving a modified model ingame as mdl [Re: Timothy] #384753
10/07/11 07:16
10/07/11 07:16
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline OP
Senior Expert
Pappenheimer  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Yes, there is the SDK, but it is still a lot of work to use it as a base for an exporter.
Its probably less work for conitec than for anyone else.
If there is anyone in the community who wanna do it and who _can_ do it, that's great, but I don't know how to do it.

Re: Saving a modified model ingame as mdl [Re: Pappenheimer] #384755
10/07/11 07:38
10/07/11 07:38
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
+1

I totally agree.

Re: Saving a modified model ingame as mdl [Re: Aku_Aku] #384756
10/07/11 08:39
10/07/11 08:39
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
It is not so easy to use it. I did. If you don't call the functions in a specific order (at least for reading a MDL7) it crashes. But if you do, you can easily transfer the model data into your own datastructues, which might be better engineered than the SDK' ones.

Saving a model in the engine with the SDK includes much more than just calling some functions in the SDK, though. If someone shows, how to e.g. read out which triangles connect which vertices and how one could access the UV coordinates (I, for instance, don't know that), one could write a very basic function that translates that into suitable datastructures for the SDK and then you can save it.

Last edited by HeelX; 10/07/11 08:40.
Re: Saving a modified model ingame as mdl [Re: HeelX] #384759
10/07/11 09:11
10/07/11 09:11
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
I would really like to use a function to saving modified models in fbx.
My knowledge simply isn't enough to do it.
As i thought, and as it turned out there are hidden or semi-hidden tricks do the whole process like this:
Quote:
If you don't call the functions in a specific order (at least for reading a MDL7) it crashes.
And so on...

Last edited by Aku_Aku; 10/07/11 09:11.
Re: Saving a modified model ingame as mdl [Re: Aku_Aku] #384827
10/09/11 06:54
10/09/11 06:54
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
If this gets implemented, please for hmp-terrains too. Would save _a lot_ of trouble to have an engine function for this.


Teleschrott-Fan.
Re: Saving a modified model ingame as mdl [Re: Sajeth] #384828
10/09/11 06:59
10/09/11 06:59
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
from my experience it's pretty easy if you can live with some drawbacks, like maybe changing texture formats. If everything should stay exactly the same, it can get an pretty annoying task as you have to convert e.g. the engine textures back to the right save format.. (and especially read out the mdl file before saving..)

but as already said, generally it's not too hard, and i could implement it in the next weeks (weeks not days!), as i'll work on a resave functionality..

Re: Saving a modified model ingame as mdl [Re: TechMuc] #384843
10/09/11 12:21
10/09/11 12:21
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline OP
Senior Expert
Pappenheimer  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
To save the model with _external_ textures, while ignoring the textures and their formats, is absolutely sufficient, IMO.
I guess, when you save the model with external textures, there is only the path to the texture that you save within the model.

Page 1 of 4 1 2 3 4

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1