Jump to content

Can someone help me understand this script?


RagnaHighArc

Recommended Posts

I haven't found any tutorials on working with shader effects and particles. All i found was the page in the CS Wiki. You can also use Oblivion's shader effects as templates or examples.

 

http://cs.elderscrolls.com/constwiki/index.php/Effect_Shader

 

But here are the settings i used.

 

Particle Shader box - checked

 

Source Blend Mode - Source Alpha

 

Dest Blend Mode - Source inverted Alpha

 

Blend Operation - Add

 

Z Test Function - Normal

 

Particle B R U Time - 0

 

Full Particle B T - 0.25

 

Particle B R D T - 0

 

Full Particle B R - 0

 

Persistant Particle B R - 0

 

Particle LifeTime - 1 - +/= 0.01

 

Initial S A N - 200

 

Acceleration A N - 0

 

Initial V - 0, 0, 0

 

Acceleration || -300.0, 0.0, 0.0

 

Scale Key 1 - 7 || Time - 0.0

 

Scale Key 2 - 7 || Time - 0.99

 

And all the Color Keys are set to 1.0 at 0.0 Time.

 

The Color Keys affect the texture color and/or visibility according to the time values. The Time values are 0.0 to 1.0. "0" being at the start of the particle's life cycle and "1" being at the end of it's life cycle.

 

The texture i used is just a blurred gray rectangle with a black background with an alpha channel created off the color black( FFFFFF in HTML and 000000 in hex), saved as a dds file and loaded into the Particle Shader side.

 

I managed to create an effect in which particles seem to appear from outside the object and then have them flow into the object by playing with the color keys

 

Color Key 1

Color Alpha - 0 || Color Key Time 0.5 - That says that in the 1st half of their life they're invisible.

 

Color Key 2

Color Alpha - 1 || Color Key Time 0.5 - That makes them appear at full visibility half way into their life.

 

And i forgot what i did with the Color Key 3...

 

And to create the effect of particles flowing inward into the object or player, we need to adjust a few things

 

Initial Speed Along Normal - 300.0 === That would make the particles burst out

 

Acceleration Along Normal - -450(i think...) === That should make the particles accelerate negatively along their path.

 

I'm still not sure what the currect formula is to create the particle explosion and implosion, but i think its InitialSpeedAlongNormal * 1.5 and then make that number a negative value.

 

So, what i did was to make the particles invisible at first, then when they started to move inward, i made them appear.

 

I was planning on using that effect to make a staff mod that would charge up power the longer you hold the attack button, but i don't think it's possible to make specific frames of animation play longer than normal. without altering the kf files.

Link to comment
Share on other sites

holy poo i'm an idiot....

 

I mentioned a few post ago that i was trying to get a shader to emit particles that point north and south with a line texture acting as the particle. Well, i just realized that all i had to do was turn the texture 90 degrees, in a paint program, so that the line becomes a vertical line instead.

 

man... major brain fart...

Link to comment
Share on other sites

Actually, it doesn't work at all.

 

Since the texture is set to always face the player, the effect gets destroyed the moment the camera angle changes.

 

And now the only way to create that speed effect, like the ones in animations and cartoons, is to make a 3dmodel of thin colored bars that would appear behind the player while he/she's moving fast... but i don't feel like doing that right now.

Link to comment
Share on other sites

Yeah i tried to make it work, but the shader particles were never meant to imply direction. When i realized that fact, i instantly remember something i read that said that... oh well... at least i gained a poo load of experience.

 

Hey grmblf, that mod you mentioned alters the oblivion shaders, so if i incorporate that mod into mine then i'll end up changing other people's settings, but there is another way.

 

The Oblivion Graphics Extender plugin for OBSE would let me use custom shaders full screen, but ...then i would have to learn how shader files are made... :(

 

///

 

Oh crap. people already made blur effects with OBGE! i did a search for "blur" at http://www.tesnexus.com/ and i found a few. Funny thing is that i had already downloaded those mods a while ago.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...