Guest User

Untitled

a guest
May 2nd, 2015
281
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="iso-8859-1" ?>
  2. <ZApplication Name="App" Caption="ZGameEditor application" ClearColor="0.502 0.502 1 1" Camera="ProjectionFrontal" ViewportRatio="2" NoSound="1">
  3. <OnLoaded>
  4. <ZExpression Expression="BkgStretch.Scale.X = 1f*App.ViewportWidth/App.ViewportHeight;"/>
  5. </OnLoaded>
  6. <OnUpdate>
  7. <AnimatorSimple Duration="20" AutoStart="255" Target="matAnim_FrontSource.TextureY" RepeatCount="-1" ToValue="1"/>
  8. <RefreshContent Component="bmpAnim_Gradient"/>
  9. <RefreshContent Component="bmpAnim_Scanlines"/>
  10. </OnUpdate>
  11. <OnRender>
  12. <RenderTransformGroup Name="BkgStretch" Scale="1.3339 1 1">
  13. <Children>
  14. <UseMaterial Material="matAnim_Back"/>
  15. <RenderMesh Mesh="PlaneRectangle"/>
  16. <UseMaterial Material="matAnim_Front"/>
  17. <RenderMesh Mesh="PlaneRectangle"/>
  18. </Children>
  19. </RenderTransformGroup>
  20. </OnRender>
  21. <Content>
  22. <Camera Name="ProjectionFrontal" Comment="No rotation, for interface etc" Kind="1" Position="0 0 10"/>
  23. <Mesh Name="PlaneRectangle">
  24. <Producers>
  25. <MeshBox Grid2DOnly="255"/>
  26. </Producers>
  27. </Mesh>
  28. <Material Name="matAnim_Back" Shading="1" Light="0">
  29. <Textures>
  30. <MaterialTexture Texture="bmpAnim_Gradient" TextureWrapMode="2" TexCoords="1"/>
  31. </Textures>
  32. </Material>
  33. <Bitmap Name="bmpAnim_Gradient" Width="0" Height="0" Filter="1">
  34. <Producers>
  35. <BitmapExpression>
  36. <Expression>
  37. <![CDATA[//X,Y : current coordinate (0..1)
  38. //Pixel : current color (rgb)
  39. //Sample expression: Pixel.R=abs(sin(X*16));
  40.  
  41. Pixel.R = 1-noise2(Y+sin(X),sin(App.Time*0.05*PI)) * (3/1);
  42. Pixel.G = 1-noise2(Y+sin(X),sin(App.Time*0.06*PI)) * (3/1);
  43. Pixel.B = 1-noise2(Y+sin(X),sin(App.Time*0.07*PI)) * (3/1);]]>
  44. </Expression>
  45. </BitmapExpression>
  46. </Producers>
  47. </Bitmap>
  48. <Material Name="matAnim_Front" Shading="1" Light="0" Blend="1">
  49. <Textures>
  50. <MaterialTexture Name="matAnim_FrontSource" Texture="bmpAnim_Scanlines" TextureY="0.53" TextureWrapMode="1" TexCoords="1"/>
  51. </Textures>
  52. </Material>
  53. <Bitmap Name="bmpAnim_Scanlines" Width="1" Height="1" Filter="1">
  54. <Producers>
  55. <BitmapExpression>
  56. <Expression>
  57. <![CDATA[//X,Y : current coordinate (0..1)
  58. //Pixel : current color (rgb)
  59. //Sample expression: Pixel.R=abs(sin(X*16));
  60.  
  61. Pixel.A = (round(Y*31.5)&1);
  62.  
  63. Pixel.R = 1-noise2(Y*sin(X),sin(App.Time*0.07*PI)) * (3/1);
  64. Pixel.G = 1-noise2(Y*cos(X),sin(App.Time*0.06*PI)) * (3/1);
  65. Pixel.B = 1-noise2(X*sin(Y),sin(App.Time*0.08*PI)) * (3/1);]]>
  66. </Expression>
  67. </BitmapExpression>
  68. </Producers>
  69. </Bitmap>
  70. </Content>
  71. </ZApplication>
RAW Paste Data