2 registered members (AndrewAMD, TipmyPip),
13,353
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Senior Expert
|
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: Aku_Aku]
#384756
10/07/11 08:39
10/07/11 08:39
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
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: 1,032 Budapest
Aku_Aku
Serious User
|
Serious User
Joined: Sep 2009
Posts: 1,032
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: 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
User
|
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.
|
|
|
|