Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, kzhao), 901 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: Saving a modified model ingame as mdl [Re: Pappenheimer] #384850
10/09/11 15:20
10/09/11 15:20
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
the main question is: do you want to store changed textures or not? if so external textures are another nice task, as ofc you'll have to overwrite the external files too (without changing the file format).

If changing textures is not needed there is no real problem, as you can just take the data from the "old" model/terrain.

Re: Saving a modified model ingame as mdl [Re: TechMuc] #384853
10/09/11 15:29
10/09/11 15:29
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
And what if I procedurally generate a texture and want to save it as external DDS? wink

Re: Saving a modified model ingame as mdl [Re: TechMuc] #384854
10/09/11 15:37
10/09/11 15:37
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
Originally Posted By: TechMuc
[...]there is no real problem, as you can just take the data from the "old" model/terrain.

To me it _is_ a problem. laugh
I look at this the other way round:
I can change the format of a texture and save it with pixel_to_vec and pixel_for_vec without problems.
That's probably a slow function, because it re-paints each pixel again, but for saving a model - who cares?

Re: Saving a modified model ingame as mdl [Re: Pappenheimer] #384898
10/10/11 07:46
10/10/11 07:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
There's a source code example for saving HMP and MDL in the SDK - so it shouldn't be much of a problem?

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

Joined: Jul 2001
Posts: 6,904
Yes, but we don't know how to read all necessary information from an entity, like, triangles (connected to which vertices), 1st and 2nd UV map coordinates, groups, and so on.

Re: Saving a modified model ingame as mdl [Re: HeelX] #384926
10/10/11 12:38
10/10/11 12:38
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
For the triangles, have a look at ent_buffers.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Saving a modified model ingame as mdl [Re: Superku] #384928
10/10/11 12:43
10/10/11 12:43
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Uh, I heard the first time of ent_buffers... thanks!

Re: Saving a modified model ingame as mdl [Re: HeelX] #385061
10/12/11 10:21
10/12/11 10:21
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
ent_buffers is the easy method. The other possibility is loading the model not with the engine but with the MDL7 SDK, but of course that's a lot more lengthy and complicated. Best go the quick and easy way first.

Re: Saving a modified model ingame as mdl [Re: jcl] #385307
10/16/11 11:44
10/16/11 11:44
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
If there is anyone who is willing and able to code an export function for an mdl, please contact me to discuss the conditions and timeframe for that.

Me, myself, I am very interested in learning how to do it, but I have no time for this for now.

I don't mind to pay for a solution, even if it shall be open to everyone in the community.

I prefer a solution that is as lucid as ventilator's obj-exporter, because I could learn from it.

Re: Saving a modified model ingame as mdl [Re: Pappenheimer] #385330
10/16/11 21:04
10/16/11 21:04
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
if the time does not matter for you, i can write a pretty clean code in the next weeks (not longer than a month), as i'm implementing a resaving feature atm for my editor. Though at the moment i'm working on the wmp files, and not on mdl files ==> Will need ~2 weeks to start that. If you need it earlier, a small payment would be nice - otherwise without a timeframe - i'll release it open source - but again please don't held your breath - just remember me of this topic in ~2 weeks laugh

Page 2 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