Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, monarch), 1,211 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | 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