Skip to content
Browse files

Added 2 new routines and NEWT support to the framework

  • Loading branch information...
1 parent 0fcbb1c commit 7a183f9ad11799538546eee207560859588539c7 @demoscenepassivist committed Sep 14, 2010
Showing with 650 additions and 42 deletions.
  1. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_AccumulationBuffer.bat
  2. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_BasicFragmentShading.bat
  3. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_BasicVertexShading.bat
  4. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_DisplayLists.bat
  5. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_SphereMapping.bat
  6. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_UVUnwrap.bat
  7. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_BasicParticleSystem.bat
  8. +7 −0 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_JuliaSet.bat
  9. +7 −0 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_Mandelbrot.bat
  10. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_ParallaxOcclusionMapping.bat
  11. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_PlaneDeformation.bat
  12. +1 −1 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_Refraction.bat
  13. BIN build_demos_jogamp/jogamp.jar
  14. BIN build_demos_jogamp/libraries/newt.all.jar
  15. BIN build_demos_jogamp/native/newt.dll
  16. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_AccumulationBuffer.bat
  17. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_BasicFragmentShading.bat
  18. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_BasicVertexShading.bat
  19. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_DisplayLists.bat
  20. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_SphereMapping.bat
  21. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_UVUnwrap.bat
  22. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_BasicParticleSystem.bat
  23. +7 −0 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_JuliaSet.bat
  24. +7 −0 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_Mandelbrot.bat
  25. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_ParallaxOcclusionMapping.bat
  26. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_PlaneDeformation.bat
  27. +1 −1 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_Refraction.bat
  28. +1 −1 code_demos_jogamp/build/build.xml
  29. BIN code_demos_jogamp/libraries/newt.all.jar
  30. BIN code_demos_jogamp/native/newt.dll
  31. +36 −0 code_demos_jogamp/shaders/fractalshaders/juliaset.fs
  32. +58 −0 code_demos_jogamp/shaders/fractalshaders/mandelbrot.fs
  33. +12 −7 code_demos_jogamp/src/framework/base/BaseFrameBufferObjectRendererExecutor.java
  34. +265 −11 code_demos_jogamp/src/framework/base/BaseGlobalEnvironment.java
  35. +9 −2 code_demos_jogamp/src/framework/init/Bootstrap.java
  36. +56 −1 code_demos_jogamp/src/framework/util/TextureUtils.java
  37. +45 −0 code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_JuliaSet.java
  38. +108 −0 code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_Mandelbrot.java
  39. +12 −0 readme.txt
  40. BIN shop_jogamp_templates/10x10_apparel_jogamp_logo_fadeout.png
  41. BIN shop_jogamp_templates/10x10_apparel_jogamp_logo_fadeout.psd
  42. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue.png
  43. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue.psd
  44. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue_vertical.png
  45. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue_vertical.psd
  46. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_magenta.png
  47. BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_magenta.psd
  48. BIN shop_jogamp_templates/10x10_apparel_original.jpg
  49. BIN shop_jogamp_templates/3x3_bear_jogamp_symbol_blue.png
  50. BIN shop_jogamp_templates/3x3_bear_jogamp_symbol_blue.psd
  51. BIN shop_jogamp_templates/3x3_bear_original.jpg
  52. BIN shop_jogamp_templates/8.31x3_bev_jogamp_symbol_blue.png
  53. BIN shop_jogamp_templates/8.31x3_bev_jogamp_symbol_blue.psd
  54. BIN shop_jogamp_templates/8.31x3_bev_jogl_jocl_joal_logo.png
  55. BIN shop_jogamp_templates/8.31x3_bev_jogl_jocl_joal_logo.psd
  56. BIN shop_jogamp_templates/8.31x3_bev_original.jpg
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_AccumulationBuffer.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_AccumulationBuffer -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_AccumulationBuffer -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_BasicFragmentShading.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicFragmentShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicFragmentShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_BasicVertexShading.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicVertexShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicVertexShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_DisplayLists.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_DisplayLists -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_DisplayLists -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=NEWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_SphereMapping.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_SphereMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_SphereMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL2_UVUnwrap.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_UVUnwrap -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_UVUnwrap -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=NEWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_BasicParticleSystem.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_BasicParticleSystem -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_BasicParticleSystem -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
7 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_JuliaSet.bat
@@ -0,0 +1,7 @@
+echo on
+cd .
+set PATH=.;.\runtime\bin\;.\native\;
+set JAVA_HOME=.\runtime\;
+.\runtime\bin\java.exe -version
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_JuliaSet -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=FALSE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
+SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
7 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_Mandelbrot.bat
@@ -0,0 +1,7 @@
+echo on
+cd .
+set PATH=.;.\runtime\bin\;.\native\;
+set JAVA_HOME=.\runtime\;
+.\runtime\bin\java.exe -version
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Mandelbrot -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=FALSE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
+SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_ParallaxOcclusionMapping.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_ParallaxOcclusionMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_ParallaxOcclusionMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_PlaneDeformation.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_PlaneDeformation -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_PlaneDeformation -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 build_demos_jogamp/Jogamp_Standalone_JOGL_GL3_Refraction.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Refraction -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Refraction -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
BIN build_demos_jogamp/jogamp.jar
Binary file not shown.
View
BIN build_demos_jogamp/libraries/newt.all.jar
Binary file not shown.
View
BIN build_demos_jogamp/native/newt.dll
Binary file not shown.
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_AccumulationBuffer.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_AccumulationBuffer -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_AccumulationBuffer -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_BasicFragmentShading.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicFragmentShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicFragmentShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_BasicVertexShading.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicVertexShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL2_BasicVertexShading -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_DisplayLists.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_DisplayLists -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_DisplayLists -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=NEWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_SphereMapping.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_SphereMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_SphereMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL2_UVUnwrap.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_UVUnwrap -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.fixedfunctionpipeline.GL2_UVUnwrap -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=NEWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_BasicParticleSystem.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_BasicParticleSystem -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_BasicParticleSystem -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
7 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_JuliaSet.bat
@@ -0,0 +1,7 @@
+echo on
+cd .
+set PATH=.;.\runtime\bin\;.\native\;
+set JAVA_HOME=.\runtime\;
+.\runtime\bin\java.exe -version
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_JuliaSet -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=FALSE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
+SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
7 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_Mandelbrot.bat
@@ -0,0 +1,7 @@
+echo on
+cd .
+set PATH=.;.\runtime\bin\;.\native\;
+set JAVA_HOME=.\runtime\;
+.\runtime\bin\java.exe -version
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Mandelbrot -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=FALSE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
+SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_ParallaxOcclusionMapping.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_ParallaxOcclusionMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_ParallaxOcclusionMapping -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=TRUE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_PlaneDeformation.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_PlaneDeformation -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_PlaneDeformation -FRAMERATE=AUTO -FULLSCREEN=TRUE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/Jogamp_Standalone_JOGL_GL3_Refraction.bat
@@ -3,5 +3,5 @@ cd .
set PATH=.;.\runtime\bin\;.\native\;
set JAVA_HOME=.\runtime\;
.\runtime\bin\java.exe -version
-.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Refraction -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE
+.\runtime\bin\java.exe -client -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -XX:+AggressiveOpts -Xcomp -Xnoclassgc -XX:+UseConcMarkSweepGC -Xms64m -Xmx512m -jar jogamp.jar -RESOLUTION=AUTO -ROUTINE=jogamp.routine.jogl.programmablepipeline.GL3_Refraction -FRAMERATE=AUTO -FULLSCREEN=FALSE -VSYNC=TRUE -MULTISAMPLING=FALSE -SAMPLEBUFFERS=4 -ANISOTROPICFILTERING=FALSE -ANISOTROPYLEVEL=16.0 -FRAMESKIP=TRUE -FRAMECAPTURE=FALSE -WINDOWTOOLKIT=AWT
SET /P consolewait="PRESS RETURN TO KILL CONSOLE ..."
View
2 code_demos_jogamp/build/build.xml
@@ -47,7 +47,7 @@
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Created-By" value="1.6.0_18 (Sun Microsystems Inc.)"/>
<attribute name="Main-Class" value="framework.init.Bootstrap"/>
- <attribute name="Class-Path" value=". .\libraries\gluegen-rt.jar .\libraries\jogl.all.jar .\libraries\nativewindow.all.jar .\libraries\jna.jar"/>
+ <attribute name="Class-Path" value=". .\libraries\gluegen-rt.jar .\libraries\jogl.all.jar .\libraries\nativewindow.all.jar .\libraries\jna.jar .\libraries\newt.all.jar"/>
</manifest>
</jar>
<delete dir="${destination}/framework"/>
View
BIN code_demos_jogamp/libraries/newt.all.jar
Binary file not shown.
View
BIN code_demos_jogamp/native/newt.dll
Binary file not shown.
View
36 code_demos_jogamp/shaders/fractalshaders/juliaset.fs
@@ -0,0 +1,36 @@
+/**
+ ** __ __|_ ___________________________________________________________________________ ___|__ __
+ ** // /\ _ /\ \\
+ ** //____/ \__ __ _____ _____ _____ _____ _____ | | __ _____ _____ __ __/ \____\\
+ ** \ \ / / __| | | __| _ | | _ | | | __| | | __| | /\ \ / /
+ ** \____\/_/ | | | | | | | | | | | __| | | | | | | | | | |__ " \_\/____/
+ ** /\ \ |_____|_____|_____|__|__|_|_|_|__| | | |_____|_____|_____|_____| _ / /\
+ ** / \____\ http://jogamp.org |_| /____/ \
+ ** \ / "' _________________________________________________________________________ `" \ /
+ ** \/____. .____\/
+ **
+ ** Advanced fragment shader doing some kind of GPGPU calculation to render a Julia set fractal
+ ** transformation. The sampler1D is used as LUT to generate colors from the number of iterations.
+ **
+ **/
+
+uniform vec2 resolution;
+uniform float time;
+uniform sampler1D sampler0;
+const float maxiterations = 64.0;
+
+void main(void) {
+ vec2 p =-1.0+2.0*gl_FragCoord.xy/resolution.xy;
+ //complex plane location/movement setup ...
+ //inspired by IQ's (http://www.iquilezles.org) cos/sin based movement ...
+ vec2 cc = vec2(cos(0.15*time),sin(0.15*time*1.423));
+ vec2 z = p*vec2(1.33,1.0);
+ float iterations;
+ for(iterations=0; iterations<maxiterations; iterations++) {
+ z = cc + vec2(z.x*z.x-z.y*z.y,2.0*z.x*z.y);
+ if(dot(z,z)>100.0) {
+ break;
+ }
+ }
+ gl_FragColor = vec4(texture1D(sampler0, iterations/maxiterations).rgb, 1.0);
+}
View
58 code_demos_jogamp/shaders/fractalshaders/mandelbrot.fs
@@ -0,0 +1,58 @@
+/**
+ ** __ __|_ ___________________________________________________________________________ ___|__ __
+ ** // /\ _ /\ \\
+ ** //____/ \__ __ _____ _____ _____ _____ _____ | | __ _____ _____ __ __/ \____\\
+ ** \ \ / / __| | | __| _ | | _ | | | __| | | __| | /\ \ / /
+ ** \____\/_/ | | | | | | | | | | | __| | | | | | | | | | |__ " \_\/____/
+ ** /\ \ |_____|_____|_____|__|__|_|_|_|__| | | |_____|_____|_____|_____| _ / /\
+ ** / \____\ http://jogamp.org |_| /____/ \
+ ** \ / "' _________________________________________________________________________ `" \ /
+ ** \/____. .____\/
+ **
+ ** Advanced fragment shader doing some kind of GPGPU calculation to render a Mandelbrot fractal
+ ** zoom. Zooms in up to the limit of single precision floats on the center point in the complex
+ ** plane given by xcenter/ycenter. The sampler1D is used as LUT to generate colors from the
+ ** number of iterations.
+ **
+ **/
+
+uniform vec2 resolution;
+uniform float time;
+uniform sampler1D sampler0;
+const float maxiterations = 512.0;
+const float xcenter = 0.3245046418497685;
+const float ycenter = 0.04855101129280834;
+
+void main() {
+ //complex plane location/movement setup ...
+ //inspired by IQ's (http://www.iquilezles.org) cos/sin based zoom ...
+ vec2 position = -1.0 + 2.0 * gl_FragCoord.xy / resolution.xy;
+ position.x *= resolution.x/resolution.y;
+ vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / resolution.xy;
+ p.x *= resolution.x/resolution.y;
+ float zoom = .62+.38*sin(.1*time);
+ float coa = cos(0.1*(1.0-zoom)*time);
+ float sia = sin(0.1*(1.0-zoom)*time);
+ zoom = pow(zoom,9.0);
+ vec2 xy = vec2(p.x*coa-p.y*sia,p.x*sia+p.y*coa);
+ vec2 cc = vec2(xcenter,ycenter)+xy*zoom;
+ float real = cc.x;
+ float imaginary = cc.y;
+ float constantreal = real;
+ float constantimaginary = imaginary;
+ //calculate the iterated function system ...
+ float r2 = 0.0;
+ float iterations;
+ for (iterations = 0.0; iterations<maxiterations && r2<4.0; ++iterations) {
+ float tempreal = real;
+ real = (tempreal*tempreal)-(imaginary*imaginary)+constantreal;
+ imaginary = 2.0*tempreal*imaginary+constantimaginary;
+ r2 = (real*real)+(imaginary*imaginary);
+ }
+ //base the color on the number of iterations using the 1D sampler as LUT ...
+ if (r2<4.0) {
+ gl_FragColor = vec4(0.0,0.0,0.0,1.0);
+ } else {
+ gl_FragColor = vec4(texture1D(sampler0, iterations/maxiterations).rgb, 1.0);
+ }
+}
View
19 code_demos_jogamp/src/framework/base/BaseFrameBufferObjectRendererExecutor.java
@@ -27,7 +27,7 @@
public class BaseFrameBufferObjectRendererExecutor {
private int mFrameBufferObjectID;
- private int mColourTextureID;
+ private int mColorTextureID;
private int mDepthTextureID;
private int mTextureWidth;
private int mTextureHeight;
@@ -38,7 +38,12 @@ public BaseFrameBufferObjectRendererExecutor(int inTextureWidth,int inTextureHei
mTextureHeight = inTextureHeight;
mBaseFrameBufferObjectRendererInterface = inBaseFrameBufferObjectRendererInterface;
}
-
+
+ public int getColorTextureID() { return mColorTextureID; }
+ public int getDepthTextureID() { return mDepthTextureID; }
+ public int getWidth() { return mTextureWidth; }
+ public int getHeight() { return mTextureHeight; }
+
public void init(GL2 inGL,GLU inGLU,GLUT inGLUT) {
//allocate the framebuffer object ...
int[] result = new int[1];
@@ -47,8 +52,8 @@ public void init(GL2 inGL,GLU inGLU,GLUT inGLUT) {
inGL.glBindFramebuffer(GL_FRAMEBUFFER, mFrameBufferObjectID);
//allocate the colour texture ...
inGL.glGenTextures(1, result, 0);
- mColourTextureID = result[0];
- inGL.glBindTexture(GL_TEXTURE_2D, mColourTextureID);
+ mColorTextureID = result[0];
+ inGL.glBindTexture(GL_TEXTURE_2D, mColorTextureID);
inGL.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
inGL.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
inGL.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP_TO_EDGE);
@@ -64,7 +69,7 @@ public void init(GL2 inGL,GLU inGLU,GLUT inGLUT) {
inGL.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP_TO_EDGE);
inGL.glTexImage2D(GL_TEXTURE_2D,0,GL_DEPTH_COMPONENT32,mTextureWidth,mTextureHeight,0,GL_DEPTH_COMPONENT,GL_UNSIGNED_INT,null);
//attach the textures to the framebuffer
- inGL.glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,mColourTextureID,0);
+ inGL.glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,mColorTextureID,0);
inGL.glFramebufferTexture2D(GL_FRAMEBUFFER,GL_DEPTH_ATTACHMENT,GL_TEXTURE_2D,mDepthTextureID,0);
inGL.glBindFramebuffer(GL_FRAMEBUFFER, 0);
//check if fbo is set up correctly ...
@@ -89,7 +94,7 @@ public void renderToFrameBuffer(int inFrameNumber,GL2 inGL,GLU inGLU,GLUT inGLUT
public void prepareForColouredRendering(GL2 inGL, int inTextureUnitID) {
inGL.glPushAttrib(GL_TEXTURE_BIT);
inGL.glActiveTexture(inTextureUnitID);
- inGL.glBindTexture(GL_TEXTURE_2D, mColourTextureID);
+ inGL.glBindTexture(GL_TEXTURE_2D, mColorTextureID);
//set the texture up to be used for painting a surface ...
int textureTarget = GL_TEXTURE_2D;
inGL.glEnable(textureTarget);
@@ -136,7 +141,7 @@ public void renderFBOAsFullscreenBillboard(GL2 inGL,GLU inGLU,GLUT inGLUT) {
public void cleanup(GL2 inGL,GLU inGLU,GLUT inGLUT) {
inGL.glDeleteFramebuffers(1, Buffers.newDirectIntBuffer(mFrameBufferObjectID));
- inGL.glDeleteTextures(1, Buffers.newDirectIntBuffer(mColourTextureID));
+ inGL.glDeleteTextures(1, Buffers.newDirectIntBuffer(mColorTextureID));
inGL.glDeleteTextures(1, Buffers.newDirectIntBuffer(mDepthTextureID));
mBaseFrameBufferObjectRendererInterface.cleanup_FBORenderer(inGL,inGLU,inGLUT);
}
View
276 code_demos_jogamp/src/framework/base/BaseGlobalEnvironment.java
@@ -17,10 +17,11 @@
**/
import java.awt.*;
-import java.awt.event.*;
import javax.media.opengl.*;
import javax.media.opengl.awt.*;
import com.jogamp.opengl.util.*;
+import com.jogamp.newt.opengl.*;
+//import javax.media.nativewindow.*;
public class BaseGlobalEnvironment {
@@ -61,6 +62,232 @@ public static BaseGlobalEnvironment getInstance() {
}
public void initGLEnvironment() {
+ BaseLogging.getInstance().info("CHOOSING WINDOWTOOLKIT ... PREFERED TOOLKIT NAME="+getWindowToolkitName());
+ if (getWindowToolkitName().equalsIgnoreCase("AWT")) {
+ BaseLogging.getInstance().info("USING AWT AS WINDOWTOOLKIT ...");
+ initGLEnvironment_AWT();
+ } else if (getWindowToolkitName().equalsIgnoreCase("NEWT")) {
+ BaseLogging.getInstance().info("USING NEWT AS WINDOWTOOLKIT ...");
+ initGLEnvironment_NEWT();
+ } else {
+ BaseLogging.getInstance().fatalerror("UNKNOWN WINDOWTOOLKIT!!!");
+ }
+ }
+
+ public void initGLEnvironment_NEWT() {
+ //get current display mode/desktop display mode ...
+ DisplayMode tDesktopDisplayMode = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
+ BaseLogging.getInstance().info("DESKTOP DISPLAYMODE "+BaseWindowToolkitUtils.convertDisplayModeToString(tDesktopDisplayMode));
+ //use desktop resolution but force 32bit@60hz ... (;
+ DisplayMode tDesktopDisplayModeNormalized = new DisplayMode(tDesktopDisplayMode.getWidth(),tDesktopDisplayMode.getHeight(),32,60);
+ //print graphics capabilities ... values are very unreliable X-)
+ BaseWindowToolkitUtils.printGraphicsCapabilities();
+ GLCapabilities tGLCapabilities = new GLCapabilities(GLProfile.getDefault());
+ //create NEWT native window ... :-0
+ GLWindow tNEWTWindow = GLWindow.create(tGLCapabilities);
+ tNEWTWindow.setTitle("Jogamp.org - JOGL Demos - NEWT");
+ //enable/configure multisampling support ...
+ if (preferMultiSampling()) {
+ tGLCapabilities.setSampleBuffers(true);
+ tGLCapabilities.setNumSamples(getNumberOfSamplingBuffers());
+ tGLCapabilities.setAccumAlphaBits(16);
+ tGLCapabilities.setAccumBlueBits(16);
+ tGLCapabilities.setAccumGreenBits(16);
+ tGLCapabilities.setAccumRedBits(16);
+ }
+ BaseGLEventListener tBaseGLEventListener = new BaseGLEventListener();
+ tNEWTWindow.addGLEventListener(tBaseGLEventListener);
+ final Animator tAnimator;
+ //if vsync is requested use the vsync framerate ... otherwise use custom framerate ...
+ if (BaseGlobalEnvironment.getInstance().wantsVSync() || mCommandLineParameter_FrameRate==Integer.MAX_VALUE) {
+ tAnimator = new Animator(tNEWTWindow);
+ tAnimator.setRunAsFastAsPossible(true);
+ } else {
+ //i'm currently not sure if it is a good idea to use system-clock based timing ... :+)
+ tAnimator = new FPSAnimator(tNEWTWindow,mCommandLineParameter_FrameRate,true);
+ }
+ tNEWTWindow.addWindowListener(new com.jogamp.newt.event.WindowAdapter() {
+ public void windowDestroyNotify(com.jogamp.newt.event.WindowEvent e) {
+ tAnimator.stop();
+ System.exit(0);
+ }
+ });
+ tNEWTWindow.addKeyListener(new com.jogamp.newt.event.KeyAdapter() {
+ public void keyTyped(com.jogamp.newt.event.KeyEvent e) {
+ if (e.getKeyChar()=='\u001B') {
+ BaseLogging.getInstance().info("--------------------------------------------");
+ BaseLogging.getInstance().info("FINAL PARAMETER VALUES FROM KEYLISTENERS:");
+ BaseLogging.getInstance().info("--------------------------------------------");
+ BaseLogging.getInstance().info("mParameterKey_INT_12="+mParameterKey_INT_12);
+ BaseLogging.getInstance().info("mParameterKey_INT_34="+mParameterKey_INT_34);
+ BaseLogging.getInstance().info("mParameterKey_INT_56="+mParameterKey_INT_56);
+ BaseLogging.getInstance().info("mParameterKey_INT_78="+mParameterKey_INT_78);
+ BaseLogging.getInstance().info("mParameterKey_INT_90="+mParameterKey_INT_90);
+ BaseLogging.getInstance().info("mParameterKey_INT_QW="+mParameterKey_INT_QW);
+ BaseLogging.getInstance().info("mParameterKey_INT_ER="+mParameterKey_INT_ER);
+ BaseLogging.getInstance().info("mParameterKey_INT_TZ="+mParameterKey_INT_TZ);
+ BaseLogging.getInstance().info("mParameterKey_INT_UI="+mParameterKey_INT_UI);
+ BaseLogging.getInstance().info("mParameterKey_INT_OP="+mParameterKey_INT_OP);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_AS="+mParameterKey_FLOAT_AS);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_DF="+mParameterKey_FLOAT_DF);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_GH="+mParameterKey_FLOAT_GH);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_JK="+mParameterKey_FLOAT_JK);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_LÖ="+mParameterKey_FLOAT_LÖ);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_YX="+mParameterKey_FLOAT_YX);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_CV="+mParameterKey_FLOAT_CV);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_BN="+mParameterKey_FLOAT_BN);
+ BaseLogging.getInstance().info("mParameterKey_FLOAT_MCOMMA="+mParameterKey_FLOAT_MCOMMA);
+ BaseLogging.getInstance().info("--------------------------------------------");
+ tAnimator.stop();
+ System.exit(0);
+ } else if (e.getKeyChar()=='1') {
+ mParameterKey_INT_12++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_12="+mParameterKey_INT_12);
+ } else if (e.getKeyChar()=='2') {
+ mParameterKey_INT_12--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_12="+mParameterKey_INT_12);
+ } else if (e.getKeyChar()=='3') {
+ mParameterKey_INT_34++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_34="+mParameterKey_INT_34);
+ } else if (e.getKeyChar()=='4') {
+ mParameterKey_INT_34--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_34="+mParameterKey_INT_34);
+ } else if (e.getKeyChar()=='5') {
+ mParameterKey_INT_56++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_56="+mParameterKey_INT_56);
+ } else if (e.getKeyChar()=='6') {
+ mParameterKey_INT_56--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_56="+mParameterKey_INT_56);
+ } else if (e.getKeyChar()=='7') {
+ mParameterKey_INT_78++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_78="+mParameterKey_INT_78);
+ } else if (e.getKeyChar()=='8') {
+ mParameterKey_INT_78--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_78="+mParameterKey_INT_78);
+ } else if (e.getKeyChar()=='9') {
+ mParameterKey_INT_90++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_90="+mParameterKey_INT_90);
+ } else if (e.getKeyChar()=='0') {
+ mParameterKey_INT_90--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_90="+mParameterKey_INT_90);
+ } else if (e.getKeyChar()=='q') {
+ mParameterKey_INT_QW++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_QW="+mParameterKey_INT_QW);
+ } else if (e.getKeyChar()=='w') {
+ mParameterKey_INT_QW--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_QW="+mParameterKey_INT_QW);
+ } else if (e.getKeyChar()=='e') {
+ mParameterKey_INT_ER++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_ER="+mParameterKey_INT_ER);
+ } else if (e.getKeyChar()=='r') {
+ mParameterKey_INT_ER--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_ER="+mParameterKey_INT_ER);
+ } else if (e.getKeyChar()=='t') {
+ mParameterKey_INT_TZ++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_TZ="+mParameterKey_INT_TZ);
+ } else if (e.getKeyChar()=='z') {
+ mParameterKey_INT_TZ--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_TZ="+mParameterKey_INT_TZ);
+ } else if (e.getKeyChar()=='u') {
+ mParameterKey_INT_UI++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_UI="+mParameterKey_INT_UI);
+ } else if (e.getKeyChar()=='i') {
+ mParameterKey_INT_UI--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_UI="+mParameterKey_INT_UI);
+ } else if (e.getKeyChar()=='o') {
+ mParameterKey_INT_OP++;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_OP="+mParameterKey_INT_OP);
+ } else if (e.getKeyChar()=='p') {
+ mParameterKey_INT_OP--;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_INT_OP="+mParameterKey_INT_OP);
+ } else if (e.getKeyChar()=='a') {
+ mParameterKey_FLOAT_AS+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_AS="+mParameterKey_FLOAT_AS);
+ } else if (e.getKeyChar()=='s') {
+ mParameterKey_FLOAT_AS-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_AS="+mParameterKey_FLOAT_AS);
+ } else if (e.getKeyChar()=='d') {
+ mParameterKey_FLOAT_DF+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_DF="+mParameterKey_FLOAT_DF);
+ } else if (e.getKeyChar()=='f') {
+ mParameterKey_FLOAT_DF-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_DF="+mParameterKey_FLOAT_DF);
+ } else if (e.getKeyChar()=='g') {
+ mParameterKey_FLOAT_GH+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_GH="+mParameterKey_FLOAT_GH);
+ } else if (e.getKeyChar()=='h') {
+ mParameterKey_FLOAT_GH-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_GH="+mParameterKey_FLOAT_GH);
+ } else if (e.getKeyChar()=='j') {
+ mParameterKey_FLOAT_JK+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_JK="+mParameterKey_FLOAT_JK);
+ } else if (e.getKeyChar()=='k') {
+ mParameterKey_FLOAT_JK-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_JK="+mParameterKey_FLOAT_JK);
+ } else if (e.getKeyChar()=='l') {
+ mParameterKey_FLOAT_LÖ+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_LÖ="+mParameterKey_FLOAT_LÖ);
+ } else if (e.getKeyChar()=='ö') {
+ mParameterKey_FLOAT_LÖ-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_LÖ="+mParameterKey_FLOAT_LÖ);
+ } else if (e.getKeyChar()=='y') {
+ mParameterKey_FLOAT_YX+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_YX="+mParameterKey_FLOAT_YX);
+ } else if (e.getKeyChar()=='x') {
+ mParameterKey_FLOAT_YX-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_YX="+mParameterKey_FLOAT_YX);
+ } else if (e.getKeyChar()=='c') {
+ mParameterKey_FLOAT_CV+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_CV="+mParameterKey_FLOAT_CV);
+ } else if (e.getKeyChar()=='v') {
+ mParameterKey_FLOAT_CV-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_CV="+mParameterKey_FLOAT_CV);
+ } else if (e.getKeyChar()=='b') {
+ mParameterKey_FLOAT_BN+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_BN="+mParameterKey_FLOAT_BN);
+ } else if (e.getKeyChar()=='n') {
+ mParameterKey_FLOAT_BN-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_BN="+mParameterKey_FLOAT_BN);
+ } else if (e.getKeyChar()=='m') {
+ mParameterKey_FLOAT_MCOMMA+=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_MCOMMA="+mParameterKey_FLOAT_MCOMMA);
+ } else if (e.getKeyChar()==',') {
+ mParameterKey_FLOAT_MCOMMA-=0.1f;
+ BaseLogging.getInstance().info("CHANGE PARAMETER KEY VARIABLE mParameterKey_FLOAT_MCOMMA="+mParameterKey_FLOAT_MCOMMA);
+ } else {
+ BaseLogging.getInstance().info("UNKNOWN KEY TYPED - KEYCHAR="+e.getKeyChar());
+ }
+ }
+ });
+ if (mCommandLineParameter_FullScreen) {
+ BaseLogging.getInstance().info("SWITCHING TO NEWT FULLSCREEN MODE!");
+ //as NEWT is currently not capable of changing the display resolution choose the desktop resolution as display mode ... X-)
+ mScreenWidth = tDesktopDisplayMode.getWidth();
+ mScreenHeight = tDesktopDisplayMode.getHeight();
+ tNEWTWindow.setUndecorated(true);
+ tNEWTWindow.setVisible(true);
+ tNEWTWindow.setFullscreen(true);
+ mUsesFullScreenMode = true;
+ } else {
+ BaseLogging.getInstance().info("FULLSCREEN MODE NOT SUPPORTED ... RUNNING IN WINDOWED MODE INSTEAD!");
+ DisplayMode tDisplayMode;
+ if (mCommandLineParameter_DisplayMode!=null) {
+ tDisplayMode = mCommandLineParameter_DisplayMode;
+ } else {
+ //choose best preferred display mode ...
+ tDisplayMode = BaseWindowToolkitUtils.getBestDisplayModeWithBackupModes(BaseWindowToolkitUtils.DEFAULT_DISPLAYMODES,BaseWindowToolkitUtils.BACKUP_DISPLAYMODES,tDesktopDisplayModeNormalized);
+ }
+ mScreenWidth = tDisplayMode.getWidth();
+ mScreenHeight = tDisplayMode.getHeight();
+ tNEWTWindow.setVisible(true);
+ tNEWTWindow.setSize(tDisplayMode.getWidth(),tDisplayMode.getHeight());
+ tNEWTWindow.setPosition((tDesktopDisplayMode.getWidth()-tDisplayMode.getWidth())/2, (tDesktopDisplayMode.getHeight()-tDisplayMode.getHeight())/2);
+ mUsesFullScreenMode = false;
+ }
+ tAnimator.start();
+ }
+
+ public void initGLEnvironment_AWT() {
//get current display mode/desktop display mode ...
DisplayMode tDesktopDisplayMode = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
BaseLogging.getInstance().info("DESKTOP DISPLAYMODE "+BaseWindowToolkitUtils.convertDisplayModeToString(tDesktopDisplayMode));
@@ -69,13 +296,30 @@ public void initGLEnvironment() {
//print graphics capabilities ... values are very unreliable X-)
BaseWindowToolkitUtils.printGraphicsCapabilities();
//create native window container and AWT GLCanvas ... :-0
- final Frame tFrame = new Frame("Jogamp.org - JOGL Demos");
+ final Frame tFrame = new Frame("Jogamp.org - JOGL Demos - AWT");
GLCapabilities tGLCapabilities = new GLCapabilities(GLProfile.getDefault());
//enable/configure multisampling support ...
if (preferMultiSampling()) {
tGLCapabilities.setSampleBuffers(true);
tGLCapabilities.setNumSamples(getNumberOfSamplingBuffers());
+ tGLCapabilities.setAccumAlphaBits(16);
+ tGLCapabilities.setAccumBlueBits(16);
+ tGLCapabilities.setAccumGreenBits(16);
+ tGLCapabilities.setAccumRedBits(16);
}
+ /*
+ //test method for JOGL2 mutisampling bug: http://jogamp.org/bugzilla/show_bug.cgi?id=410
+ GLCanvas tGLCanvas = new GLCanvas(tGLCapabilities, new GLCapabilitiesChooser() {
+ public int chooseCapabilities(Capabilities cpblts, Capabilities[] cpbltss, int i) {
+ for (Capabilities caps : cpbltss) {
+ System.out.println(caps);
+ }
+ System.out.println("recommended:");
+ System.out.println(cpblts);
+ return i;
+ }
+ }, null, null);
+ */
GLCanvas tGLCanvas = new GLCanvas(tGLCapabilities);
BaseGLEventListener tBaseGLEventListener = new BaseGLEventListener();
tGLCanvas.addGLEventListener(tBaseGLEventListener);
@@ -89,8 +333,8 @@ public void initGLEnvironment() {
//i'm currently not sure if it is a good idea to use system-clock based timing ... :+)
tAnimator = new FPSAnimator(tGLCanvas,mCommandLineParameter_FrameRate,true);
}
- tFrame.addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
+ tFrame.addWindowListener(new java.awt.event.WindowAdapter() {
+ public void windowClosing(java.awt.event.WindowEvent e) {
//run this on another thread than the AWT event queue to make sure the call to Animator.stop() completes before exiting ...
new Thread(new Runnable() {
public void run() {
@@ -100,8 +344,8 @@ public void run() {
}).start();
}
});
- tFrame.addKeyListener(new KeyAdapter() {
- public void keyTyped(KeyEvent e) {
+ tFrame.addKeyListener(new java.awt.event.KeyAdapter() {
+ public void keyTyped(java.awt.event.KeyEvent e) {
if (e.getKeyChar()=='\u001B') {
BaseLogging.getInstance().info("--------------------------------------------");
BaseLogging.getInstance().info("FINAL PARAMETER VALUES FROM KEYLISTENERS:");
@@ -276,7 +520,13 @@ public void run() {
BaseLogging.getInstance().info("FULLSCREEN MODE NOT SUPPORTED ... RUNNING IN WINDOWED MODE INSTEAD!");
tFrame.setIgnoreRepaint(true);
tFrame.setResizable(false);
- DisplayMode tDisplayMode = BaseWindowToolkitUtils.getBestDisplayModeWithBackupModes(BaseWindowToolkitUtils.DEFAULT_DISPLAYMODES,BaseWindowToolkitUtils.BACKUP_DISPLAYMODES,tDesktopDisplayModeNormalized);
+ DisplayMode tDisplayMode;
+ if (mCommandLineParameter_DisplayMode!=null) {
+ tDisplayMode = mCommandLineParameter_DisplayMode;
+ } else {
+ //choose best preferred display mode ...
+ tDisplayMode = BaseWindowToolkitUtils.getBestDisplayModeWithBackupModes(BaseWindowToolkitUtils.DEFAULT_DISPLAYMODES,BaseWindowToolkitUtils.BACKUP_DISPLAYMODES,tDesktopDisplayModeNormalized);
+ }
mScreenWidth = tDisplayMode.getWidth();
mScreenHeight = tDisplayMode.getHeight();
tFrame.setVisible(true);
@@ -287,7 +537,7 @@ public void run() {
}
tAnimator.start();
}
-
+
/* --------------------------------------------------------------------------------------------------------------------------------------------------- */
private int mScreenWidth;
@@ -311,8 +561,9 @@ public void run() {
private boolean mCommandLineParameter_FrameCapture;
private boolean mCommandLineParameter_VSync;
private boolean mCommandLineParameter_FrameSkip;
+ private String mCommandLineParameter_WindowToolkit;
private boolean mUsesFullScreenMode;
-
+
public String getBaseRoutineClassName() { return mCommandLineParameter_BaseRoutineClassName; }
public boolean preferMultiSampling() { return mCommandLineParameter_MultiSampling; }
public int getNumberOfSamplingBuffers() { return mCommandLineParameter_NumberOfSampleBuffers; }
@@ -322,8 +573,9 @@ public void run() {
public boolean wantsVSync() { return mCommandLineParameter_VSync; }
public int getDesiredFramerate() { return mCommandLineParameter_FrameRate; }
public boolean wantsFrameSkip() { return mCommandLineParameter_FrameSkip; }
+ public String getWindowToolkitName() { return mCommandLineParameter_WindowToolkit; }
public boolean usesFullScreenMode() { return mUsesFullScreenMode; }
-
+
public void configureWithUserParameters(
String inBaseRoutineClassName,
int inResolutionX,
@@ -336,7 +588,8 @@ public void configureWithUserParameters(
float inAnisotropyLevel,
boolean inFrameCapture,
boolean inVSync,
- boolean inFrameSkip
+ boolean inFrameSkip,
+ String inWindowToolkitName
) {
mCommandLineParameter_BaseRoutineClassName = inBaseRoutineClassName;
mCommandLineParameter_DisplayMode = (inResolutionX!=-1 && inResolutionY!=-1) ? new DisplayMode(inResolutionX,inResolutionY,32,60) : null;
@@ -349,6 +602,7 @@ public void configureWithUserParameters(
mCommandLineParameter_FrameCapture = inFrameCapture;
mCommandLineParameter_VSync = inVSync;
mCommandLineParameter_FrameSkip = inFrameSkip;
+ mCommandLineParameter_WindowToolkit = inWindowToolkitName;
}
public int getParameterKey_INT_12() { return mParameterKey_INT_12; }
View
11 code_demos_jogamp/src/framework/init/Bootstrap.java
@@ -25,7 +25,8 @@
** -ANISOTROPYLEVEL (=1.0/2.0/4.0/8.0/16.0)
** -FRAMECAPTURE (=TRUE/FALSE)
** -VSYNC (=TRUE/FALSE)
- ** -FRAMESKIP (=TRUE/FALSE)
+ ** -FRAMESKIP (=TRUE/FALSE)
+ ** -WINDOWTOOLKIT (=AWT/NEWT)
**
**/
@@ -53,6 +54,7 @@ public static void main(String args[]) throws Exception {
boolean tFrameCapture = false;
boolean tVSync = true;
boolean tFrameSkip = true;
+ String tWindowToolkitName = null;
if (args.length>0) {
for (int i=0; i<args.length; i++) {
BaseLogging.getInstance().info("PROCESSING CMDLINE PARAMETER ... ARG="+args[i]);
@@ -112,6 +114,10 @@ public static void main(String args[]) throws Exception {
String tFrameSkipParameter = args[i].substring(args[i].indexOf("=")+1,args[i].length());
BaseLogging.getInstance().info("FRAMESKIP ENABLED '"+tFrameSkipParameter+"'");
tFrameSkip = Boolean.parseBoolean(tFrameSkipParameter);
+ } else if(args[i].trim().startsWith("-WINDOWTOOLKIT=")) {
+ String tWindowToolkitParameter = args[i].substring(args[i].indexOf("=")+1,args[i].length());
+ BaseLogging.getInstance().info("WINDOW TOOLKIT TO USE '"+tWindowToolkitParameter+"'");
+ tWindowToolkitName = tWindowToolkitParameter;
} else {
BaseLogging.getInstance().error("ERROR! ILLEGAL ARGUMENT FOUND! ARGUMENT="+args[i]);
}
@@ -127,7 +133,8 @@ public static void main(String args[]) throws Exception {
tAnisotropicFiltering,tAnisotropyLevel,
tFrameCapture,
tVSync,
- tFrameSkip
+ tFrameSkip,
+ tWindowToolkitName
);
EventQueue.invokeLater(new Runnable() {
public void run() {
View
57 code_demos_jogamp/src/framework/util/TextureUtils.java
@@ -16,15 +16,17 @@
**
**/
+import java.awt.*;
import java.awt.image.*;
import java.io.*;
+import java.nio.*;
import javax.imageio.*;
import javax.media.opengl.*;
import com.jogamp.opengl.util.texture.*;
import com.jogamp.opengl.util.texture.awt.*;
import com.jogamp.opengl.util.awt.*;
import framework.base.*;
-import static javax.media.opengl.GL.*;
+import static javax.media.opengl.GL2.*;
public class TextureUtils {
@@ -98,4 +100,57 @@ public static void deleteTextureID(GL2 inGL, int inTextureID) {
inGL.glDeleteTextures(1, new int[] {inTextureID}, 0);
}
+ public static ByteBuffer convertARGBBufferedImageToJOGLRGBADirectByteBuffer(BufferedImage inBufferedImage) {
+ BaseLogging.getInstance().info("CONVERTING ARGB BUFFERED IMAGE TO JOGL RGBA DIRECT BYTE BUFFER "+inBufferedImage.getWidth()+"x"+inBufferedImage.getHeight());
+ ByteBuffer tBufferedImageByteBuffer = ByteBuffer.allocateDirect(inBufferedImage.getWidth()*inBufferedImage.getHeight()*4);
+ tBufferedImageByteBuffer.order(ByteOrder.nativeOrder());
+ int[] tBufferedImage_ARGB = ((DataBufferInt)inBufferedImage.getRaster().getDataBuffer()).getData();
+ for (int i=0; i<tBufferedImage_ARGB.length; i++) {
+ byte tRed = (byte)((tBufferedImage_ARGB[i] >> 16) & 0xFF);
+ byte tGreen = (byte)((tBufferedImage_ARGB[i] >> 8) & 0xFF);
+ byte tBlue = (byte)((tBufferedImage_ARGB[i] ) & 0xFF);
+ byte tAlpha = (byte)((tBufferedImage_ARGB[i] >> 24) & 0xFF);
+ tBufferedImageByteBuffer.put(tRed);
+ tBufferedImageByteBuffer.put(tGreen);
+ tBufferedImageByteBuffer.put(tBlue);
+ tBufferedImageByteBuffer.put(tAlpha);
+ }
+ tBufferedImageByteBuffer.rewind();
+ return tBufferedImageByteBuffer;
+ }
+
+ public static BufferedImage createARGBBufferedImage(int inWidth, int inHeight) {
+ BaseLogging.getInstance().info("CREATING NEW BUFFEREDIMAGE ... "+inWidth+"x"+inHeight);
+ BufferedImage tARGBImageIntermediate = new BufferedImage(inWidth,inHeight, BufferedImage.TYPE_INT_ARGB);
+ fillImageWithTransparentColor(tARGBImageIntermediate);
+ return tARGBImageIntermediate;
+ }
+
+ public static void fillImageWithTransparentColor(Image inImage) {
+ Color TRANSPARENT = new Color(0,0,0,0);
+ fillImageWithColor(inImage,TRANSPARENT);
+ }
+
+ public static void fillImageWithColor(Image inImage,Color inColor) {
+ Graphics2D tGraphics2D = (Graphics2D)inImage.getGraphics();
+ tGraphics2D.setColor(inColor);
+ tGraphics2D.setComposite(AlphaComposite.Src);
+ tGraphics2D.fillRect(0,0,inImage.getWidth(null),inImage.getHeight(null));
+ tGraphics2D.dispose();
+ }
+
+ public static int generateTexture1DFromBufferedImage(GL2 inGL,BufferedImage inBufferedImage,int inBorderMode) {
+ BaseLogging.getInstance().info("GENERATING 1D TEXTURE FROM ARGB BUFFERED IMAGE "+inBufferedImage.getWidth()+"x"+inBufferedImage.getHeight());
+ inGL.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ int t1DTextureID = TextureUtils.generateTextureID(inGL);
+ inGL.glEnable(GL_TEXTURE_1D);
+ inGL.glBindTexture(GL_TEXTURE_1D, t1DTextureID);
+ inGL.glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA, inBufferedImage.getWidth(), 0, GL_RGBA, GL_UNSIGNED_BYTE, TextureUtils.convertARGBBufferedImageToJOGLRGBADirectByteBuffer(inBufferedImage));
+ inGL.glTexParameteri(GL_TEXTURE_1D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
+ inGL.glTexParameteri(GL_TEXTURE_1D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
+ inGL.glTexParameteri(GL_TEXTURE_1D,GL_TEXTURE_WRAP_S,inBorderMode);
+ inGL.glTexParameteri(GL_TEXTURE_1D,GL_TEXTURE_WRAP_T,inBorderMode);
+ return t1DTextureID;
+ }
+
}
View
45 code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_JuliaSet.java
@@ -0,0 +1,45 @@
+package jogamp.routine.jogl.programmablepipeline;
+
+/**
+ ** __ __|_ ___________________________________________________________________________ ___|__ __
+ ** // /\ _ /\ \\
+ ** //____/ \__ __ _____ _____ _____ _____ _____ | | __ _____ _____ __ __/ \____\\
+ ** \ \ / / __| | | __| _ | | _ | | | __| | | __| | /\ \ / /
+ ** \____\/_/ | | | | | | | | | | | __| | | | | | | | | | |__ " \_\/____/
+ ** /\ \ |_____|_____|_____|__|__|_|_|_|__| | | |_____|_____|_____|_____| _ / /\
+ ** / \____\ http://jogamp.org |_| /____/ \
+ ** \ / "' _________________________________________________________________________ `" \ /
+ ** \/____. .____\/
+ **
+ ** Advanced fragment shader demonstration implementing some kind of GPGPU calculation to render
+ ** a Julia set fractal animation. Demonstrates the use of a 1D texture as LUT (using TextureUtils)
+ ** and also makes use of ShaderUtils to ease the handling of vertex&pixel shaders. For an
+ ** impression how this routine looks like see here: http://www.youtube.com/watch?v=_0Qt4C0Zd4I
+ **
+ **/
+
+import java.awt.image.*;
+import framework.util.*;
+import javax.media.opengl.*;
+import javax.media.opengl.glu.*;
+import com.jogamp.opengl.util.gl2.*;
+import static javax.media.opengl.GL2.*;
+
+public class GL3_JuliaSet extends GL3_Mandelbrot {
+
+ public void init_FBORenderer(GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ int tFragmentShader = ShaderUtils.loadFragmentShaderFromFile(inGL,"/shaders/fractalshaders/juliaset.fs");
+ mLinkedShader = ShaderUtils.generateSimple_1xFS_ShaderProgramm(inGL,tFragmentShader);
+ mScreenDimensionUniform2fv = DirectBufferUtils.createDirectFloatBuffer(new float[] {(float)mBaseFrameBufferObjectRendererExecutor.getWidth(), (float)mBaseFrameBufferObjectRendererExecutor.getHeight()});
+ //create BufferedImage to be used as LUT ...
+ BufferedImage tLUT = TextureUtils.createARGBBufferedImage(5,1);
+ //"Mars" from kuler.com
+ tLUT.setRGB(0,0,0x00FFCE00);
+ tLUT.setRGB(1,0,0x00FF9800);
+ tLUT.setRGB(2,0,0x00FF005A);
+ tLUT.setRGB(3,0,0x00AD0626);
+ tLUT.setRGB(4,0,0x003D182B);
+ mLUTTextureID = TextureUtils.generateTexture1DFromBufferedImage(inGL,tLUT,GL_CLAMP);
+ }
+
+}
View
108 code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_Mandelbrot.java
@@ -0,0 +1,108 @@
+package jogamp.routine.jogl.programmablepipeline;
+
+/**
+ ** __ __|_ ___________________________________________________________________________ ___|__ __
+ ** // /\ _ /\ \\
+ ** //____/ \__ __ _____ _____ _____ _____ _____ | | __ _____ _____ __ __/ \____\\
+ ** \ \ / / __| | | __| _ | | _ | | | __| | | __| | /\ \ / /
+ ** \____\/_/ | | | | | | | | | | | __| | | | | | | | | | |__ " \_\/____/
+ ** /\ \ |_____|_____|_____|__|__|_|_|_|__| | | |_____|_____|_____|_____| _ / /\
+ ** / \____\ http://jogamp.org |_| /____/ \
+ ** \ / "' _________________________________________________________________________ `" \ /
+ ** \/____. .____\/
+ **
+ ** Advanced fragment shader demonstration implementing some kind of GPGPU calculation to render
+ ** a Mandelbrot fractal zoom. Demonstrates the use of a 1D texture as LUT (using TextureUtils)
+ ** and also makes use of ShaderUtils to ease the handling of vertex&pixel shaders. For an
+ ** impression how this routine looks like see here: http://www.youtube.com/watch?v=MgEpH70oZN4
+ **
+ **/
+
+import framework.base.*;
+import framework.util.*;
+import java.awt.image.*;
+import java.nio.*;
+import javax.media.opengl.*;
+import javax.media.opengl.glu.*;
+import com.jogamp.opengl.util.gl2.*;
+import static javax.media.opengl.GL2.*;
+
+public class GL3_Mandelbrot extends BaseRoutineAdapter implements BaseRoutineInterface,BaseFrameBufferObjectRendererInterface {
+
+ protected BaseFrameBufferObjectRendererExecutor mBaseFrameBufferObjectRendererExecutor;
+
+ public void initRoutine(GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ mBaseFrameBufferObjectRendererExecutor = new BaseFrameBufferObjectRendererExecutor(BaseGlobalEnvironment.getInstance().getScreenWidth(),BaseGlobalEnvironment.getInstance().getScreenHeight(),this);
+ mBaseFrameBufferObjectRendererExecutor.init(inGL,inGLU,inGLUT);
+ }
+
+ public void mainLoop(int inFrameNumber,GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ mBaseFrameBufferObjectRendererExecutor.renderToFrameBuffer(inFrameNumber,inGL,inGLU,inGLUT);
+ mBaseFrameBufferObjectRendererExecutor.renderFBOAsFullscreenBillboard(inGL,inGLU,inGLUT);
+ }
+
+ public void cleanupRoutine(GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ mBaseFrameBufferObjectRendererExecutor.cleanup(inGL,inGLU,inGLUT);
+ }
+
+ /* --------------------------------------------------------------------------------------------------------------------------------------------------- */
+
+ protected int mLinkedShader;
+ protected FloatBuffer mScreenDimensionUniform2fv;
+ protected int mLUTTextureID;
+
+ public void init_FBORenderer(GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ int tFragmentShader = ShaderUtils.loadFragmentShaderFromFile(inGL,"/shaders/fractalshaders/mandelbrot.fs");
+ mLinkedShader = ShaderUtils.generateSimple_1xFS_ShaderProgramm(inGL,tFragmentShader);
+ mScreenDimensionUniform2fv = DirectBufferUtils.createDirectFloatBuffer(new float[] {(float)mBaseFrameBufferObjectRendererExecutor.getWidth(), (float)mBaseFrameBufferObjectRendererExecutor.getHeight()});
+ //create BufferedImage to be used as LUT ...
+ BufferedImage tLUT = TextureUtils.createARGBBufferedImage(5,1);
+ //"Blue Sky Mine" from kuler.com
+ tLUT.setRGB(0,0,0x00FDFF98);
+ tLUT.setRGB(1,0,0x00A7DB9E);
+ tLUT.setRGB(2,0,0x005EA692);
+ tLUT.setRGB(3,0,0x00524B70);
+ tLUT.setRGB(4,0,0x0023263A);
+ mLUTTextureID = TextureUtils.generateTexture1DFromBufferedImage(inGL,tLUT,GL_CLAMP);
+ }
+
+ public void mainLoop_FBORenderer(int inFrameNumber,GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ //display texture billboard
+ inGL.glDisable(GL_LIGHTING);
+ inGL.glDisable(GL_CULL_FACE);
+ inGL.glDisable(GL_DEPTH_TEST);
+ inGL.glMatrixMode(GL_PROJECTION);
+ inGL.glLoadIdentity();
+ inGL.glOrtho(0, mBaseFrameBufferObjectRendererExecutor.getWidth(), mBaseFrameBufferObjectRendererExecutor.getHeight(), 0, -1, 1);
+ inGL.glMatrixMode(GL_MODELVIEW);
+ inGL.glLoadIdentity();
+ inGL.glUseProgram(mLinkedShader);
+ ShaderUtils.setUniform1f(inGL,mLinkedShader,"time",inFrameNumber/100.0f);
+ ShaderUtils.setUniform2fv(inGL,mLinkedShader,"resolution",mScreenDimensionUniform2fv);
+ inGL.glActiveTexture(GL_TEXTURE0);
+ inGL.glEnable(GL_TEXTURE_1D);
+ inGL.glBindTexture(GL_TEXTURE_1D, mLUTTextureID);
+ ShaderUtils.setUniform1i(inGL,mLinkedShader,"sampler0",0);
+ inGL.glValidateProgram(mLinkedShader);
+ inGL.glBegin(GL_QUADS);
+ inGL.glTexCoord2f(0.0f, 0.0f);
+ inGL.glVertex2f(0.0f, 0.0f);
+ inGL.glTexCoord2f(1.0f, 0.0f);
+ inGL.glVertex2f(mBaseFrameBufferObjectRendererExecutor.getWidth(), 0.0f);
+ inGL.glTexCoord2f(1.0f, 1.0f);
+ inGL.glVertex2f(mBaseFrameBufferObjectRendererExecutor.getWidth(), mBaseFrameBufferObjectRendererExecutor.getHeight());
+ inGL.glTexCoord2f(0.0f, 1.0f);
+ inGL.glVertex2f(0.0f, mBaseFrameBufferObjectRendererExecutor.getHeight());
+ inGL.glEnd();
+ inGL.glUseProgram(0);
+ inGL.glBindTexture(GL_TEXTURE_2D, 0);
+ inGL.glDisable(GL_TEXTURE_2D);
+ }
+
+ public void cleanup_FBORenderer(GL2 inGL,GLU inGLU,GLUT inGLUT) {
+ TextureUtils.deleteTextureID(inGL,mLUTTextureID);
+ inGL.glDeleteShader(mLinkedShader);
+ inGL.glFlush();
+ }
+
+}
View
12 readme.txt
@@ -10,3 +10,15 @@
\/____. .____\/
Art, code and miscellaneous experiments related in some way to JOGL.
+
+For videos and some explanation of what can be found in this repository take a look at my blog
+on tumblr: http://copypastaresearch.tumblr.com/
+
+As a helpful starter guide on how to get these examples up and running under windows using eclipse
+checkout this thread from Gavanw on the offical Jogamp/JOGL forums: http://tinyurl.com/3abdvvb
+
+Also u might wanna check out my twitter feed under http://twitter.com/ScenePassivist
+and my YouTube channel at http://www.youtube.com/user/DemoscenePassivist
+
+For various other interesting blogs regarding JOGL and the other projects from JOGAMP, check out
+http://jogamp.org/ or go directly to http://jogamp.org/blog/
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_logo_fadeout.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_logo_fadeout.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue_vertical.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_blue_vertical.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_magenta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_jogamp_slogan_logo_magenta.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/10x10_apparel_original.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/3x3_bear_jogamp_symbol_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/3x3_bear_jogamp_symbol_blue.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/3x3_bear_original.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/8.31x3_bev_jogamp_symbol_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/8.31x3_bev_jogamp_symbol_blue.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/8.31x3_bev_jogl_jocl_joal_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/8.31x3_bev_jogl_jocl_joal_logo.psd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN shop_jogamp_templates/8.31x3_bev_original.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7a183f9

Please sign in to comment.
Something went wrong with that request. Please try again.