Revision: 575
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=575&view=rev
Author: andy_miller
Date: 2008-02-18 03:42:58 -0800 (Mon, 18 Feb 2008)
Log Message:
-----------
Updates to ParticleUniverse media
Added Paths:
-----------
trunk/python-ogre/demos/particleuniverse/media/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/gui/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/gui/puviewer.layout
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_burst.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_explosion.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_flame.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_fxpression.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_generic.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lightning.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lod.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_rain.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_stone.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_tornado.material
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/fxpression.mesh
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/pu_stone.mesh
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_11_20.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_1_10.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_21_30.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_explosion.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_flame.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_fxpression.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_generic.pua
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_lightning.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_lod.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_rain.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_tornado.pu
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_mist_01_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_smoke_01_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_smoke_02_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_star_01_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_star_02_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/128x128/pu_water_01_128x128.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_10_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_11_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_12_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_13_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_14_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_15_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_16_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_17_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_flare_23_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/256x256/pu_smoke_01_256x256.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/32x32/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/32x32/pu_rain_01.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_dot_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_dot_02_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_dot_03_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_dot_04_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_explode_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_fire_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_flare_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_flare_02_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_flare_03_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_ice_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_nucleus.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_smoke_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_smoke_02_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_01_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_02_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_03_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_04_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_05_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/64x64/pu_star_06_64x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/crate6.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_barrel.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_blue_ball.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_circle.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_dirt_256x512.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_dot_5x5.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_flame.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_green_ball.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_hart.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_lightning_20x64.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_plate.jpg
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_red_ball.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_ribbontrail.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_sand_336x330.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_428x427.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_black_192x192.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_brown_336x330.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_grey_312x312.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_grey_336x330.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_smoke_red_192x192.png
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/pu_stone.jpeg
trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/textures/various/sand.jpeg
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/gui/puviewer.layout
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/gui/puviewer.layout (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/gui/puviewer.layout 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,78 @@
+<?xml version="1.0" ?>
+<GUILayout>
+<Window Type="DefaultGUISheet" Name="root">
+ <Window Type="DefaultGUISheet" Name="ParticleUniverseViewer">
+ <Property Name="UnifiedSize" Value="{{1,0},{1,0}}" />
+
+ <Window Type="TaharezLook/FrameWindow" Name="ParticleUniverseViewer/WindowPropertiesWindow">
+ <Property Name="UnifiedSize" Value="{{0.25,0},{0.8,0}}" />
+ <Property Name="UnifiedPosition" Value="{{0,0},{0,0}}" />
+ <Property Name="TitlebarEnabled" Value="true" />
+ <Property Name="CloseButtonEnabled" Value="false" />
+ <Property Name="Text" Value="Particle Universe Viewer" />
+
+ <Window Type="TaharezLook/Listbox" Name="ParticleUniverseViewer/ListboxTemplates">
+ <Property Name="UnifiedPosition" Value="{{0.05,0},{0.05,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.9,0},{0.46,0}}" />
+ </Window>
+
+ <Window Type="TaharezLook/StaticText" Name="ParticleUniverseViewer/SelectedName">
+ <Property Name="UnifiedPosition" Value="{{0.05,0},{0.52,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.9,0},{0.05,0}}" />
+ <Property Name="BackgroundEnabled" Value="True" />
+ </Window>
+
+ <Window Type="TaharezLook/Button" Name="ParticleUniverseViewer/ButtonStart">
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.58,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ <Property Name="Text" Value="Start" />
+ </Window>
+
+ <Window Type="TaharezLook/Button" Name="ParticleUniverseViewer/ButtonPause">
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.64,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ <Property Name="Text" Value="Pause" />
+ </Window>
+
+ <Window Type="TaharezLook/Button" Name="ParticleUniverseViewer/ButtonResume">
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.70,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ <Property Name="Text" Value="Resume" />
+ </Window>
+
+ <Window Type="TaharezLook/Button" Name="ParticleUniverseViewer/ButtonStop">
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.76,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ <Property Name="Text" Value="Stop" />
+ </Window>
+
+ <Window Type="TaharezLook/Button" Name="ParticleUniverseViewer/ButtonQuit">
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.82,0}}" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ <Property Name="Text" Value="Quit" />
+ </Window>
+
+ <Window Type="TaharezLook/Checkbox" Name="ParticleUniverseViewer/CheckResetCamera" >
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.88,0}}" />
+ <Property Name="Text" Value="Reset Camera" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ </Window>
+
+ <Window Type="TaharezLook/Checkbox" Name="ParticleUniverseViewer/CheckSkybox" >
+ <Property Name="UnifiedPosition" Value="{{0.1,0},{0.94,0}}" />
+ <Property Name="Text" Value="Skybox" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedSize" Value="{{0.8,0},{0.05,0}}" />
+ </Window>
+ </Window>
+ </Window>
+</Window>
+
+</GUILayout>
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_burst.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_burst.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_burst.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,33 @@
+material ParticleUniverse/GreenBall
+{
+ technique
+ {
+ pass
+ {
+ depth_write off
+ scene_blend alpha_blend
+ texture_unit
+ {
+ texture pu_green_ball.png
+ }
+ }
+ }
+}
+
+material ParticleUniverse/BurstFlare
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend add
+ texture_unit
+ {
+ texture pu_dot_03_64x64.png
+ }
+ }
+ }
+}
+
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_explosion.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_explosion.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_explosion.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,73 @@
+material ParticleUniverse/ExplosionFire
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend add
+ fog_override true
+
+ texture_unit
+ {
+ texture pu_smoke_02_128x128.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+material ParticleUniverse/Nucleus
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend add
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_nucleus.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+material ParticleUniverse/Debris
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend add
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_fire_01_64x64.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+material ParticleUniverse/Dirt
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend alpha_blend
+ texture_unit
+ {
+ texture pu_dirt_256x512.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_flame.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_flame.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_flame.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,56 @@
+material ParticleUniverse/Flame
+{
+ technique
+ {
+ pass
+ {
+ scene_blend add
+ depth_write off
+ texture_unit
+ {
+ texture pu_flame.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+material ParticleUniverse/Fire
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend add
+ depth_write off
+ texture_unit
+ {
+ texture pu_flame.png
+ tex_address_mode clamp
+ wave_xform scroll_x sine 0 0.3 0 0.15
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+material ParticleUniverse/Smoke
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend alpha_blend
+
+ texture_unit
+ {
+ texture pu_smoke_brown_336x330.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_fxpression.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_fxpression.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_fxpression.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,15 @@
+material fxpression/ac3dmat1
+{
+ technique
+ {
+ pass
+ {
+ ambient 1 0.05 0
+ diffuse 1 0.05 0
+ texture_unit
+ {
+ texture pu_plate.jpg
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_generic.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_generic.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_generic.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,119 @@
+material ParticleUniverse/Street
+{
+ technique
+ {
+ pass
+ {
+ texture_unit
+ {
+ texture pu_street.jpeg
+ scale 0.05 0.05
+ }
+ }
+ }
+}
+
+material ParticleUniverse/Sand
+{
+ technique
+ {
+ pass
+ {
+ texture_unit
+ {
+ texture sand.jpeg
+ tex_address_mode mirror
+ }
+ }
+ }
+}
+
+material ParticleUniverse/ColourFlare
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend alpha_blend
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_star_06_64x64.png
+ }
+ }
+ }
+}
+
+material ParticleUniverse/Crate
+{
+ technique
+ {
+ pass
+ {
+ texture_unit
+ {
+ texture crate6.png
+ }
+ }
+ }
+}
+
+material ParticleUniverse/Star
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend add
+ fog_override true
+
+ texture_unit
+ {
+ texture pu_flare_12_256x256.png
+ tex_address_mode clamp
+ }
+ }
+ }
+}
+
+material ParticleUniverse/RibbonTrail
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend add
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_ribbontrail.png 1d
+ tex_address_mode clamp
+ filtering none
+ }
+ }
+ }
+}
+
+material ParticleUniverse/Hart
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend alpha_blend
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_hart.png
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lightning.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lightning.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lightning.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,17 @@
+material ParticleUniverse/Lightning
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ scene_blend alpha_blend
+ depth_write off
+
+ texture_unit
+ {
+ texture pu_lightning_20x64.png
+ }
+ }
+ }
+}
\ No newline at end of file
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lod.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lod.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_lod.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,15 @@
+material ParticleUniverse/RustyBarrel
+{
+ technique
+ {
+ pass
+ {
+ depth_write off
+ scene_blend alpha_blend
+ texture_unit
+ {
+ texture pu_barrel.png
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_rain.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_rain.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_rain.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,31 @@
+material ParticleUniverse/Circle
+{
+ technique
+ {
+ pass
+ {
+ depth_write off
+ scene_blend alpha_blend
+ texture_unit
+ {
+ texture pu_circle.png
+ }
+ }
+ }
+}
+
+material ParticleUniverse/Rain_01
+{
+ technique
+ {
+ pass
+ {
+ scene_blend add
+ depth_write off
+ texture_unit
+ {
+ texture pu_rain_01.png
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_stone.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_stone.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_stone.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,18 @@
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+material ParticleUniverse/Stone
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ texture_unit
+ {
+ texture pu_stone.jpeg
+ scale 0.5 0.5
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_tornado.material
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_tornado.material (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/material/pu_tornado.material 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,20 @@
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+material ParticleUniverse/Tornado
+{
+ technique
+ {
+ pass
+ {
+ lighting off
+ depth_write off
+ scene_blend alpha_blend
+
+ texture_unit
+ {
+ texture pu_sand_336x330.png
+ }
+ }
+ }
+}
+//-----------------------------------------------------------------------------------------------------------------------------------------------
+
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/fxpression.mesh
===================================================================
(Binary files differ)
Property changes on: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/fxpression.mesh
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/pu_stone.mesh
===================================================================
(Binary files differ)
Property changes on: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/models/pu_stone.mesh
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_11_20.pu
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_11_20.pu (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_11_20.pu 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,461 @@
+// ---------------------------------------------------------------------------------------------------------------
+// example_011:
+// - This is a simple particle system that demonstrates the dynamic behaviour of emission rate and velocity.
+// Adding control points, the emission rate and velocity are defined as a curve within the interval of 0..8 seconds.
+// ---------------------------------------------------------------------------------------------------------------
+system example_011
+{
+ technique
+ {
+ renderer Billboard
+ {
+ billboard_type oriented_shape
+ billboard_origin bottom_center
+ }
+ material ParticleUniverse/GreenBall
+ default_particle_width 2
+ default_particle_height 2
+ visual_particle_quota 500
+ emitter Point
+ {
+ emission_rate dyn_curved_spline
+ {
+ control_point 0 5
+ control_point 2 20
+ control_point 4 200
+ control_point 6 30
+ control_point 8 0
+ }
+ angle 25
+ direction 0 1 0
+ velocity dyn_curved_spline
+ {
+ control_point 0 100
+ control_point 2 200
+ control_point 4 400
+ control_point 6 100
+ control_point 8 0
+ }
+ time_to_live dyn_random
+ {
+ min 2
+ max 6
+ }
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+ affector Align
+ {
+ align_aff_resize true
+
+ }
+ }
+}
+
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_012:
+// - With the use of the Jet affector, it possible to give the velocity another non-linear boost.
+// ---------------------------------------------------------------------------------------------------------------
+system example_012
+{
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/BurstFlare
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 2000
+ emitter SphereSurface
+ {
+ sphere_surface_em_radius 100
+ auto_direction true
+ emission_rate 100
+ velocity 0
+ time_to_live 4
+ duration 2
+ }
+
+ // Wait 2 seconds until the handler is activated.
+ observer OnTime
+ {
+ on_time greater_than 2
+ since_start_system true
+ handler DoEnableComponent
+ {
+ enable_component affector_component myJet true
+ }
+ }
+
+ // Change the colour of the particle
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 0 0
+ colour_aff_time_colour 0.6 0 1 1
+ colour_aff_time_colour 1 0 0 1
+ }
+
+ // Change the scale of the particle
+ affector Scale
+ {
+ xyz_scale 10
+ }
+
+ // Apply a boost if the Jet affector is enabled
+ affector Jet myJet
+ {
+ enabled false
+ jet_aff_accel dyn_random
+ {
+ min 1
+ max 20
+ }
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_013:
+// - The Particle Follower makes sure that emitted particle always be kept in the neighbourhood of their
+// predecessors.
+// ---------------------------------------------------------------------------------------------------------------
+system example_013
+{
+ scale 0.5 0.5 0.5
+ scale_velocity 0.5
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/GreenBall
+ default_particle_width 30
+ default_particle_height 30
+ visual_particle_quota 1000
+ emitter Box
+ {
+ emission_rate 20
+ angle 90
+ direction 0 1 0
+ velocity 400
+ time_to_live 7
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -80 0
+ }
+ affector ParticleFollower
+ {
+ follower_min_distance 60
+ follower_max_distance 300
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_014:
+// - The Mesh Surface Emitter emits particles on the surface of a mesh.
+// ---------------------------------------------------------------------------------------------------------------
+system example_014
+{
+ technique
+ {
+ position 0 0 1200
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/GreenBall
+ default_particle_width 0.5
+ default_particle_height 0.5
+ visual_particle_quota 5000
+ emitter MeshSurface
+ {
+ emission_rate 5000
+ force_emission true
+ mesh_surface_mesh_name ogrehead.mesh
+ mesh_surface_distribution heterogeneous_2
+ time_to_live 10
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_015:
+// - Particles collide with the SphereCollider and bounce, while their velocity and rotation speed decrease.
+// ---------------------------------------------------------------------------------------------------------------
+system example_015
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 50
+ default_particle_height 50
+ visual_particle_quota 3000
+ emitter Box
+ {
+ position 0 0 0
+ box_em_width 300
+ box_em_height 10
+ box_em_depth 300
+ emission_rate 20
+ angle 10
+ direction 0 1 0
+ velocity 200
+ time_to_live 7
+ }
+ affector SphereCollider
+ {
+ position 0 400 0
+ sphere_collider_radius 300
+ collision_intersection point
+ collision_type flow
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_016:
+// - Scale Affector, using separate scaling for x and y in combination with control points, to simulate an
+// explosion type of effect (fast scaling at the start).
+// ---------------------------------------------------------------------------------------------------------------
+system example_016
+{
+
+ technique
+ {
+ renderer Billboard
+ {
+ billboard_type oriented_self
+ billboard_origin bottom_center
+ }
+ material ParticleUniverse/Dirt
+ default_particle_width 1
+ default_particle_height 6
+ visual_particle_quota 3000
+ emitter Point
+ {
+ position 0 0 0
+ emission_rate 10
+ force_emission true
+ angle 60
+ direction 0 1 0
+ velocity dyn_random
+ {
+ min 10
+ max 30
+ }
+ time_to_live 4
+ }
+ affector Scale
+ {
+ // Start with fast expansion
+ x_scale dyn_curved_linear
+ {
+ control_point 0 400
+ control_point 0.2 200
+ control_point 0.4 100
+ control_point 0.6 50
+ control_point 4 0
+ }
+ y_scale dyn_curved_linear
+ {
+ control_point 0 1000
+ control_point 0.2 500
+ control_point 0.4 200
+ control_point 0.6 100
+ control_point 4 0
+ }
+ }
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 1 1
+ colour_aff_time_colour 0.4 1 1 1 1
+ colour_aff_time_colour 0.5 1 1 1 0
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_017:
+// - PlaneCollider
+// ---------------------------------------------------------------------------------------------------------------
+system example_017
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 120
+ default_particle_height 120
+ visual_particle_quota 3000
+ emitter Box
+ {
+ position 0 400 0
+ box_em_width 500
+ box_em_height 10
+ box_em_depth 500
+ emission_rate 5
+ angle 40
+ direction 1 -1 0
+ velocity 50
+ time_to_live 10
+ }
+ observer OnVelocity
+ {
+ // Don\xB4t move anymore if the velocity is low
+ velocity_threshold less_than 3
+ handler DoFreeze {}
+ }
+ affector PlaneCollider
+ {
+ position 0 -200 0
+ plane_collider_normal 0 1 0
+ collision_intersection point
+ collision_type bounce
+
+ // friction and bouncyness decrease rotation speed and velocity
+ collision_friction 0.7
+ collision_bouncyness 0.7
+
+ }
+ affector TextureRotator
+ {
+ // Decrease of rotation speed if a particle collides is only possible if the particle controls
+ // its own rotation speed.
+ tex_rot_use_own_rotation true
+ tex_rot_speed 10
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -1200 0
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_018:
+// - With the OnCount observer the number of emitted particles are managed precisely.
+// ---------------------------------------------------------------------------------------------------------------
+system example_018
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Hart
+ default_particle_width 50
+ default_particle_height 50
+ emitter Point
+ {
+ emission_rate 50
+ angle 360
+ direction 0 1 0
+ velocity 400
+ time_to_live 5
+ }
+ observer OnCount
+ {
+ count_threshold greater_than 200
+ handler DoStopSystem {}
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_019:
+// - BoxCollider.
+// ---------------------------------------------------------------------------------------------------------------
+system example_019
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 5000
+
+ emitter Box
+ {
+ position 100 300 100
+ box_em_width 300
+ box_em_height 10
+ box_em_depth 300
+ emission_rate 1000
+ angle 50
+ direction -1 -2 -1
+ velocity 200
+ time_to_live 15
+ }
+ affector BoxCollider
+ {
+ position 0 100 0
+ box_collider_width 150
+ box_collider_height 150
+ box_collider_depth 150
+ collision_intersection box
+ collision_type bounce
+ collision_bouncyness 0.2
+ }
+ // Make sure that an emitted particle is white at the start
+ observer OnEmission
+ {
+ // This handler causes the 'colourReset' affector to be called only once
+ handler DoAffector
+ {
+ force_affector colourReset
+ }
+ }
+ // If the particle collides, it will turn red
+ observer OnCollision
+ {
+ // This handler causes the 'colourCollision' affector to be called only once
+ handler DoAffector
+ {
+ force_affector colourCollision
+ }
+ }
+ affector Colour colourReset
+ {
+ enabled false
+ colour_aff_time_colour 0 1 1 1
+ }
+ affector Colour colourCollision
+ {
+ enabled false
+ colour_aff_time_colour 0 1 0 0
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_020:
+// - Randomiser (affector)
+// ---------------------------------------------------------------------------------------------------------------
+system example_020
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 50
+ default_particle_height 50
+ emitter Point
+ {
+ emission_rate 2
+ angle 360
+ direction 0 1 0
+ velocity 1
+ time_to_live 10
+ }
+ affector Randomiser
+ {
+ rand_aff_max_deviation_x 200
+ rand_aff_max_deviation_y 200
+ rand_aff_max_deviation_z 200
+ rand_aff_time_step 0.1
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_1_10.pu
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_1_10.pu (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_1_10.pu 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,402 @@
+// ---------------------------------------------------------------------------------------------------------------
+// Define some aliasses for convenience
+// ---------------------------------------------------------------------------------------------------------------
+alias $PointEmitter
+{
+ emitter Point
+ {
+ emission_rate 50
+ angle 25
+ direction 0 1 0
+ velocity 220
+ time_to_live 3
+ }
+}
+alias $LinearForce
+{
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_001:
+// - fixed_timeout
+// - nonvisible_update_timeout
+// - iteration_interval
+// - use emitter and affector alias
+// Example will present shocking movement, because the iteration_interval is set high
+// ---------------------------------------------------------------------------------------------------------------
+system example_001
+{
+ fixed_timeout 10
+ nonvisible_update_timeout 3
+ iteration_interval 0.1
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/GreenBall
+ default_particle_width 20
+ default_particle_height 20
+ visual_particle_quota 500
+ use_alias $PointEmitter
+ use_alias $LinearForce
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_002:
+// - duration
+// - repeat/delay
+// ---------------------------------------------------------------------------------------------------------------
+system example_002
+{
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Hart
+ default_particle_width 50
+ default_particle_height 50
+ visual_particle_quota 500
+ emitter Point
+ {
+ // Disable the emitter initially. The repeat_delay will enable it again after \xB4x\xB4 seconds.
+ enabled false
+ emission_rate 50
+ duration dyn_random
+ {
+ min 0.1
+ max 3
+ }
+ repeat_delay dyn_random
+ {
+ min 0.1
+ max 3
+ }
+ angle 25
+ direction 0 1 0
+ velocity 220
+ time_to_live 3
+ }
+ use_alias $LinearForce
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_003:
+// - position
+// See how position of the technique, emitter and the SceneNode are combined.
+// ---------------------------------------------------------------------------------------------------------------
+system example_003
+{
+ scale 0.5 0.5 0.5
+ scale_velocity 0.5
+ technique
+ {
+ position 500 0 0
+ material ParticleUniverse/GreenBall
+ default_particle_width 20
+ default_particle_height 20
+ visual_particle_quota 500
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ emitter Point
+ {
+ position 0 200 0
+ emission_rate 50
+ angle 25
+ direction 0 1 0
+ velocity 200
+ time_to_live 40
+ duration 2
+ }
+ affector Gravity
+ {
+ position -500 400 0
+ gravity 50000
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_004:
+// - Sphere surface emitter
+// - Colour Affector
+// ---------------------------------------------------------------------------------------------------------------
+system example_004
+{
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 20
+ default_particle_height 20
+ visual_particle_quota 1500
+ emitter SphereSurface
+ {
+ position 0 200 0
+ sphere_surface_em_radius 100
+ emission_rate 250
+ velocity 0
+ time_to_live 1.8
+ }
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 0 1
+ colour_aff_time_colour 1 1 0 0 0
+ }
+ affector Gravity
+ {
+ position 0 200 0
+ gravity 5000
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_005:
+// - Vertex emitter
+// The particles are emitted along the outline of the mesh. If all particles are gone, the particle system stops.
+// ---------------------------------------------------------------------------------------------------------------
+system example_005
+{
+ scale 5 5 5
+ scale_velocity 5
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 5
+ default_particle_height 5
+ visual_particle_quota 1500
+ emitter Vertex
+ {
+ vertex_em_mesh_name athene.mesh
+ vertex_em_step 30
+ vertex_em_segments 5
+ vertex_em_iterations 5
+ position 0 0 0
+ emission_rate 400
+ angle 360
+ direction 0 1 0
+ velocity 2
+ time_to_live 7
+ }
+ observer OnClear
+ {
+ handler DoStopSystem {}
+ }
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 0
+ colour_aff_time_colour 1 0 0 0
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_006:
+// - Entity Renderer
+// ---------------------------------------------------------------------------------------------------------------
+system example_006
+{
+ technique
+ {
+ default_particle_width 80
+ default_particle_height 80
+ default_particle_depth 10
+ visual_particle_quota 10
+ material ParticleUniverse/Crate
+
+ renderer Entity
+ {
+ entity_renderer_mesh_name WoodPallet.mesh
+ }
+
+ emitter Point
+ {
+ emission_rate 5
+ angle 40
+ direction 0 1 0
+ velocity 300
+ time_to_live 10
+ }
+
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+ affector Align
+ {
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_007:
+// - emitted emitters
+// This is the Particle Universe version of Ogre's fireworks particle system
+// ---------------------------------------------------------------------------------------------------------------
+system example_007
+{
+ technique
+ {
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 1000
+ emitted_emitter_quota 10
+ use_alias $defaultBillboardRenderer
+ material Examples/Flare
+
+ emitter Box
+ {
+ emits emitter_particle explosion
+ angle 20
+ emission_rate 1000
+ direction 0 1 0
+ velocity 260
+ time_to_live 3
+ }
+
+ emitter Point explosion
+ {
+ enabled false
+ angle 360
+ emission_rate 1000
+ time_to_live 2
+ direction 0 1 0
+ velocity 80
+ duration 0.1
+ repeat_delay dyn_random
+ {
+ min 2
+ max 3
+ }
+ }
+
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ force_aff_application add
+ }
+
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 0
+ colour_aff_time_colour 0.5 1 0 0
+ colour_aff_time_colour 0.9 0 0 1
+ colour_aff_time_colour 1 0 0 0
+ }
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_008:
+// - OnQuota observer
+// This particle system emits visual particles until the visual particle quota has been reached. This activates
+// the event handler, which disables the emitter from further emission of particles. This way the emitter only
+// emits the number of particles defined by the quota and then stops.
+// ---------------------------------------------------------------------------------------------------------------
+system example_008
+{
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+
+ material ParticleUniverse/Hart
+ default_particle_width 50
+ default_particle_height 50
+ visual_particle_quota 200
+
+ emitter Point myPointEmitter
+ {
+ emission_rate 100
+ angle 25
+ direction 0 1 0
+ velocity 220
+ time_to_live 5
+ }
+
+ observer OnQuota
+ {
+ observe_particle_type visual_particle
+ handler DoEnableComponent
+ {
+ enable_component emitter_component myPointEmitter false
+ }
+ }
+
+ use_alias $LinearForce
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_009:
+// - Circle emitter
+// ---------------------------------------------------------------------------------------------------------------
+system example_009
+{
+ technique
+ {
+ // Use the billboard renderer defined in the *.pua script
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/GreenBall
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 5000
+ emitter Circle
+ {
+ emission_rate 1000
+ auto_direction true
+ time_to_live 5
+ circle_em_radius 100
+ circle_em_random false
+ circle_em_step 0.2
+ velocity 70
+ }
+ affector SineForce
+ {
+ force_aff_vector 0 80 0
+ sinef_aff_frequency_min 5
+ sinef_aff_frequency_max 5
+ }
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_010:
+// - Circle emitter
+// ---------------------------------------------------------------------------------------------------------------
+system example_010
+{
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/Star
+ default_particle_width 20
+ default_particle_height 20
+ visual_particle_quota 2000
+ emitter Circle
+ {
+ emission_rate 300
+ direction 0 1 0
+ time_to_live 4
+ circle_em_radius 100
+ velocity 20
+ }
+ affector Colour
+ {
+ colour_aff_time_colour 0 0 1 0
+ colour_aff_time_colour 0.8 0 0 1
+ colour_aff_time_colour 1 0 0 0
+ }
+ affector Jet
+ {
+ jet_aff_accel dyn_random
+ {
+ min 0.1
+ max 1
+ }
+ }
+ }
+}
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_21_30.pu
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_21_30.pu (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_example_21_30.pu 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,255 @@
+// ---------------------------------------------------------------------------------------------------------------
+// example_021:
+// ---------------------------------------------------------------------------------------------------------------
+system example_021
+{
+ technique
+ {
+ position -800 0 0
+ default_particle_width 30
+ default_particle_height 30
+ visual_particle_quota 5000
+ emitted_emitter_quota 1
+ use_alias $defaultBillboardRenderer
+ material Examples/Flare
+
+ emitter Point
+ {
+ emits emitter_particle Flares
+ emission_rate 1
+ direction 1 0 0
+ velocity 2000
+ time_to_live 5
+ }
+
+ emitter SphereSurface Flares
+ {
+ angle 360
+ sphere_surface_em_radius 100
+ auto_direction true
+ emission_rate 3000
+ time_to_live dyn_random
+ {
+ min 1
+ max 3
+ }
+ velocity dyn_random
+ {
+ min 60
+ max 250
+ }
+ }
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 0 1
+ colour_aff_time_colour 0.5 1 0 0
+ colour_aff_time_colour 0.9 0 1 0
+ colour_aff_time_colour 1 0 0 0
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_022: RibbonTrailRenderer
+// ---------------------------------------------------------------------------------------------------------------
+system example_022
+{
+ technique
+ {
+ // Set the quota low
+ visual_particle_quota 40
+ material ParticleUniverse/RibbonTrail
+ renderer RibbonTrail
+ {
+ ribbontrail_vertex_colours true
+ ribbontrail_max_elements 60
+ ribbontrail_length 600
+ ribbontrail_width 10
+ ribbontrail_random_initial_colour true
+ ribbontrail_colour_change 0.8 0.8 0.8 0.8
+ }
+ emitter Point
+ {
+ emission_rate 10
+ angle 360
+ direction 0 1 0
+ velocity 1500
+ time_to_live 40
+ }
+ affector Gravity
+ {
+ position 0 -200 -100
+ gravity 550000
+ }
+ affector Gravity
+ {
+ position 0 200 100
+ gravity 550000
+ }
+ }
+}
+// ---------------------------------------------------------------------------------------------------------------
+// example_023:
+// - Exclude emitters
+// - PathFollower
+// ---------------------------------------------------------------------------------------------------------------
+system example_023
+{
+ technique
+ {
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 3000
+ emitted_emitter_quota 10
+ use_alias $defaultBillboardRenderer
+ material Examples/Flare
+
+ emitter Point
+ {
+ emits emitter_particle flares
+ angle 360
+ emission_rate 4
+ direction 0 0.1 0
+ velocity 200
+ time_to_live 4
+ }
+
+ emitter Point flares
+ {
+ angle 360
+ emission_rate 200
+ time_to_live 2
+ direction 0 1 0
+ velocity 80
+ }
+
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 1
+ colour_aff_time_colour 0.6 1 1 0
+ colour_aff_time_colour 0.9 1 0 0
+ colour_aff_time_colour 1 0 0 0
+ }
+ affector PathFollower
+ {
+ exclude_emitter "flares"
+ path_follower_point -40 -10 -40
+ path_follower_point -10 50 40
+ path_follower_point -10 -20 -10
+ path_follower_point 40 -50 70
+ path_follower_point -100 -10 -60
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_024a and example_024b:
+// This is combination of Particle Systems where the emitter of Particle System 'example_024a' emits
+// Particle System 'example_024b' particles.
+// With the use of the 'keep_local' attribute, the 'star' material sticks to the emitted particle system.
+// ---------------------------------------------------------------------------------------------------------------
+system example_024a
+{
+ technique
+ {
+ emitted_system_quota 10
+ visual_particle_quota 10
+ material ParticleUniverse/RibbonTrail
+ renderer RibbonTrail
+ {
+ ribbontrail_vertex_colours true
+ ribbontrail_max_elements 40
+ ribbontrail_length 1000
+ ribbontrail_width 15
+ ribbontrail_random_initial_colour true
+ ribbontrail_colour_change 0.8 0.8 0.8 0.8
+ }
+
+ emitter Point
+ {
+ emits system_particle example_024b
+ angle 60
+ emission_rate 1
+ direction 0 1 0
+ velocity 400
+ time_to_live 7
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -200 0
+ }
+ }
+}
+
+system example_024b
+{
+ technique
+ {
+ default_particle_width 160
+ default_particle_height 160
+ visual_particle_quota 1
+ material ParticleUniverse/Star
+ use_alias $defaultBillboardRenderer
+ keep_local true
+
+ emitter Point
+ {
+ angle 360
+ emission_rate 1
+ force_emission true
+ direction 0 0 0
+ velocity 0
+ time_to_live 7
+ }
+ }
+ technique
+ {
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 100
+ use_alias $defaultBillboardRenderer
+ material Examples/Flare
+
+ emitter Point
+ {
+ angle 360
+ emission_rate 50
+ direction 0 -1 0
+ velocity 100
+ time_to_live 2
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -200 0
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------------------------
+// example_025: PositionEmitter
+// ---------------------------------------------------------------------------------------------------------------
+system example_025
+{
+ technique
+ {
+ default_particle_width 100
+ default_particle_height 100
+ use_alias $defaultBillboardRenderer
+ material Examples/Flare
+ emitter Position
+ {
+ emission_rate 10
+ time_to_live 3
+ random_position true
+ add_position 200 100 300
+ add_position 0 400 0
+ add_position -200 200 -100
+ add_position 100 -200 0
+ }
+ affector LinearForce
+ {
+ force_aff_vector 0 -200 0
+ }
+ }
+}
+
Added: trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_explosion.pu
===================================================================
--- trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_explosion.pu (rev 0)
+++ trunk/python-ogre/demos/particleuniverse/media/ParticleUniverse/scripts/pu_explosion.pu 2008-02-18 11:42:58 UTC (rev 575)
@@ -0,0 +1,197 @@
+// ------------------------------------------- Begin: Explosion system -------------------------------------------
+// The explosion system is an example of a complex particle system.
+// Note, that the Projectiles and debris are not emitted immediately, but only after some time to make the effect
+// look a bit more realistic.
+// ---------------------------------------------------------------------------------------------------------------
+system explosionSystem
+{
+ // --------------- The Flame Burst ---------------
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ material ParticleUniverse/ExplosionFire
+ default_particle_width 10
+ default_particle_height 10
+ visual_particle_quota 500
+ emitter SphereSurface BurstEmitter
+ {
+ emission_rate 20
+ auto_direction true
+ sphere_surface_em_radius 5
+ velocity 100
+ time_to_live 2
+ }
+
+ // Change the colour of the burst
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 0.95
+ colour_aff_time_colour 0.5 0.18 0.05 0.01
+ colour_aff_time_colour 1 0 0 0
+ }
+
+ // Let it grow fast, equally in all dimensions
+ affector Scale
+ {
+ xyz_scale 200
+ }
+
+ // After 0.7 seconds, the emitters stops
+ observer OnTime
+ {
+ on_time greater_than 0.7
+ since_start_system true
+ handler DoEnableComponent
+ {
+ enable_component emitter_component BurstEmitter false
+ }
+ }
+ }
+
+ // --------------- Projectiles (this technique is responsible for emitting the projectiles) ---------------
+ technique
+ {
+ use_alias $defaultBillboardRenderer
+ emitted_technique_quota 6
+
+ // Emit the technique that is responsible for the projectiles
+ emitter Point NucleusEmitter
+ {
+ enabled false
+ emission_rate 6
+ emits technique_particle NucleusTechnique
+ force_emission true
+ angle 80
+ direction 0 1 0
+ velocity 300
+ time_to_live 10
+ }
+
+ // Apply some kind of gravity
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+
+ // After 0.3 seconds, the emitter starts
+ observer OnTime
+ {
+ on_time greater_than 0.3
+ since_start_system true
+ handler DoEnableComponent
+ {
+ enable_component emitter_component NucleusEmitter true
+ }
+ }
+ }
+
+ // --------------- The emitted Projectile ---------------
+ technique NucleusTechnique
+ {
+ material ParticleUniverse/Nucleus
+ default_particle_width 15
+ default_particle_height 15
+ visual_particle_quota 500
+
+ // 'oriented_self' doesn't work, because the direction of the particle is zero.
+ // So use the default settings
+ use_alias $defaultBillboardRenderer
+ emitter Point
+ {
+ emission_rate 100
+ direction 0 -1 0
+ angle 360
+ time_to_live 3
+ velocity 2
+ }
+
+ // Change the texture from red to grey and fading out
+ affector Colour
+ {
+ colour_aff_time_colour 0 0.5 0.4 0.2
+ colour_aff_time_colour 0.1 0.5 0.2 0.05
+ colour_aff_time_colour 0.2 0.1 0.1 0.1
+ colour_aff_time_colour 1 0 0 0
+ }
+
+ // Rotate the texture to keep variation
+ affector TextureRotator
+ {
+ tex_rot_use_own_rotation true
+ tex_rot_speed dyn_random
+ {
+ min 0.1
+ max 1
+ }
+ tex_rot_rotation dyn_random
+ {
+ min 1
+ max 90
+ }
+ }
+
+ // Make the projectile smaller over time
+ affector Scale
+ {
+ xyz_scale -5
+ }
+ }
+
+ // --------------- Debris ---------------
+ technique
+ {
+ material ParticleUniverse/Debris
+ visual_particle_quota 500
+ renderer Billboard
+ {
+ billboard_type oriented_self
+ }
+
+ // Emit the debris
+ emitter Point DebrisEmitter
+ {
+ enabled false
+ emission_rate 100
+ force_emission true
+ direction 0 -1 0
+ angle 360
+ time_to_live 5
+ particle_height dyn_random
+ {
+ min 2
+ max 20
+ }
+ particle_width 3
+ velocity dyn_random
+ {
+ min 100
+ max 180
+ }
+ }
+
+ // Start with a normal coloured texture and fade out
+ affector Colour
+ {
+ colour_aff_time_colour 0 1 1 1
+ colour_aff_time_colour 1 0 0 0
+ }
+
+ // Apply some kind of gravity
+ affector LinearForce
+ {
+ force_aff_vector 0 -100 0
+ }
+
+ // After 0.3 seconds, the emitters starts
+ observer OnTime
+ {
+ on_time greater_than 0.3
+ since_start_system true
+ handler DoEnableComponent
+ {
+ enable_component emitter_component DebrisEmitter true
+ }
+ }
+ }
+}
+// ---------------------------------------------- End: Explosion system ----------------------------------------------
Added: trunk/python-ogre/demos/particleuniv...
[truncated message content] |