Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Edit original Model w/ Scripting #118984
03/23/07 05:14
03/23/07 05:14
Joined: Sep 2006
Posts: 74
Northwestern Oregon, United St...
openfire2691 Offline OP
Junior Member
openfire2691  Offline OP
Junior Member

Joined: Sep 2006
Posts: 74
Northwestern Oregon, United St...
Is it possible to write a function that will take a model and change it just a little, like move it 10 spaces to the right, and create a new model output file with the edited model? Will the animations be changed, also?


When your script isn't working right, usually it's because it's doing exactly what you told it to. -An Unknown Programmer
Re: Edit original Model w/ Scripting [Re: openfire2691] #118985
03/23/07 09:25
03/23/07 09:25
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
"change a model"?
I'm sorry, I don't quite know what you mean. Are you talking about actually going into the mesh and changing the file? That'll be hard, if even possible. I think a dll would have to do that. But moving the model 10 quants to the right won't be a problem:
my.x += 10; or my.y += 10;
would do the job. creating a new model is no problem either. (ent_create(...);)
but I think what you mean is actually changing the model in game? Don't think gamestudio kann do that, at least not c script


~"I never let school interfere with my education"~
-Mark Twain
Re: Edit original Model w/ Scripting [Re: openfire2691] #118986
03/23/07 10:04
03/23/07 10:04

A
Anonymous
Unregistered
Anonymous
Unregistered
A



To deform a model/tarrain at runtime use vec_to_mesh.
Exporting the new formed model is not possible with c-script but with a plugin (dll) writing a new model (see here mdl filestructures)

mercuryus

Re: Edit original Model w/ Scripting [Re: ] #118987
03/28/07 02:19
03/28/07 02:19
Joined: Sep 2006
Posts: 74
Northwestern Oregon, United St...
openfire2691 Offline OP
Junior Member
openfire2691  Offline OP
Junior Member

Joined: Sep 2006
Posts: 74
Northwestern Oregon, United St...
If the new model can't be saved, can it at least be saved in a .txt document or some sort of variable, so that the next time the game is run it opens the edited copy?


When your script isn't working right, usually it's because it's doing exactly what you told it to. -An Unknown Programmer

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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