News:

If you are a developer, please build MegaGlest on your own and get in touch to contribute (or post your patches on the forums).

Main Menu

particles in tilesets( update: in resources now too)

Started by titi, 1 March 2011, 23:42:34

titi

Particles in tilesets are available with latest svn version now.
Here's an example:

In the tileset you can now specify (multiple)particle systems per model! By this you can have for example vulcanos with and without lava and with lava+smoke. Or magic fog in the forests  ;)
               <object walkable="true">
<model path="models/reed.g3d">
<particles value="true">
<particle-file path="smoke_particles.xml"/>
</particles>
</model>
</object>


The particle system is created like a usual unit particle system ( not all switches make sense of course ):
<?xml version="1.0" standalone="yes"?>
<object-particle-system>
    <texture value="true" path="images/particle.bmp" luminance="true"/>
<mode value="black"/>
<primitive value="quad"/>
<offset x="0" y="0" z="0"/>
<direction x="0.3" y="1" z="0"/>
<color red="1.0" green="0.1" blue="0.1" alpha="1.0" />
<color-no-energy red="0.0" green="0.0" blue="0.0" alpha="1.0" />
    <radius value="1" />
    <size value="2" />
    <size-no-energy value="1.7" />
    <speed value="3.0" />
<gravity value="0"/>
    <emission-rate value="3" />
    <energy-max value="200" />
    <energy-var value="0" />
<relative value="true" />
<relativeDirection value="false" />
    <fixed value="false" />
    <teamcolorNoEnergy value="false" />
    <teamcolorEnergy value="false" />

<!--trajectory type="spiral">
<speed value="14.0"/>
<scale value="1"/>
<frequency value="0.5"/>
</trajectory-->
</object-particle-system>




Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

Excellent Titi! Good job. I'd also like to see the ability to have animated models in tilesets (and, unrelatedly, particle projectile and splash models).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

james876

Looks good, but the flame color is too red, losing sense of reality, it should be natural that, like the Indians campfire flame effect, it is more true!

ultifd

#3
Cool. I don't know why I thought this was already available...hmm...stupid photoshop.  :P
Quote from: james876 on  2 March 2011, 02:09:15
Looks good, but the flame color is too red, losing sense of reality, he should be natural that, like the Indians campfire flame effect, it is more true!
Yes, that's true. But I think those particles were mainly samples ones...or not final ones.

ElimiNator

Quote from: james876 on  2 March 2011, 02:09:15
Looks good, but the flame color is too red, losing sense of reality, it should be natural that, like the Indians campfire flame effect, it is more true!
Yah, just a test. Why would he have fire in the water?

Quote from: titi on  1 March 2011, 23:42:34
Particles in tilesets are available with latest svn version now.
Great!
Get the Vbros': Packs 1, 2, 3, 4, and 5!

will

Quote from: ElimiNator on  2 March 2011, 05:51:26
Yah, just a test. Why would he have fire in the water?

Swamp gas? :)

titi

Currently too many of the particles are calculated and by this it m,ight be a bit slow. I will change that with my next checkin soon.



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-

Are particles calculated by the CPU or GPU?

My stats:
CPU: dual-core 3.0GHz
GPU: Radeon HD 5870 2.2+ terraFLOPs

I just wanna know cause I'm not so good on the CPU end. :look:

Ishmaru

lookin good! :thumbup: Can this be done to resources as well?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

Not on ressources which have their models in the techtree yet ( like gold/stone) but it works on trees. I was planning on adding it for ressources too but its not done yet. (  Glowing ressources..... )
First I need to finish what I have now.

@Archmage: it will affect both cpu and gpu. Particle positions are calculated by the CPU, and the rest is GPU. I just can warn everyone, use it carefully :-D and don't create real fireworks tilesets!  ( But ... it will look interisting if your computer can handle it ... )



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-


Gabbe

WOuld actually be very handy&usefull with a Benchmark tileset..

titi

This is available in ressources too now ( the tech tree specific ones ).
Just define them in the model of a resource, the same way as its done in tilesets.

let the gold glow or the spice shine blue ....



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

claymore

Very nice.  For those who haven't seen it, the Hell tileset has particles now (smoke and lava from volcanoes).

ElimiNator

Get the Vbros': Packs 1, 2, 3, 4, and 5!

ultifd

#15

Just an example...If you're going to watch in full screen, it's best if you watch it in 720P.

Psychedelic_hands

#16
That looks awesome ultifd!
Maybe we could have things like leaves or dust blowing around place?
After the merge maybe we could use GAE shaders and tilesets aswell?

I hope my crappy laptop will beable to keep up.

wciow

That mist looks great  :o

Any chance you could post an xml spoiler for us?
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

titi

its in svn in tileset meadow ( and used as described in the first post of this thread )
http://megaglest.svn.sourceforge.net/viewvc/megaglest/trunk/data/glest_game/tilesets/meadow/

@ultifd: Looks like you love to zoom and move the camera    :O :O :O



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

-Archmage-

Am I the only one going through a huge problem with Firefox/Flash? :look: That video plays as solid green for me.

Anyway, my 5870 is smiling.

ultifd

Nope, and I'm using Firefox 4 RC  :D ! Just try again?

Quote from: wciow on 15 March 2011, 12:34:46
That mist looks great  :o
Let's update Swamp ;) And then we should add it to the megapack!

Omega

Quote from: ElimiNator on  9 March 2011, 16:57:53
Dose volcanic have them too?
I'll add it when GAE adds support for tileset particles (or a merger beta?).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

ultifd

Quote from: Omega on 18 March 2011, 04:13:11
Quote from: ElimiNator on  9 March 2011, 16:57:53
Dose volcanic have them too?
I'll add it when GAE adds support for tileset particles (or a merger beta?).
Why then? All you need to test your tileset is a ~1 MB compressed binary...  ::)

claymore

Quote from: ultifdLet's update Swamp  ;) And then we should add it to the megapack!

Agreed. Swamp would look smashing with mist. Titi, please!! :)