Wintermute Engine Forum

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
  1. var a=Scene.LoadActor3D("actors\a\a.act3d");
  2. var b=Scene.LoadActor3D("actors\a\a.act3d");
  3. 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
  1. var a=Scene.LoadActor3D("actors\a\a.act3d");
  2. var b=a;
  3. var c=(a==b);//TRUE
Has WME a method like
Code: Text
  1. var a=Scene.LoadActor3D("actors\a\a.act3d");
  2. var b=Scene.ReplicateActor3D(a);
  3. 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.