Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Can I remove texture from a 3d model that is loaded with texture?  (Read 924 times)
harikumar001
Customers
Community Member
*****
Posts: 65


« on: September 04, 2010, 11:26:15 PM »

Hey guys,

Correct me if I am wrong. This is what I plan to do. I have 3D model loaded in the scene. The model contains textures. Right now I am extracting the different groups and texture applied to them along with material information for the model in a text box. This is working fine.

I now want the user to be able to remove texture for a particular group of the model. I have the group ID. I know i can set a new texture with settexture, but how can I remove it. The reason I want to remove the texture is so that users can then see the material and change its properties to their desired diffuse RGB value to change the color of the model, in case they are not happy with textures.

Am I on the right track? Any pointers will be much appreciated.

Regards
Logged
ZaPPZion
Moderator
Community Member
*****
Posts: 555


« Reply #1 on: September 05, 2010, 05:58:13 AM »

TVMesh.setTexture(0, groupID);
Logged

Check out my website: www.bartkuipers.com
harikumar001
Customers
Community Member
*****
Posts: 65


« Reply #2 on: September 11, 2010, 04:26:03 AM »

Thank you ZaPPZion
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks