![]() |
|
#1
|
|||
|
|||
Hi Tokola,
I'd recommend doing animated UVs in Max instead of doing them through code. It will be easier and give you more control. First, make sure your exporter is up to date (and probably your copy of Vizard as well). Next, add a bitmap to a material. Under coordinates you can animate the following values:
Also, some terminology:
|
#2
|
|||
|
|||
animating textures
Veleno, thanks for the response!
![]() Although you did clear some things I still can't make Vizard recognize any other texture besides the one assigned in the diffuse port of the material (unit #0). I assigned the same material under Opacity for the second object of my multi-object material, but Vizard still returns viz.VizTexture(-1) when I try to get the texture in unit #1. The reason I am insisting in making the animation in Vizard is that I want to have control over starting/stopping the animation and I don't know of any way to do this if using 3DMax texture animations. Plus, I have the impression that Vizard (or the OSG format) creates a mesh for every frame of an animation, which makes models really heavy (I don't know if this is the case for texture animations). Overall, which one do you feel would be the best (more efficient) approach to simulating (and controlling) a turning belt? I also attach the .max file in case you feel like playing with it. Thanks for your help, --tokola |
#3
|
|||
|
|||
animating textures - addendum
This is an update of what HAS worked for me so far, although it seems counter intuitive. I had to split the object vertically in two sub-objects with names belt1 and belt2, and use the following code to simulate the stripes going up on one side (node) and down on the other side (node):
Code:
def TurnBelt(): global matrix1, matrix2, belt matrix1.postTrans(0,.04,0) matrix2.postTrans(0,-.04,0) belt.texmat(matrix1,'belt1',0) belt.texmat(matrix2,'belt2',0) timer = vizact.ontimer(.01, TurnBelt) Although this works perfectly, I really don't know if it's the most efficient way, both CPU-wise, since I have lots of belts, but also as far as the work that is demanded in 3DSMax to format all belts appropriately (they are initially an extruded editable spline). If I could do everything with a single rotating UVMap/texture on a single object, I would be thrilled! Thanks again for the assistance, --tokola |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |
Avatar texture swaping | sleiN13 | Vizard | 5 | 06-24-2011 12:48 AM |
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 |
how I can get my texture to appear exactly as is defined | mspusch | Vizard | 1 | 04-23-2005 12:12 PM |