changeset 299:ee8246755369 trunk

[svn] - add a demo preset for the new programmable scope.
author nenolod
date Wed, 22 Nov 2006 22:25:50 -0800
parents fd4dcd3fe08f
children f3dcc1235c79
files ChangeLog src/paranormal/presets/Makefile src/paranormal/presets/nenolod_-_scopefun.pnv
diffstat 3 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 22 21:57:19 2006 -0800
+++ b/ChangeLog	Wed Nov 22 22:25:50 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-23 05:57:19 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [650]
+  - make linedrawing code support offscreen surfaces more robustly.
+  
+  trunk/src/paranormal/drawing.c |    6 ++++++
+  1 file changed, 6 insertions(+)
+
+
 2006-11-23 05:44:54 +0000  William Pitcock <nenolod@nenolod.net>
   revision [648]
   - better default values for Scope.
--- a/src/paranormal/presets/Makefile	Wed Nov 22 21:57:19 2006 -0800
+++ b/src/paranormal/presets/Makefile	Wed Nov 22 22:25:50 2006 -0800
@@ -17,6 +17,7 @@
 	nenolod_-_value_replace_fun.pnv:$(presetsdir)	\
 	nenolod_-_rush.pnv:$(presetsdir)		\
 	nenolod_-_worms.pnv:$(presetsdir)		\
+	nenolod_-_scopefun.pnv:$(presetsdir)		\
 	nenolod_-_smoke.pnv:$(presetsdir)		\
 	nenolod_-_swarm.pnv:$(presetsdir)		\
 	nenolod_-_interlaced.pnv:$(presetsdir)		\
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/paranormal/presets/nenolod_-_scopefun.pnv	Wed Nov 22 22:25:50 2006 -0800
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<paranormal_preset>
+ <container_simple>
+  <container_once>
+   <cmap_bwgradient>
+    <low_index> 0 </low_index>
+    <high_index> 255 </high_index>
+    <color> 0, 191, 255 </color>
+   </cmap_bwgradient>
+  </container_once>
+  <general_invert>
+  </general_invert>
+  <wave_scope>
+   <init_script> n=7;r=0.5;mx=0;my=0;mz=0;dst=2;rx=0;ry=0;rz=0;rdx=1;rdy=1;rdz=1;p=3.14159265;p2=2.0*p;p3=180/p; </init_script>
+   <frame_script> ;rx=rx+rdx;ry=ry+rdy;rz=rz+rdz;xs=sin(rx/p3);ys=sin(ry/p3);zs=sin(rz/p3);xc=cos(rx/p3);yc=cos(ry/p3);zc=cos(rz/p3); </frame_script>
+   <sample_script> x1=value*sin(p2*index);y1=cos(p2*index);z1=r*cos(p2*index);y2=y1*xc-z1*xs;z2=y1*xs+z1*xc;x2=z2*ys+x1*yc;z3=z2*yc-x1*ys;x3=x2*zc-y2*zs;y3=y2*zc+x2*zs;x4=mx+x3;y4=my+y3;z4=mz+z3;x=x4/(1+z4/dst);y=y4/(1+z4/dst); </sample_script>
+   <lines> TRUE </lines>
+  </wave_scope>
+  <general_fade>
+   <amount> 10 </amount>
+  </general_fade>
+  <general_invert>
+  </general_invert>
+ </container_simple>
+</paranormal_preset>
\ No newline at end of file