martyj Posted August 8, 2016 Share Posted August 8, 2016 I use the cloning of instances to have different skins for different NPCs. Using the Entity::Instance function go copy the Entity use to have unique surfaces. Now, it's the same reference in all copied objects. The code. Model* dwarf = Model::Load("Models\\Characters\\Dwarf\\Drawf_full.mdl"); Model* clone = (Model*)dwarf->Copy(true, false); With a debugger you can look at dwarf->surfaces and each individual object in the vector matches for the dwarf and the clone instance. Using Entity::Copy makes it so the entities don't appear. Link to comment Share on other sites More sharing options...
Josh Posted August 26, 2016 Share Posted August 26, 2016 The Instance function will use the same surfaces. However, it does look like there is a problem with copying skinned models. Looking into it now. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted August 26, 2016 Share Posted August 26, 2016 Okay, I got it fixed for next build. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts