Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / texture baking with animated uv-vertices
  RSS 2.0 ATOM  

texture baking with animated uv-vertices
Rate this thread
 
41829
 
Permlink of this thread  
avatar
  • Location: innsbruck
  • Total Posts: 128
  • Joined: 21 August 2007 08:47 AM

i have an object with an UnwrapUVW prepared to be baked, the vertices of the UnwrapUVW are animated.
now i would like to do the following:
- go to frame1, render to textute, output as “sample0001.tif”
- go to frame2, render to textute, output as “sample0002.tif”
[...]

does anybody think this is possible via maxscript or is texture baking definitely unscriptable?

thanks in advance for any help or information



Replies: 0
avatar
  • AndyOaks
  • Posted: 18 April 2010 09:53 PM

You could step through your animation and snapshot the source mesh at each frame. From here you could render out the resulting snapshot meshes.

Code flow would look something like this;

SourceMesh=$Selection[1]
For Loop Animationrange.start to Animationrange.end do
(
at time Loop
NewMesh
=Snapshot SourceMesh
<add Render-to-texture code here using the NewMesh as your node>
Delete NewMesh
)

andy



Max 9.0 through 2010, XP-Pro 64 SP2.
ATI Radeon HD 4800 series
Core 2 Quad Q9650 3.0GHz, 8Gb Ram, DX9.0c.

Replies: 0