OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: POVRay Explosions
View page
Source of version: 5
(current)
A little pov-ray script to generate explosion effects and similar plasma things for use as textures on billboards. Replace in the following pov script: * __TURBULENCE__ by a float of how turbulent the effect should be, maybe 0.2 + 0.6 * frand() * __TURBSTART__ by a float to be used as seed for the effect maybe 100 * frand() (can be animated when stepping with stepsize < 1.0 or so) * __EMISSION__ by a float how bright the effect should be, maybe 0.6 + 0.5 * frand() * __COLORMAP__ by a colormap, like this: {CODE(wrap="1",colors="povray")}[ 0.000 0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] [ 0.270 0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ] [ 0.280 0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] [ 0.470 0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ] [ 0.480 0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] [ 0.680 0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ] [ 0.690 0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ] [ 0.880 0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ] [ 0.890 1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]{CODE} Here is the .pov file : {CODE(wrap="1",colors="povray")}// Persistence of Vision Raytracer Version 3.5 Scene Description File // //******************************************* global_settings { //max_trace_level 5 } #include "colors.inc" camera { location <0,0,-2.3> //angle 90 right <1,0,0> up <0,1,0> // clock } background { color rgb <0,0,0> } sphere { < 0, 0, 0>, 4 // pigment { rgbt 1 } // surface of sphere is transparent pigment { rgbt 1 } // surface of sphere is transparent interior { media { emission __EMISSION__ intervals 1 samples 33 method 3 density { spherical ramp_wave translate (__TURBSTART__ + clock*1.0)*y // replace 1.0 = t by time for animation warp { turbulence __TURBULENCE__ } translate -(__TURBSTART__ + clock*1.0)*y // replace -1.0 = -t by time for animation color_map { [0.0 color rgb <0, 0, 0>] __COLORMAP__ } } scale 0.7 } } //translate 25*y hollow }{CODE} I also made a php script to generate lots of random explosions over night, so I can pick out the good ones later, for that and a few more notes on povray see [http://ghoulsblade.schattenkind.net/wiki/index.php/Povray] samples: ||{IMG(src="img/wiki_up/Gb_plasma03.jpg",thumb="y",button="y",rel="box[g]")}{IMG}|{IMG(src="img/wiki_up/Gb_plasma02.jpg",thumb="y",button="y",rel="box[g]")}{IMG}|{IMG(src="img/wiki_up/Gb_plasma01.jpg",thumb="y",button="y",rel="box[g]")}{IMG}|| I generated a few thousands of those, they can be downloaded (including source/breed .pov files) under [http://ghoulsblade.schattenkind.net/files/pov/povray_exploder/] (feel free to use what you like, they are under public domain). They can also be generated to create nice spacy skyboxes.
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
61 online users