Home   Help Search Login Register  

Author Topic: animated textures for drop-particles  (Read 3730 times)

0 Members and 1 Guest are viewing this topic.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
animated textures for drop-particles
« on: 28 May 2005, 01:04:54 »
i know basically how to make animated textures, but all i've done so far in this field is a new muzzle flash for my bmd-1 - that worked fine.

what i want to do now is to add an animated texture to a new particle (shall become: little gnat particle with animated wings ;)). i have three different textures named mosquito.00.paa to 02.paa, i made the new particle, put it all ingame with a little script, but the wings are not moving hence the texture is not animated.

my questions: are animated textures resctricted to muzzle flashs? (guess not... ???)
if not, are they restricted to any other type of model/vehicle? (config entry for particles? - haven't seen any yet)
and finally: how do i solve this to have my little mosquitos spread their wings?
we're looking for members: IM:UC MOD

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:animated textures for drop-particles
« Reply #1 on: 28 May 2005, 04:32:36 »
I have no idea, however how did you make a custom texture drop?

Ask a question and get asked one... Not what you wanted im sure.
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:animated textures for drop-particles
« Reply #2 on: 28 May 2005, 10:52:33 »
hehe - the three standard drop effects are the only models that are solely designed for being drop-effected.
in fact you can have little tanks come up from the ground, inflated them and finally burst them in mid air for example - the drop command is completely free concerning what model you take. instead of cl_basic you can insert abrams for example or of course your own particle. NB. always without the p3b suffix!
to make a new one make a two-sided plane, texture it, pbo it and off you go ;)
(btw. would anyone try this inflated&burst tank thing for a LSD-trip cutscene? ;D)

take a look at vektorboson's tut on the drop command for more info:  here.

ok now what about my problem, mates ??? any specialist in animated textures around?

 
« Last Edit: 28 May 2005, 10:53:36 by remcen »
we're looking for members: IM:UC MOD

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:animated textures for drop-particles
« Reply #3 on: 28 May 2005, 11:25:29 »
Have you tried looking at the cfgCloudlets section in the game config, it might hold some clues for you.


Planck
I know a little about a lot, and a lot about a little.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:animated textures for drop-particles
« Reply #4 on: 28 May 2005, 11:46:14 »
errr no, there you find how the cloudlets that appear when a shell hits the ground shall behave, right? and only the standard particles are used there, namely cl_basic, cl_water and cl_fire.
no, this is not about how a particle is animated/moved/etc. but how i get animated textures working on particles - meaning a sequence of three textures.
we're looking for members: IM:UC MOD

Lean Bear

  • Guest
Re:animated textures for drop-particles
« Reply #5 on: 28 May 2005, 12:06:19 »
I don't really understand the question.

Do you want the plane the textures are on to be animated, or just the textures on a fixed plane?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:animated textures for drop-particles
« Reply #6 on: 28 May 2005, 12:20:29 »
I know one object that has animated textures, however they never seem to work, it was maybe never fully implemented.

kasna.p3d.......the fountain has kasna_voda.01 as a texture and there are are further 5 textures in that sequence.....up to .06.

I can see nothing in the p3d model that implements the animation, which leads me to suspect that it was never finished, or, if it is working, it is handled by the game engine.

Having said all that, it does have animated=0 and animPeriod =1.33 in its config entry.

kasna_new which came with Resistance, has animPeriod=2.
And they both use simulation 'fountain'

I don't know if any of that info is useful to you, but personally I suspect it is the game engine that would handle that sort of thing, if it works fully at all.


Planck
I know a little about a lot, and a lot about a little.

Lean Bear

  • Guest
Re:animated textures for drop-particles
« Reply #7 on: 28 May 2005, 12:25:15 »
If what Planck is saying is what you want, then I'd recommend you take a look at the FDF Northern Lights script.

That is a simple plane up in the sky, which uses drop to create an animated texture of the northern lights.

It looks perty too :D

If you don't have FDF and don't want to d/l it - I can post some snippits of the code for you.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:animated textures for drop-particles
« Reply #8 on: 28 May 2005, 16:27:58 »
@lean bear:  the drop command itself is not the problem. what i want is not about changing the size, colour, opacity or whatever, but to apply an animated texture to a fixed plane. i know this works somehow - i just don't know how exactly. for the muzzle flash of my bmd-1 it worked perfectly. imagine animated textures like a .gif-animation which is not stored in one file but consists - in the case of ofp - of two or more single files numbered from texture.00.paa to texture.0n.paa

planck knows what i mean - there are some examples, like the muzzle flash the water texture, that fountain, and i think seb müller's dune buggy had an animated fan which was done with animated textures as well afaik.
will unpack the buggies asap and let you know what i find out.

oh yes, and i remember - long ago - there was a tutorial on how to do this, not here on ofpec, but on some mod's page. i searched for it for hours but couldn't find it. if someone has the link...  thanks ;)  
we're looking for members: IM:UC MOD

DBR_ONIX

  • Guest
Re:animated textures for drop-particles
« Reply #9 on: 28 May 2005, 16:35:11 »
The most obvious example of animated textures is the night-vision, no?
Maybe someone could try adding .07 .08 etc, and see if the game looks at them?
- Ben

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:animated textures for drop-particles
« Reply #10 on: 28 May 2005, 16:42:11 »
yeah, right, i forgot that example.
that's what i've done. i textured the plane with mosquito.00.paa and named the other ones mosquito.01.paa and mosquito.02.paa (i also tried .01.paa to .03.paa btw ) - it doesn't work, that's my problem as i wrote in my first post in this thread.
« Last Edit: 28 May 2005, 16:43:34 by remcen »
we're looking for members: IM:UC MOD

Lean Bear

  • Guest
Re:animated textures for drop-particles
« Reply #11 on: 28 May 2005, 19:22:30 »
@ remcen

Yeah, that's what I was trying to get at.

Here's how I always do it:

1. Make you textures (which you've done) and name them in the following format:

name.01.paa

btw It always starts with 01 not 00 (might be part of the problem). Also, although I don't know if its necessary, try to keep the names short - it seems to work better for me.

2. Make the .p3d file - a simple plane. Name it something different to the textures (eg. if your textures are: tex.01, tex.02 etc. call your .p3d something like texture.p3d)

3. Write the script using the drop command.

An example:

btw you'll either need a different script, or a different part of a script to do this. You can't make the paticle for the gnat and animate the wings using the same drop.

#Loop

drop ["YourAddonFolder\moswing", "", Billboard, ~~~etc.~~~~]

goto "Loop"


Follow these simple steps and it should work :) . You might not want it to be a "billboard" type though.

edit

The script is probably the most important bit. If the animation isn't timed right, you aint gonna see nowt.
« Last Edit: 28 May 2005, 19:24:46 by Lean Bear »

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:animated textures for drop-particles
« Reply #12 on: 29 May 2005, 14:19:53 »
i just had a look at the data folder and saw that the textures for the cl_water and the cl_basic particles also have these animated textures (starting with basic.06.paa for cl_basic - odd enough).

however, when you drop-create these particles only one texture is displayed hence the texture animation does not work. first i thought that the animationname parameter is responsible for this, but this is not the case. so i think there is no way to get this working.

i don't know if that applies to drop-created particles only or to all particles including those created by defining a new cfgcloudlets class, fireplace or whatever.

btw. what's the animationname parameter for? in the official command reference it reads "Name of the animation of the shape" and by shape the 3d object is meant obviously. vektorboson's tut says that is must be a classname...
but this parameter is mostly left empty as far as i know.

@lb.
Quote
btw you'll either need a different script, or a different part of a script to do this. You can't make the paticle for the gnat and animate the wings using the same drop.
this confuses me. the animations are done by the textures here and should display automatically...
« Last Edit: 29 May 2005, 14:24:40 by remcen »
we're looking for members: IM:UC MOD

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:animated textures for drop-particles
« Reply #13 on: 29 May 2005, 14:34:58 »
This is just a pure guess......but possibly the animationname parameter was meant to be for an animation created for a particular  drop particle, which is not used because it was never fully implemented.

Or if there is an anmimation it is entirely handled by the engine using preset defaults.

As I said before, I don't think texture animations is fully implemented, although in some cases it works, i.e. NVG and of course the sea, but the engine handles all that.


Planck
I know a little about a lot, and a lot about a little.

Lean Bear

  • Guest
Re:animated textures for drop-particles
« Reply #14 on: 29 May 2005, 16:05:04 »
remcen,

The animated textures have to be first put on their own particle (a normal 2d plane) and scripted before they can be added on the particle of the gnat.

I've rarely seen animationName actually used, I normally just put
Code: [Select]
"" instead :P

@ Planck

I've seen texture animations work in everything I've tried, from on vehicles to weapons and the sky.