Horde3D
http://www.horde3d.org/forums/

setMeshUniform/Resource Cloning
http://www.horde3d.org/forums/viewtopic.php?f=2&t=327
Page 1 of 1

Author:  Manny [ 13.05.2008, 11:01 ]
Post subject:  setMeshUniform/Resource Cloning

hey guys,

Horde 1.0 no longer supports setMeshUniform; the changlog details that the same functionality is available through resource cloning. Could some explain how this is achieved? Is it something along the lines of having to clone the material, assign it to the mesh you want to alter the values for, and use setMaterialUniform instead?

Thanks

Author:  Volker [ 13.05.2008, 12:53 ]
Post subject:  Re: setMeshUniform/Resource Cloning

Manny wrote:
Is it something along the lines of having to clone the material, assign it to the mesh you want to alter the values for, and use setMaterialUniform instead?

Exactly!

Author:  AcidFaucet [ 13.05.2008, 18:43 ]
Post subject:  Re: setMeshUniform/Resource Cloning

Should probably get some of this frequently used stuff in the WIKI or in a FAQ some place.

Author:  Manny [ 13.05.2008, 19:40 ]
Post subject:  Re: setMeshUniform/Resource Cloning

Cool, cheers :)

Out of curiosity, why was setMeshUniform removed? Doing it this way seems a bit round the houses. It also means you potentially have to duplicate a lot of materials.

Author:  DarkAngel [ 14.05.2008, 01:42 ]
Post subject:  Re: setMeshUniform/Resource Cloning

Manny wrote:
Cool, cheers :)

Out of curiosity, why was setMeshUniform removed? Doing it this way seems a bit round the houses. It also means you potentially have to duplicate a lot of materials.

I guess it's because Horde is supposed to be a "small and simple" API.

Seeing as the "setMeshUniform" functionality can be achieved using the existing functions, this means that "setMeshUniform" is more of a utility function rather than a core API function.

Internally, in the older versions of Horde, setMeshUniform would have been essentially duplicating the materials for you anyway.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/