Wintermute Engine => Technical forum => Topic started by: mRax on February 08, 2007, 08:57:07 AM
Title: Several actors - one .x file
Post by: mRax on February 08, 2007, 08:57:07 AM
Hello :)
Code: Text
var a=Scene.LoadActor3D("actors\a\a.act3d");
var b=Scene.LoadActor3D("actors\a\a.act3d");
var c=(a==b);//FALSE
Question: is there way to use one resource (.x file) with several actors? For example, I need in 10 clones. So, if actor's size is 1 MB, I need in 10 MB RAM. It's not good, huh.
Code: Text
var a=Scene.LoadActor3D("actors\a\a.act3d");
var b=a;
var c=(a==b);//TRUE
Has WME a method like
Code: Text
var a=Scene.LoadActor3D("actors\a\a.act3d");
var b=Scene.ReplicateActor3D(a);
var c=(a==b);//FALSE
? Variables a and b may contain of different description (Scale, e.t.c.), but use one memory resource. And so?
Title: Re: Several actors - one .x file
Post by: Mnemonic on February 08, 2007, 10:48:20 AM
No, the X models cannot be shared by several actors. Each holds it's own instance of the model.