WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-22-2011, 03:38 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
Avatar texture swaping

I'm trying to change the texture on a avatar by dynamically replacing the texture file with a other (same name file so just overriding the old one)

Vizard keeps remembering the old texture file instead of loading the new one (for that mesh). changing meshes does load the correct texture.

I've tried to create new .cfg files and even new directories and removing the old ones but still Vizard keeps using the cached texture.

I've set the viz.setOption for cache on 0
viz.setOption('viz.model.cache', '0')

and also do a
avatar.remove()
viz.clearCache(mode=viz.TEXTURE_CACHE|viz.NODE_CAC HE)

but still he loads the incorrect texture.

I've checked the directory if the new texure (with the same name) was placed there and this was the case. I've even build in a delay between ,removing the avatar and rebuilding the directory with the new texture and mesh files, and loading the new .cfg file.

So how can I make a program that swaps/replaces the texture of a avatar model (model has multiple textures so .texture() doesn't work)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
How to apply shader and render texture to an object whj Vizard 0 04-23-2010 12:23 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
Looking through the eyes of an avatar Frank Verberne Vizard 2 04-01-2008 05:52 AM
avatar head texture issues rconrey Vizard 3 11-17-2004 04:05 PM


All times are GMT -7. The time now is 11:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC