Giter Club home page Giter Club logo

libgdx-contribs's Introduction

Flattr this git repo

libgdx-contribs

homepage

My contributions and utilities for the awesome libgdx game development framework. Project files and instructions are for Eclipse 3.7.2 (Indigo) or higher, but others may work as well with some adaptation.

All available projects in the repository will be added to the following list with a brief description:

utils Common utilities used across the contributions. post-processing A lightweight, GLES2-only library to ease development and inclusion of post-processing effects in libgdx applications and games.


Cloning and importing the projects in Eclipse

Start by cloning the libgdx-contribs repository in your preferred directory:

https://github.com/manuelbua/libgdx-contribs.git

Then import libgdx-contribs-utils and choose to import the project you want, for example libgdx-contribs-postprocessing.

In Eclipse, File->Import and point it to the utils folder, accept the defaults or change to your likings and import the project, then do the same with the project you choose to use. At this point you should have both projects built, if Build automatically has been setup in your workspace, else build them manually.

Demo applications

I plan to add demos to the projects, so look for a demo folter inside the project folder you have choosen, for example the postprocessing project have one, so just File->Import in Eclipse and point it to the postprocessing/demo folder to import it into your workspace.

libgdx-contribs's People

Contributors

anze3db avatar bobbyrne01 avatar jessetg avatar junkdog avatar langurmonkey avatar manuelbua avatar serpent7776 avatar spikatrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libgdx-contribs's Issues

CRT scalines disappear

After about 300 elapsed secs the scanlines of the CRT effect start going down the screen until it disappear, it only happend to me on android device (galaxy s2), desktop work fine.

Vignette low resolution?

Not sure if this is me doing something wrong or if it is something in the libgdx-contribs.
For some reason the "vignette circles" seem to be of low resolution, i.e. the vignette effect fades out/in too "quick". Changing intensity does not help. See image for what I mean:
http://postimg.org/image/ovtla55rt/

Is it supposed to be like this? Or am I doing something wrong? I'd love higher resolution vignettes so that the "circles" do not appear and instead the vignette effect is "smooth".

Set alpha of CRT-effect?

This is not really an issue but more of a feature request.. :-D
I've been trying to dabble with blending to achieve transparency with the CRT-effect, but been failing hardly. Any tips?

Vignette app crash with Libgdx 1.0 Desktop, Android

Two my apps are crashing here is stack trace from desktop vershion

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x062b2c67, pid=3212, tid=6508
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) Client VM (24.45-b08 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ig7icd32.dll+0x3a2c67]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x05020800):  JavaThread "LWJGL Application" [_thread_in_native, id=6508, stack(0x05a70000,0x05ac0000)]

siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x00000000 0x05a70000 

Registers:
EAX=0x05a70000, EBX=0x05abeaf0, ECX=0x05a5bcac, EDX=0x00110000
ESP=0x05a7ca44, EBP=0x05a7ca58, ESI=0x05abe544, EDI=0x0b330ac8
EIP=0x062b2c67, EFLAGS=0x00010206

Top of Stack: (sp=0x05a7ca44)
0x05a7ca44:   0b330ac8 0615a932 05a9d810 063099e7
0x05a7ca54:   ffffffff 05a9d81c 0615be75 00000068
0x05a7ca64:   05a98b5c 05a9d76c 0b330ac8 05abe6a4
0x05a7ca74:   00000000 00000000 00000000 00000000
0x05a7ca84:   00000000 00000000 00000000 00000000
0x05a7ca94:   00000000 00000000 00000000 00000000
0x05a7caa4:   00000000 00000000 00000000 00000000
0x05a7cab4:   00000000 00000000 00000000 00000000 

Instructions: (pc=0x062b2c67)
0x062b2c47:   1b c0 f7 d0 23 c8 8b c4 25 00 f0 ff ff 3b c8 72
0x062b2c57:   0a 8b c1 59 94 8b 00 89 04 24 c3 2d 00 10 00 00
0x062b2c67:   85 00 eb e9 55 8b ec 83 25 28 64 48 06 00 83 ec
0x062b2c77:   10 53 33 db 43 09 1d c0 7a 47 06 6a 0a e8 fd c2 


Register to memory mapping:

EAX=0x05a70000 is an unknown value
EBX=0x05abeaf0 is pointing into the stack for thread: 0x05020800
ECX=0x05a5bcac is an unknown value
EDX=0x00110000 is an unknown value
ESP=0x05a7ca44 is pointing into the stack for thread: 0x05020800
EBP=0x05a7ca58 is pointing into the stack for thread: 0x05020800
ESI=0x05abe544 is pointing into the stack for thread: 0x05020800
EDI=0x0b330ac8 is an unknown value


Stack: [0x05a70000,0x05ac0000],  sp=0x05a7ca44,  free space=50k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ig7icd32.dll+0x3a2c67]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL20.nglLinkProgram(IJ)V+0
j  org.lwjgl.opengl.GL20.glLinkProgram(I)V+15
j  com.badlogic.gdx.backends.lwjgl.LwjglGL20.glLinkProgram(I)V+1
j  com.badlogic.gdx.graphics.glutils.ShaderProgram.linkProgram()I+46
j  com.badlogic.gdx.graphics.glutils.ShaderProgram.compileShaders(Ljava/lang/String;Ljava/lang/String;)V+46
j  com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(Ljava/lang/String;Ljava/lang/String;)V+162
j  com.bitfire.utils.ShaderLoader.fromString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/badlogic/gdx/graphics/glutils/ShaderProgram;+58
j  com.bitfire.utils.ShaderLoader.fromFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/badlogic/gdx/graphics/glutils/ShaderProgram;+203
j  com.bitfire.postprocessing.filters.Vignetting.<init>(Z)V+16
j  com.bitfire.postprocessing.effects.Vignette.<init>(IIZ)V+31
j  com.redspawngames.colorinio.layers.GameBackgrounLayer.<init>(FFLcom/utils/rkdirector/director/ClassMenager;)V+156
j  com.redspawngames.colorinio.scenes.GameScene.<init>(Lcom/utils/rkdirector/director/ClassMenager;)V+195
j  com.redspawngames.colorinio.core.Colorinio.getGameScene()Lcom/redspawngames/colorinio/scenes/GameScene;+13
j  com.redspawngames.colorinio.core.Colorinio.transitionToGameSceneFromLevel()V+1
j  com.redspawngames.colorinio.core.Colorinio.handleEvent(Lcom/utils/rkdirector/event/ActorEvent;)Z+138
j  com.utils.rkdirector.event.ActorEventSource.update()V+54
j  com.utils.rkdirector.director.Director.update()V+4
j  com.redspawngames.colorinio.core.Colorinio.render()V+60
j  com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop()V+619
j  com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run()V+27
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x09601c00 JavaThread "LWJGL Timer" daemon [_thread_blocked, id=6796, stack(0x0a290000,0x0a2e0000)]
  0x0299c000 JavaThread "DestroyJavaVM" [_thread_blocked, id=6704, stack(0x02700000,0x02750000)]
=>0x05020800 JavaThread "LWJGL Application" [_thread_in_native, id=6508, stack(0x05a70000,0x05ac0000)]
  0x02873400 JavaThread "Service Thread" daemon [_thread_blocked, id=3592, stack(0x04e50000,0x04ea0000)]
  0x02870c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=6356, stack(0x04dc0000,0x04e10000)]
  0x0286f800 JavaThread "Attach Listener" daemon [_thread_blocked, id=7092, stack(0x04d30000,0x04d80000)]
  0x0286d400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4588, stack(0x04ca0000,0x04cf0000)]
  0x02801000 JavaThread "Finalizer" daemon [_thread_blocked, id=3468, stack(0x04c10000,0x04c60000)]
  0x027ff800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3948, stack(0x04b80000,0x04bd0000)]

Other Threads:
  0x027fd800 VMThread [stack: 0x04af0000,0x04b40000] [id=6212]
  0x0288c800 WatcherThread [stack: 0x04ee0000,0x04f30000] [id=4664]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4992K, used 1714K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,  26% used [0x24cd0000, 0x24dfc8f8, 0x25130000)
  from space 512K, 100% used [0x25130000, 0x251b0000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 7051K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  64% used [0x2a220000, 0x2a902f20, 0x2a903000, 0x2acd0000)
 compacting perm gen  total 12288K, used 3405K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  27% used [0x34cd0000, 0x35023480, 0x35023600, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)

Card table byte_map: [0x049a0000,0x04a50000] byte_map_base: 0x04879980

Polling page: 0x02750000

Code Cache  [0x029a0000, 0x02b50000, 0x049a0000)
 total_blobs=755 nmethods=491 adapters=201 free_code_cache=31064Kb largest_free_block=31809664

Compilation events (10 events):
Event: 8.017 Thread 0x02870c00  490             com.badlogic.gdx.graphics.g2d.BitmapFont::getBounds (136 bytes)
Event: 8.018 Thread 0x02870c00 nmethod 490 0x02b48348 code [0x02b484a0, 0x02b487d8]
Event: 8.063 Thread 0x02870c00  491             java.io.Win32FileSystem::isLetter (30 bytes)
Event: 8.064 Thread 0x02870c00 nmethod 491 0x02b49008 code [0x02b49100, 0x02b491d0]
Event: 8.077 Thread 0x02870c00  492             org.lwjgl.BufferUtils::createByteBuffer (11 bytes)
Event: 8.077 Thread 0x02870c00 nmethod 492 0x02b49208 code [0x02b49310, 0x02b493f8]
Event: 8.078 Thread 0x02870c00  493             java.lang.String::concat (47 bytes)
Event: 8.078 Thread 0x02870c00 nmethod 493 0x02b494c8 code [0x02b495f0, 0x02b49868]
Event: 8.078 Thread 0x02870c00  494             java.lang.String::getChars (16 bytes)
Event: 8.078 Thread 0x02870c00 nmethod 494 0x02b49b88 code [0x02b49c90, 0x02b49d7c]

GC Heap History (10 events):
Event: 1.101 GC heap before
{Heap before GC invocations=5 (full 0):
 def new generation   total 4928K, used 4277K [0x24cd0000, 0x25220000, 0x2a220000)
  eden space 4416K,  87% used [0x24cd0000, 0x25097ba8, 0x25120000)
  from space 512K,  79% used [0x251a0000, 0x25205a58, 0x25220000)
  to   space 512K,   0% used [0x25120000, 0x25120000, 0x251a0000)
 tenured generation   total 10944K, used 2051K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  18% used [0x2a220000, 0x2a420db0, 0x2a420e00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2566K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  20% used [0x34cd0000, 0x34f51958, 0x34f51a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
Event: 1.102 GC heap after
Heap after GC invocations=6 (full 0):
 def new generation   total 4992K, used 0K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,   0% used [0x24cd0000, 0x24cd0000, 0x25130000)
  from space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 4359K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  39% used [0x2a220000, 0x2a661d70, 0x2a661e00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2566K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  20% used [0x34cd0000, 0x34f51958, 0x34f51a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
}
Event: 1.161 GC heap before
{Heap before GC invocations=6 (full 0):
 def new generation   total 4992K, used 4311K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,  96% used [0x24cd0000, 0x25105c18, 0x25130000)
  from space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 4359K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  39% used [0x2a220000, 0x2a661d70, 0x2a661e00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2566K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  20% used [0x34cd0000, 0x34f51958, 0x34f51a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
Event: 1.161 GC heap after
Heap after GC invocations=7 (full 0):
 def new generation   total 4992K, used 454K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,   0% used [0x24cd0000, 0x24cd0000, 0x25130000)
  from space 512K,  88% used [0x251b0000, 0x25221bc8, 0x25230000)
  to   space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
 tenured generation   total 10944K, used 4359K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  39% used [0x2a220000, 0x2a661d70, 0x2a661e00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2566K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  20% used [0x34cd0000, 0x34f51958, 0x34f51a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
}
Event: 1.225 GC heap before
{Heap before GC invocations=7 (full 0):
 def new generation   total 4992K, used 4934K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K, 100% used [0x24cd0000, 0x25130000, 0x25130000)
  from space 512K,  88% used [0x251b0000, 0x25221bc8, 0x25230000)
  to   space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
 tenured generation   total 10944K, used 4359K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  39% used [0x2a220000, 0x2a661d70, 0x2a661e00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2901K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  23% used [0x34cd0000, 0x34fa54c0, 0x34fa5600, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
Event: 1.227 GC heap after
Heap after GC invocations=8 (full 0):
 def new generation   total 4992K, used 512K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,   0% used [0x24cd0000, 0x24cd0000, 0x25130000)
  from space 512K, 100% used [0x25130000, 0x251b0000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 4622K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  42% used [0x2a220000, 0x2a6a38d8, 0x2a6a3a00, 0x2acd0000)
 compacting perm gen  total 12288K, used 2901K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  23% used [0x34cd0000, 0x34fa54c0, 0x34fa5600, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
}
Event: 2.795 GC heap before
{Heap before GC invocations=8 (full 0):
 def new generation   total 4992K, used 4992K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K, 100% used [0x24cd0000, 0x25130000, 0x25130000)
  from space 512K, 100% used [0x25130000, 0x251b0000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 4622K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  42% used [0x2a220000, 0x2a6a38d8, 0x2a6a3a00, 0x2acd0000)
 compacting perm gen  total 12288K, used 3210K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  26% used [0x34cd0000, 0x34ff2910, 0x34ff2a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
Event: 2.801 GC heap after
Heap after GC invocations=9 (full 0):
 def new generation   total 4992K, used 512K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,   0% used [0x24cd0000, 0x24cd0000, 0x25130000)
  from space 512K, 100% used [0x251b0000, 0x25230000, 0x25230000)
  to   space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
 tenured generation   total 10944K, used 6237K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  56% used [0x2a220000, 0x2a837670, 0x2a837800, 0x2acd0000)
 compacting perm gen  total 12288K, used 3210K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  26% used [0x34cd0000, 0x34ff2910, 0x34ff2a00, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
}
Event: 8.027 GC heap before
{Heap before GC invocations=9 (full 0):
 def new generation   total 4992K, used 4975K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,  99% used [0x24cd0000, 0x2512bde8, 0x25130000)
  from space 512K, 100% used [0x251b0000, 0x25230000, 0x25230000)
  to   space 512K,   0% used [0x25130000, 0x25130000, 0x251b0000)
 tenured generation   total 10944K, used 6237K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  56% used [0x2a220000, 0x2a837670, 0x2a837800, 0x2acd0000)
 compacting perm gen  total 12288K, used 3296K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  26% used [0x34cd0000, 0x350083e0, 0x35008400, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
Event: 8.030 GC heap after
Heap after GC invocations=10 (full 0):
 def new generation   total 4992K, used 512K [0x24cd0000, 0x25230000, 0x2a220000)
  eden space 4480K,   0% used [0x24cd0000, 0x24cd0000, 0x25130000)
  from space 512K, 100% used [0x25130000, 0x251b0000, 0x251b0000)
  to   space 512K,   0% used [0x251b0000, 0x251b0000, 0x25230000)
 tenured generation   total 10944K, used 7051K [0x2a220000, 0x2acd0000, 0x34cd0000)
   the space 10944K,  64% used [0x2a220000, 0x2a902f20, 0x2a903000, 0x2acd0000)
 compacting perm gen  total 12288K, used 3296K [0x34cd0000, 0x358d0000, 0x38cd0000)
   the space 12288K,  26% used [0x34cd0000, 0x350083e0, 0x35008400, 0x358d0000)
    ro space 10240K,  41% used [0x38cd0000, 0x39101a78, 0x39101c00, 0x396d0000)
    rw space 12288K,  52% used [0x396d0000, 0x39d162c0, 0x39d16400, 0x3a2d0000)
}

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 8.049 Thread 0x05020800 Threw 0x24d2d560 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.054 Thread 0x05020800 Threw 0x24d489f8 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.067 Thread 0x05020800 Threw 0x24d94598 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.068 Thread 0x05020800 Threw 0x24d97228 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.071 Thread 0x05020800 Threw 0x24db1688 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.072 Thread 0x05020800 Threw 0x24db44e8 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.077 Thread 0x05020800 Threw 0x24dd1970 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.078 Thread 0x05020800 Threw 0x24dd4a00 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.078 Thread 0x05020800 Threw 0x24dd74d0 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 8.078 Thread 0x05020800 Threw 0x24ddb388 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244

Events (10 events):
Event: 8.072 loading class 0x0959a6a8
Event: 8.072 loading class 0x0959a6a8 done
Event: 8.077 loading class 0x028d5938
Event: 8.077 loading class 0x028d5938 done
Event: 8.077 loading class 0x09515760
Event: 8.077 loading class 0x09515760 done
Event: 8.078 loading class 0x0510d7f8
Event: 8.078 loading class 0x0510d7f8 done
Event: 8.078 loading class 0x0510bcb8
Event: 8.078 loading class 0x0510bcb8 done


Dynamic libraries:
0x00b70000 - 0x00b9f000     C:\Program Files (x86)\Java\jre7\bin\javaw.exe
0x76ea0000 - 0x77008000     C:\Windows\SYSTEM32\ntdll.dll
0x748f0000 - 0x74a30000     C:\Windows\SYSTEM32\KERNEL32.DLL
0x76cf0000 - 0x76dbf000     C:\Windows\SYSTEM32\KERNELBASE.dll
0x72f80000 - 0x73019000     C:\Windows\system32\apphelp.dll
0x72d20000 - 0x72f79000     C:\Windows\AppPatch\AcGenral.DLL
0x76b60000 - 0x76c1e000     C:\Windows\SYSTEM32\msvcrt.dll
0x75530000 - 0x7556e000     C:\Windows\SYSTEM32\sechost.dll
0x748d0000 - 0x748ed000     C:\Windows\SYSTEM32\SspiCli.dll
0x75570000 - 0x755b1000     C:\Windows\SYSTEM32\SHLWAPI.dll
0x73860000 - 0x7393b000     C:\Windows\SYSTEM32\UxTheme.dll
0x75150000 - 0x7529f000     C:\Windows\SYSTEM32\USER32.dll
0x75650000 - 0x75758000     C:\Windows\SYSTEM32\GDI32.dll
0x74770000 - 0x74790000     C:\Windows\SYSTEM32\WINMM.dll
0x73840000 - 0x73852000     C:\Windows\SYSTEM32\samcli.dll
0x74dc0000 - 0x74ecc000     C:\Windows\SYSTEM32\ole32.dll
0x74f30000 - 0x74fb7000     C:\Windows\SYSTEM32\OLEAUT32.dll
0x73820000 - 0x73835000     C:\Windows\SYSTEM32\MSACM32.dll
0x74790000 - 0x74798000     C:\Windows\SYSTEM32\VERSION.dll
0x75860000 - 0x76a0d000     C:\Windows\SYSTEM32\SHELL32.dll
0x73f10000 - 0x73f29000     C:\Windows\SYSTEM32\USERENV.dll
0x73800000 - 0x73818000     C:\Windows\SYSTEM32\dwmapi.dll
0x71db0000 - 0x71ed2000     C:\Windows\SYSTEM32\urlmon.dll
0x75760000 - 0x757d8000     C:\Windows\SYSTEM32\ADVAPI32.dll
0x74710000 - 0x7476e000     C:\Windows\SYSTEM32\WINSPOOL.DRV
0x737e0000 - 0x737f4000     C:\Windows\SYSTEM32\MPR.dll
0x74c80000 - 0x74d31000     C:\Windows\SYSTEM32\RPCRT4.dll
0x748c0000 - 0x748c9000     C:\Windows\SYSTEM32\CRYPTBASE.dll
0x76a10000 - 0x76b5e000     C:\Windows\SYSTEM32\combase.dll
0x746a0000 - 0x746c0000     C:\Windows\SYSTEM32\WINMMBASE.dll
0x73e60000 - 0x73e6e000     C:\Windows\SYSTEM32\profapi.dll
0x73f30000 - 0x74149000     C:\Windows\SYSTEM32\iertutil.dll
0x74320000 - 0x744dd000     C:\Windows\SYSTEM32\WININET.dll
0x74860000 - 0x748b3000     C:\Windows\SYSTEM32\bcryptPrimitives.dll
0x76c20000 - 0x76c5a000     C:\Windows\SYSTEM32\cfgmgr32.dll
0x74680000 - 0x7469f000     C:\Windows\SYSTEM32\DEVOBJ.dll
0x73940000 - 0x739b6000     C:\Windows\SYSTEM32\SHCORE.DLL
0x76c60000 - 0x76c85000     C:\Windows\system32\IMM32.DLL
0x75420000 - 0x75517000     C:\Windows\SYSTEM32\MSCTF.dll
0x735a0000 - 0x73786000     C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17031_none_a9efdb8b01377ea7\COMCTL32.dll
0x6a330000 - 0x6a3ef000     C:\Program Files (x86)\Java\jre7\bin\msvcr100.dll
0x69d40000 - 0x6a0c0000     C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
0x74580000 - 0x74588000     C:\Windows\SYSTEM32\WSOCK32.dll
0x74ed0000 - 0x74ed6000     C:\Windows\SYSTEM32\PSAPI.DLL
0x74ee0000 - 0x74f2d000     C:\Windows\SYSTEM32\WS2_32.dll
0x75520000 - 0x75527000     C:\Windows\SYSTEM32\NSI.dll
0x72ad0000 - 0x72adc000     C:\Program Files (x86)\Java\jre7\bin\verify.dll
0x72020000 - 0x72040000     C:\Program Files (x86)\Java\jre7\bin\java.dll
0x72000000 - 0x72013000     C:\Program Files (x86)\Java\jre7\bin\zip.dll
0x6cec0000 - 0x6cf45000     C:\Users\AVANTIS\AppData\Local\Temp\libgdxAVANTIS\c3827174\gdx.dll
0x74660000 - 0x74678000     C:\Windows\SYSTEM32\CRYPTSP.dll
0x74630000 - 0x7465f000     C:\Windows\system32\rsaenh.dll
0x74610000 - 0x7462d000     C:\Windows\SYSTEM32\bcrypt.dll
0x71fe0000 - 0x71ff4000     C:\Program Files (x86)\Java\jre7\bin\net.dll
0x73c40000 - 0x73c85000     C:\Windows\system32\mswsock.dll
0x73a90000 - 0x73aa0000     C:\Windows\system32\napinsp.dll
0x73a70000 - 0x73a84000     C:\Windows\system32\pnrpnsp.dll
0x73a50000 - 0x73a62000     C:\Windows\system32\NLAapi.dll
0x73bc0000 - 0x73c3c000     C:\Windows\SYSTEM32\DNSAPI.dll
0x73a40000 - 0x73a49000     C:\Windows\System32\winrnr.dll
0x73a30000 - 0x73a3f000     C:\Windows\system32\wshbth.dll
0x73bb0000 - 0x73bb7000     C:\Windows\System32\rasadhlp.dll
0x73e40000 - 0x73e5e000     C:\Windows\SYSTEM32\IPHLPAPI.DLL
0x73e30000 - 0x73e38000     C:\Windows\SYSTEM32\WINNSI.DLL
0x73b60000 - 0x73ba4000     C:\Windows\System32\fwpuclnt.dll
0x71fd0000 - 0x71fdf000     C:\Program Files (x86)\Java\jre7\bin\nio.dll
0x10000000 - 0x1004d000     C:\Users\AVANTIS\AppData\Local\Temp\libgdxAVANTIS\dd4c9aff\lwjgl.dll
0x69c60000 - 0x69d34000     C:\Windows\SYSTEM32\OPENGL32.dll
0x6cac0000 - 0x6cae4000     C:\Windows\SYSTEM32\GLU32.dll
0x69b10000 - 0x69bf7000     C:\Windows\SYSTEM32\DDRAW.dll
0x71fc0000 - 0x71fc7000     C:\Windows\SYSTEM32\DCIMAN32.dll
0x054e0000 - 0x05545000     C:\Users\AVANTIS\AppData\Local\Temp\libgdxAVANTIS\dd4c9aff\OpenAL32.dll
0x747a0000 - 0x747a9000     C:\Windows\SYSTEM32\kernel.appcore.dll
0x74d40000 - 0x74dbd000     C:\Windows\SYSTEM32\clbcatq.dll
0x6af60000 - 0x6afd9000     C:\Windows\SYSTEM32\dsound.dll
0x73470000 - 0x734ae000     C:\Windows\SYSTEM32\POWRPROF.dll
0x73420000 - 0x7346a000     C:\Windows\System32\MMDevApi.dll
0x734b0000 - 0x73505000     C:\Windows\SYSTEM32\AUDIOSES.DLL
0x6caa0000 - 0x6cab5000     C:\Windows\SYSTEM32\atiglpxx.dll
0x69a70000 - 0x69b10000     C:\Windows\SYSTEM32\atiadlxy.dll
0x6fb70000 - 0x6fc93000     C:\Windows\SYSTEM32\PROPSYS.dll
0x73a00000 - 0x73a0e000     C:\Windows\SYSTEM32\WTSAPI32.dll
0x74ad0000 - 0x74c7d000     C:\Windows\SYSTEM32\SETUPAPI.dll
0x75110000 - 0x75148000     C:\Windows\SYSTEM32\WINTRUST.dll
0x752a0000 - 0x7541f000     C:\Windows\SYSTEM32\CRYPT32.dll
0x75830000 - 0x7583e000     C:\Windows\SYSTEM32\MSASN1.dll
0x05f10000 - 0x064ff000     C:\Windows\SYSTEM32\ig7icd32.dll
0x6fe80000 - 0x701e2000     C:\Windows\SYSTEM32\igdusc32.dll
0x6ca80000 - 0x6ca9c000     C:\Windows\SYSTEM32\atigktxx.dll
0x72040000 - 0x7213c000     C:\Windows\SYSTEM32\aticfx32.dll
0x71f30000 - 0x71fa7000     C:\Windows\SYSTEM32\mscms.dll
0x6b240000 - 0x6b27b000     C:\Windows\SYSTEM32\icm32.dll
0x73020000 - 0x73168000     C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1250 
java_command: com.redspawngames.colorinio.Main
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_45
PATH=C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files\TortoiseSVN\bin
USERNAME=AVANTIS
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 8 , 64 bit Build 9200 

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, erms, ht, tsc, tscinvbit, tscinv

Memory: 4k page, physical 8260972k(4482496k free), swap 9571692k(4806116k free)

vm_info: Java HotSpot(TM) Client VM (24.45-b08) for windows-x86 JRE (1.7.0_45-b18), built on Oct  8 2013 06:02:43 by "java_re" with unknown MS VC++:1600

time: Mon Apr 14 13:30:54 2014
elapsed time: 8 seconds

PostProcessor rendering clobbering Box2DLights and particles?

This is more likely me using this (awesome) library incorrectly or my unfamiliarity with low-level OpenGL structures than it is a bug, but I'll ask anyway.

So I have several steps in the rendering. First I render the tiles (via OrthogonalTiledMapRenderer), then the sprites, then the lights (via box2dlights.RayHandler), then particles, then the in-game GUI (health bars over each enemy), then finally the GUI (via Scene2D and Stage). There's some particles here and there, too. This is all done with the same SpriteBatch (except RayHandler, it doesn't use a Batch). However, within my render() loop, anything I draw within PostProcessor destroys whatever I drew prior that wasn't drawn with PostProcessor. For example...

screenshot from 2014-06-11 21 37 28

Look at how sexy that glow is. You did this. You da man. Problem is, there should be a stream of particles behind the ship, and there should be a cone light in front of the player.

screenshot from 2014-06-11 21 39 01

If I turn off the PostProcessor's rendering in the GUI renderer, the lights and particles render as normal...but I want the GUI to glow.

What am I doing wrong?

Depth Test Error

I´m not sure if this is an error or if I´m just doing something wrong but when I use an effect (I only tried bloom, fxaa and curvature) depth test stops working. If I don't use any filters everything works fine but when I add them I can see through the model.

image
(Using a fxaa filter)

`MotionBlur mb = new MotionBlur();` causes android app to close on launch

Heres a snippet creating a PostProcessor. The code below works fine as is, but uncommenting new MotionBlur() causes the issue.

Issue only occurs on android though, MotionBlur works fine on desktop.

any ideas?

I'm using gdx 1.6.5 and libgdx-contribs 1.0.6.1-SNAPSHOT

dont see any errors in console or logcat

public class Toolkit extends Game {

    private PostProcessor postProcessor;

    public void create() {

        postProcessor = new PostProcessor(false, false, false);
        ShaderLoader.BasePath = "shaders/";
        // MotionBlur mb = new MotionBlur(); // TODO uncommenting this line, causes android app to close on launch
        // mb.setBlurOpacity(0.5f);
        // postProcessor.addEffect(mb);
        Bloom bloom = new Bloom( (int)(Gdx.graphics.getWidth() * 0.25f), (int)(Gdx.graphics.getHeight() * 0.25f) );
        bloom.setBloomIntesity(1.5f);
        bloom.enableBlending(GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_COLOR);
        postProcessor.addEffect(bloom);

        this.setScreen(new GameScreen(this));
    }

    public void render() {
        super.render();
    }

    public PostProcessor getPostProcessor() {
        return postProcessor;
    }

    public void setPostProcessor(PostProcessor postProcessor) {
        this.postProcessor = postProcessor;
    }
}

Nesting Processors

Is it possible that I use multiple Processors and nest their capture captureEnd cycle ?

Demo not working with latest LibGDX source code

Hi there, I recently messaged you via Youtube about the post-processing not working with the new 3D API.

I've also noticed that I cannot get the Demo application to compile, due to a Skin issue.

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.ExceptionInInitializerError
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)

The Exception seems to stem from the ResourceFactory code which loads the Skin...

at com.bitfire.postprocessing.demo.ResourceFactory.<clinit>(ResourceFactory.java:40)

The line is as follows...

private static Skin UISkin = new Skin( Gdx.files.internal( "data/uiskin.json" ) );

Which stems from...

Caused by: com.badlogic.gdx.utils.SerializationException: Field not found: listBackground (com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle)

I started trying to figure out what was wrong with the JSON, but I got a little lost... I guess that they changed something, somewhere, in the latest LibGDX Source.

Thanks,
Mark

CRT shader don't compile on PowerVR SGX 540

CRT effect works fine on i9100 but on i9000 with a SGX 540 I got this:

I/ShaderLoader(7860): Compiling "screenspace/crt-screen" w/ (#define ENABLE_CHROMATIC_ABERRATIONS, )...
E/ShaderLoader(7860): Compile failed.
E/ShaderLoader(7860): WARNING: 0:86: Calls to any function that may require a gradient calculation inside a conditional block may return undefined results
E/ShaderLoader(7860): WARNING: 0:101: Calls to any function that may require a gradient calculation inside a conditional block may return undefined results
E/ShaderLoader(7860): WARNING: 0:102: Calls to any function that may require a gradient calculation inside a conditional block may return undefined results
E/ShaderLoader(7860): WARNING: 0:103: Calls to any function that may require a gradient calculation inside a conditional block may return undefined results

Fail on compile fxaa fragment shader

Fragment shader:
0(10) : error C1503: undefined variable "angleVarfade_texture"
0(10) : error C1105: cannot call a non-function
0(11) : error C1503: undefined variable "angleVarfade_texture"
0(11) : error C1105: cannot call a non-function
0(12) : error C1503: undefined variable "angleVarfade_texture"
0(12) : error C1105: cannot call a non-function
0(13) : error C1503: undefined variable "angleVarfade_texture"
0(13) : error C1105: cannot call a non-function
0(14) : error C1503: undefined variable "angleVarfade_texture"
0(14) : error C1105: cannot call a non-function
0(29) : error C1503: undefined variable "angleVarfade_texture"
0(29) : error C1105: cannot call a non-function
0(29) : error C1503: undefined variable "angleVarfade_texture"
0(29) : error C1105: cannot call a non-function
0(30) : error C1503: undefined variable "angleVarfade_texture"
0(30) : error C1105: cannot call a non-function
0(30) : error C1503: undefined variable "angleVarfade_texture"
0(30) : error C1105: cannot call a non-function

Possible solution: 049479b
PostProcessor is called with code:

ShaderLoader.BasePath = "shaders/";
postProcessor = PostProcessor(false, false, false)
val fxaa = Fxaa((Gdx.graphics.getWidth()*0.9).toInt(), (Gdx.graphics.getHeight()*0.9).toInt());
postProcessor.addEffect(fxaa)

Apply effects only on specific textures

First of all, thanks for such a great lib, it's a life-saver, really!

I have a tile-based game and what I'm trying to do is enabling some post-processing effect in the middle of the rendering process, without affecting the previously rendered textures or the next ones. For example, I render floor and walls tiles with Bloom, then monsters with Bloom and MotionBlur, and then some other textures with just Bloom again.

Here is a pseudo code of what I'm doing:

private SpriteBatch batch;
private PostProcessor postProcessor;
private MotionBlur blur;

// Create PostProcessor with a disabled MotionBlur effect
public void create() {
    ShaderLoader.BasePath = "shaders/post-processing/";
    postProcessor = new PostProcessor(false, false, SystemUtils.IS_OS_DESKTOP);
    blur = new MotionBlur();
    blur.setEnabled(false);
    postProcessor.addEffect(blur);
}

public void render() {
    postProcessor.capture();
    batch.begin();
    ... // draw some textures. MotionBlur effect is disabled here
    batch.end();
    postProcessor.render();

    blur.setEnabled(true);

    postProcessor.capture();
    batch.begin();
    ... // draw some textures with MotionBlur enabled
    batch.end();
    postProcessor.render();

    blur.setEnabled(false);

    postProcessor.capture();
    batch.begin();
    ... // draw some textures. MotionBlur is no longer enabled
    batch.end();
    postProcessor.render();
}

What happens is the first batch of textures is not rendered, or is overwritten by the MotionBlur rendering process.
What am I doing wrong? Is it even possible to achieve what I'm suggesting?

Thanks for the attention.

Querying GL state can stall the pipeline

I plan to address this issue in the near future: it doesn't seem that bad on the desktop (a low-end 9400GT handle it nicely), but on Android is just another story: some GPUs can be good at it (Adreno 205 is FAST), while Tegra2 or Vivante GC800 GPUs can be seen struggling.

PostProcessor using deprecated glViewport functionality.

PostProcessor::restoreViewport() should use HdpiUtils.glViewport instead of Gdx.graphics.glViewport, according to libGDX's 1.8.0 changelog.

API Change: Added HdpiUtils. Instead of calling GL20#glViewport and GL20#glScissor yourself please use HdpiUtils instead. It will ensure that you handle HDPI monitors correctly when using those OpenGL functions. On HDPI monitors, the size reported by Gdx.graphics getWidth/getHeight is in logical coordinates as dictated by the operating system, usually half the HDPI resolution. The OpenGL drawing surface works in backbuffer coordinates at the full HDPI resolution. If you pass logical coordinates to glViewport and glScissor, you only affect a quarter of the real backbuffer size. Use HdpiUtils instead, it will do the right thing, while letting you continue to work in logical (aka returned by Gdx.graphics.getWidth/getHeight) coordinates.

Resize problem

Hi man,
Do i need to do something on postProcessor when screen (viewport) is resized?
I don't see anything in examples..
When i start the app, postprocessing works fine.. but when i resize a screen (a little or much), output of postprocessor gets "blurry".. but the only added effect is the Vignette here.. tried MotionBlur - the same..

http://josefsvoboda.com/td/issue/after-load.png
http://josefsvoboda.com/td/issue/after-resize.png

I tried to set a viewport in resize method, but it makes no difference..

Am I just out of league? Can the PostProcessor be used in non-fullscreen apps without recreating it's instance?

Thank you!
Josef

Rendering Scene in multiple fbo

Is it possible to render the scene WITH EFFECTS APPLIED (not just captureEnd()) to multiple fbos . I wish to render my scene on the screen plus have a copy on local fbo for further procesing

android

I want it to run on android, but it doesn't,
Error: Java. Lang. NoClassDefFoundError: com. bitfire. utils. ShaderLoader.
Could you tell me how to solve.

.pom files deprecated

Are the .pom files supposed to contain information about old LibGDX snapshots? When I import as Maven project in Eclipse the .pom files creates errors. I am probably doing it all wrong..

CrtScreen Shader appears broken

Hey,

I came across your awesome little library. I am trying to use it with the latest version of libGDX (1.5.3) and I get this error whilst trying the CRT post processor -

java.lang.IllegalArgumentException: no uniform with name 'time' in shader

The example you have on here is, bloom, works just fine.

What can I do to fix this?

Using invalid FrameBuffer Pixmap

The code asks for a FrameBuffer Pixmap, which doesn't exist anymore in newer versions of libgdx.
So it brings up this error:
unknown
Please fix this or else the library wont work anymore.

CrtMonitor issue

I got this error when trying to use CrtMonitor

Exception in thread "LWJGL Application" java.lang.IllegalArgumentException: no uniform with name 'time' in shader
    at com.badlogic.gdx.graphics.glutils.ShaderProgram.fetchUniformLocation(ShaderProgram.java:292)
    at com.badlogic.gdx.graphics.glutils.ShaderProgram.fetchUniformLocation(ShaderProgram.java:282)
    at com.badlogic.gdx.graphics.glutils.ShaderProgram.setUniformf(ShaderProgram.java:384)
    at com.bitfire.postprocessing.filters.Filter.setParam(Filter.java:91)
    at com.bitfire.postprocessing.filters.CrtScreen.setTime(CrtScreen.java:132)
    at com.bitfire.postprocessing.filters.CrtScreen.<init>(CrtScreen.java:109)
    at com.bitfire.postprocessing.effects.CrtMonitor.<init>(CrtMonitor.java:61)

SpriteBatch not displayed before calling `.capture()`

Example code:

batch.begin();
// render bg sprite
batch.end();

postProcessor.capture(); // With one new Bloom effect
batch.begin();
// render fire (particles)
batch.end();
postProcessor.render();

batch.begin();
// render stones
batch.end();

*I know that ProcessorCapture has a Gdx.gl.glClear calling on line 278 (method capture) and has captureNoClear, but these methods still clean the screen.

Result:
result

How to avoid the problem? I apologize if the question is quite stupid =)

bias.fragment issue

I've tried to use LensFlare2 effect in my libgdx application, but it crashed. I've read logs and it seams that there is an error in "bias.fragment" shader. Looks like it is impossible to multiply "vec4" an "int" values in
"gl_FragColor = vec4(max(0.0, avg + u_bias)) * 50;"

I've found similar issue here http://stackoverflow.com/questions/14304290/null-checks-in-glsl
Maybe it only happens on OS X.
I am not familiar with shader programming so I am unable to fix this issue myself.

"
Executing: gradle run
Configuration on demand is an incubating feature.
:core:compileJava UP-TO-DATE
:core:processResources UP-TO-DATE
:core:classes UP-TO-DATE
:core:jar UP-TO-DATE
:desktop:compileJava UP-TO-DATE
:desktop:processResources UP-TO-DATE
:desktop:classes UP-TO-DATE
:desktop:run
2880x1800
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 3)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 3)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 5)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 5)...
ShaderLoader: Compiling "screenspace/threshold"...
ShaderLoader: Compiling "screenspace/combine"...
ShaderLoader: Compiling "screenspace/lensflare2"...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 3)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 3)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 5)...
ShaderLoader: Compiling "screenspace/convolve-1d" w/ (#define LENGTH 5)...
ShaderLoader: Compiling "screenspace/bias"...
ShaderLoader: ERROR: 0:26: '*' does not operate on 'vec4' and 'int'
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.