View Single Post
Old 10-08-2005, 02:47 AM   #4
oldflash
Veteran
 
oldflash's Avatar
 
Join Date: Aug 2004
Posts: 904
Current Game: SWtOR
Forum Veteran Veteran Modder Helpful! 
I got some pic. I use my lightsaber for example. In that way you can see how it works (last lightsaber from here: http://www.pcgamemods.com/mod/16370.html)
This was my steps:
1. I map the hilt using a single texture 128x128
http://oldflash.batcave.net/anim/
http://oldflash.batcave.net/anim/1.html
and done with uvw unwrap
2. Export model and test in TSL to see how it looks
3. In photoeditor
- I load original texture http://oldflash.batcave.net/anim/3.html
- create new file with custom size 384x384 (3*128) for using at 9 frames animation (pic called "untitled - 4")
- fill the new pic with original texture until I get 9 objects 128x128 ("w_shortsbr_009-anim.tga"
note: on w_shortsbr_009-anim.tga red mark and numbers are only to show you the animation order for proceduretype cycle
- I edit every object to gibe some "glow" effect in animation
- Save final texture overwriting the one which I use for mapping and create the txi file
to contain this

envmaptexture cm_baremetal
#cm_Bright1
proceduretype cycle
defaultwidth 128
defaultheight 128
numx 3
numy 3
fps 15
#blending additive
#decal 1

In your case:
Load model in 3deditor, unwrap uvw, select all verticles and make resize to fit with texture. NOT first frame, not second. Use all texture size.
http://oldflash.batcave.net/anim/4.html

Or more simple, convert w_shortsbr_009.mdl to ascii and look how is mapped.

note: all animations thing are photoeditor job. not 3deditor.
In txi file: lines which start with # are ignored and can be deleted

You have done something like this: http://oldflash.batcave.net/anim/01.html
but if you do mapping like this http://oldflash.batcave.net/anim/02.html it will be ok

One suggestion:
In your texture the cycle order is
1 2 3 4
13 14 15 16
9 10 11 12
5 6 7 8
You can use 2048x512 texture and the order is
1- 2 - 3 - 4 - 5 - 6 -7 -8
9-10-11-12-13-14-15-16

Last edited by oldflash; 05-25-2006 at 10:35 AM.
oldflash is offline   you may: quote & reply,