lfnetwork.com mark read register faq members calendar

Thread: Q: animated textures
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-07-2005, 01:56 PM   #1
LSaberDuelist
Rookie
 
LSaberDuelist's Avatar
 
Join Date: Aug 2005
Posts: 38
Q: animated textures

I tried to add some animated textures to the mask I am working on(http://www.lucasforums.com/showthread.php?t=153253), but I ran into difficulties... The only information I have on the animated textures is from http://ccg.dladventures.com/index.ph...&printable=yes, but this article is not very detailed. Does anyone know a better source of information?

What I was trying to do is to make the eye glow with animated textures. I had a look at some animated textures from the game like fx_baodur and so on...
I appears to me these animated textures are like gifs and that they store the frames of animation. Animation type and animation parameters are declared in the corresponding *.txi file.(?) But I couldn't figure out how to control the animation exactely. What I did so far:
-define a 1024x1024 fx_texture to store 16 frames of animation each frame is a 256x256 block in the texture(I guessed...)
-apply the fx_texture to the eye
-map the eye to first frame(the 256x256 block in the upper left corner)
-In the txi file I declared proceduretype cycle, numx 4 numy 4 and fps 1

There is some a cycle of different frames, but not the ones I wanted...

Does anyone know how to do this or a better source of information on the animated textures?
LSaberDuelist is offline   you may: quote & reply,
Old 10-07-2005, 02:06 PM   #2
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Animations are all relatively unknown territory for all of us making the information base very slim. So your guess would be as good as most of ours. I wager to say trial and error will be your friend in this territory.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 10-07-2005, 02:14 PM   #3
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,295
Several modders have made animated textures in the past, including T7, oldflash, MdKnightR and a few others. Wait until they get online I'd help but graphics and modelling are just not my branch. Edit: but to my knowledge, you are on the right track and the animation parameters are declared in the .txi file.

Last edited by Darth333; 10-07-2005 at 02:35 PM.
Darth333 is offline   you may: quote & reply,
Old 10-07-2005, 03:12 PM   #4
MdKnightR
Senior Member
 
MdKnightR's Avatar
 
Join Date: Jul 2005
Location: Feeling Hosed By Your Governme
Posts: 1,859
Well, thanks for the credit, D333, but I can't take claim for it. Oldflash is the one to ask. When I designed the Heart of the Force Sabers, my intention was to have the animated areas simply glow with the color of the blade. It was oldflash's idea to animate them. He is certainly the one to ask about such things. I wish you success with the mask! If you pull it off, I would love to download it. It would make a lovely complement to my sabers.

MdKnightR is offline   you may: quote & reply,
Old 10-07-2005, 07:17 PM   #5
oldflash
Veteran
 
oldflash's Avatar
 
Join Date: Aug 2004
Posts: 904
Current Game: SWtOR
Forum Veteran Veteran Modder Helpful! 
Quote:
Originally Posted by LSaberDuelist
I tried to add some animated textures to the mask I am working on(http://www.lucasforums.com/showthread.php?t=153253), but I ran into difficulties... The only information I have on the animated textures is from http://ccg.dladventures.com/index.ph...&printable=yes, but this article is not very detailed. Does anyone know a better source of information?

What I was trying to do is to make the eye glow with animated textures. I had a look at some animated textures from the game like fx_baodur and so on...
I appears to me these animated textures are like gifs and that they store the frames of animation. Animation type and animation parameters are declared in the corresponding *.txi file.(?) But I couldn't figure out how to control the animation exactely. What I did so far:
-define a 1024x1024 fx_texture to store 16 frames of animation each frame is a 256x256 block in the texture(I guessed...)
-apply the fx_texture to the eye
-map the eye to first frame(the 256x256 block in the upper left corner)
-In the txi file I declared proceduretype cycle, numx 4 numy 4 and fps 1

There is some a cycle of different frames, but not the ones I wanted...

Does anyone know how to do this or a better source of information on the animated textures?
Ok, lets get started.

Here is "template" txi which I use

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


So, "envmaptexture" is give you that chrome efect in game
Proceduretype is how will be animation, Here is something strange. For example if you have 3x3 animated texture the steps will be:
1 2 3
7 8 9
4 5 6
Defaultwidth and defaultheight seems to be useless because even if I put comment sign (chr #) or I modify values does not affect animation, so no need for those 2.
Important is numx and numy which define how many textures are horizontal and vertical.
FPS is how many frames /sec (NOT complete cycle).
Blend aditive I use sometimes to make transparent channel black

============
How to use this
============
First, when you make mapping use some sample tga and do all thing for static texture. After exporting model you will need to edit that texture.

Example. Here is a custom lightsaber hilt which I made-it for MdKnightR and is a good example: http://www.pcgamemods.com/mod/16451.html

Sorry for my bad english
I someone want to "translate" what I write will be welcome.

ps You can use animated definition for cm_baremetal or another custom texture used for chrome effect. In that way you can use 2 animations for your textures. In short time I will post some new models with multiple animated textures. (http://q-net.netfirms.com/wip/017.html)
oldflash is offline   you may: quote & reply,
Old 10-07-2005, 07:34 PM   #6
Jackel
Senior Member
 
Jackel's Avatar
 
Join Date: Sep 2003
Posts: 1,056
Quote:
Originally Posted by oldflash
Sorry for my bad english
Your english is fine, better then some people who have english as their first language.

Just one question about this though.

How does the size of the texture work, currently we use a 256 x 256 texture (for example) do we have to use a 256 x 768 texture size if we want a texture with three different textures? Or will the game automatically devide the texture up itself in game?

edit: and nice looking sword there, thats definately going to be a download for me

Last edited by Jackel; 10-07-2005 at 07:44 PM.
Jackel is offline   you may: quote & reply,
Old 10-07-2005, 09:11 PM   #7
LSaberDuelist
Rookie
 
LSaberDuelist's Avatar
 
Join Date: Aug 2005
Posts: 38
first of all thanks for the help so far, but I still got a problem. As long as I do not animate the texture everthing appears fine, here is a screenshot:
http://img254.imageshack.us/img254/8189/screen10yu.jpg
the txi file used here is simply envmaptexture cm_bright
here is what happens if I want to animate:
http://img254.imageshack.us/img254/3466/screen20qq.jpg
It is a little bit hard to see, but what happens is that the eye texture is no longer properly located.
this is my eye texture:
http://img254.imageshack.us/img254/7...eyemask3hu.jpg
The txi file I use is:
Code:
envmaptexture cm_bright
proceduretype cycle
#defaultwidth 256
#defaultheight 256
numx 4
numy 4
fps  20 
#blending additive
#decal 1
In the animation texture I mapped the eye to the upper left eye.

Any idea how this could happen and how to correct it?
LSaberDuelist is offline   you may: quote & reply,
Old 10-08-2005, 03:47 AM   #8
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://q-net.netfirms.com/anim/2.html
http://q-net.netfirms.com/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://q-net.netfirms.com/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://q-net.netfirms.com/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://q-net.netfirms.com/anim/01.html
but if you do mapping like this http://q-net.netfirms.com/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; 10-10-2005 at 11:41 AM.
oldflash is offline   you may: quote & reply,
Old 10-08-2005, 04:54 AM   #9
LSaberDuelist
Rookie
 
LSaberDuelist's Avatar
 
Join Date: Aug 2005
Posts: 38
Yep ! Got it working... Thanks for the great help oldflash What I did wrong was the mapping, I mapped to the first frame of the animation that was wrong. You have to map for example to a single 256x256 texture, compile everything. Then to get for example an animation with 9 frames take the old texture resize it to 768x768(to store the 9 frames) and fill it with the nine frames of the original version. The old mapping has to be preserved.
LSaberDuelist is offline   you may: quote & reply,
Old 10-08-2005, 05:10 AM   #10
oldflash
Veteran
 
oldflash's Avatar
 
Join Date: Aug 2004
Posts: 904
Current Game: SWtOR
Forum Veteran Veteran Modder Helpful! 
Glad to hear that. Good luck. I wait your mask (which I will convert to ascii, make some modif and sent-it back to you )
oldflash is offline   you may: quote & reply,
Old 10-10-2005, 03:04 AM   #11
cry_of_paine
Rookie
 
cry_of_paine's Avatar
 
Join Date: Aug 2005
Posts: 62
I'm wondering, can this technique be applied to an entire character? There was a character in Bloodrayne 2 that I thought looked cool that had that kind of effect. Second, if you are able to apply this to an entire character model, can you specify that it only occurs at a specific transition state (ie. LS is normal texture, DS is animated)?
cry_of_paine is offline   you may: quote & reply,
Old 10-10-2005, 03:21 AM   #12
oldflash
Veteran
 
oldflash's Avatar
 
Join Date: Aug 2004
Posts: 904
Current Game: SWtOR
Forum Veteran Veteran Modder Helpful! 
Almost every texture can be animated. The problem is on dimensions.
About transitions.
Dartk transition is reflected in changing texture. That means you could have animated texture for ds and static one for neutral and ls. For more info about characters textures look in appearance.2da.
oldflash is offline   you may: quote & reply,
Old 10-10-2005, 12:10 PM   #13
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
I would like to nominate this thread for the how to stickies as we could use some mini-tuts on animation for all.

If any moderators hear this would they be so kind as to add this. Maybe even start a sub sticky for animations in the modeling and skinning stickies.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 10-10-2005, 12:13 PM   #14
ChAiNz.2da
Leave Everything to Me!
 
ChAiNz.2da's Avatar
 
Join Date: Oct 2004
Location: Tennessee (USA)
Posts: 6,848
Quote:
Originally Posted by Darkkender
I would like to nominate this thread for the how to stickies as we could use some mini-tuts on animation for all.
^^^
http://www.lucasforums.com/showthread.php?t=153502

More to come regarding this however.... so keep your eyes peeled


"Eagles May Soar, But Weasels Don't Get Sucked Into Jet Engines"


| Mods (FF) (DS) | Folding | SWK.com | FB: (LF) (Me) | Steam | The Herd |
ChAiNz.2da is offline   you may: quote & reply,
Old 10-14-2005, 03:40 AM   #15
cry_of_paine
Rookie
 
cry_of_paine's Avatar
 
Join Date: Aug 2005
Posts: 62
Quote:
Almost every texture can be animated. The problem is on dimensions.
So in that case, first, are you aware of any textures which specifically can't? And second, is there a limit on the size a texture can be?
cry_of_paine is offline   you may: quote & reply,
Old 10-14-2005, 05:51 AM   #16
oldflash
Veteran
 
oldflash's Avatar
 
Join Date: Aug 2004
Posts: 904
Current Game: SWtOR
Forum Veteran Veteran Modder Helpful! 
I haven't tested all textures but from what I have test, bumpmap are not accesibles for edit. Special atention need on system textures (like cm_baremetal, cm_bright or other texture used for envmap), all "frames" must have same size as original.
About size limits.
Think about this: 1 animated texture with 4 frames means same thing as 4 static textures. It's all about dimensions and will be reflected on game performance.
A good advice will be to use animated texture on nonanimated models.
Separate the parts who need to have animated textures as new mesh and remap all objects. Look at LSaberDuelist model. He use 2 textures, one static for mask and one animated only for eye.
oldflash is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Q: animated textures

Thread Tools
Display Modes

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


All times are GMT -4. The time now is 08:59 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.