Horde3D

Next-Generation Graphics Engine
It is currently 02.05.2025, 14:31

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 13.05.2008, 11:01 
Offline

Joined: 20.12.2007, 00:18
Posts: 23
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


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2008, 12:53 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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!


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2008, 18:43 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
Should probably get some of this frequently used stuff in the WIKI or in a FAQ some place.


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2008, 19:40 
Offline

Joined: 20.12.2007, 00:18
Posts: 23
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.


Top
 Profile  
Reply with quote  
PostPosted: 14.05.2008, 01:42 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group