-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Render Animations Made with Effekseer v1.62e #3
Comments
For what it's worth, I also tried using efk files created from version 1.61e of Effekseeker, as well as using Libgdx 1.9.5, and I wasn't able to render images in those cases either. |
forgot it
|
This worked! Thank you! |
today I will release a version of lib 2.2, with new features and fixes |
Does this library work when run with older versions of Libgdx (e.g. 1.9.5)? |
no, later 1.10 as it was compiled with this version of libgdx |
While I've been able to load and play animation files, I have been having trouble actually having the effects show up on my screen.
I had been testing out the library with a fresh libgdx project (version 1.10.0, desktop build, no other extensions/libraries added besides this project's libraries). I have tried tweaking around various parameters (i.e. using both an OrthographicCamera and a PerspectiveCamera, changing the TypeOpenGL core type, and applying transformations to the ParticleEffekseer). However, my program always only shows a black screen.
The effect files I have been using to test this were efk files built from the sample effects included with Effekseer 1.62.
I had tried logging the IsPlaing function on my Manager and I saw that the effect was indeed supposed to be playing, however.
If it helps, this is the code I am using for my helper class:
`
package com.mygdx.game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;
import io.github.srjohnathan.gdx.effekseer.core.EffekseerGdx;
import io.github.srjohnathan.gdx.effekseer.core.EffekseerManager;
import io.github.srjohnathan.gdx.effekseer.core.ParticleEffekseer;
import java.util.HashMap;
import static io.github.srjohnathan.gdx.effekseer.core.EffekseerCore.TypeOpenGL.OPEN_GL2;
import static io.github.srjohnathan.gdx.effekseer.core.EffekseerCore.TypeOpenGL.OPEN_GL3;
public class EffekseerHelper {
public static OrthographicCamera Camera;
protected static EffekseerManager Manager;
protected static final HashMap<String, ParticleEffekseer> ParticleEffects = new HashMap<>();
protected static ParticleEffekseer Current;
protected static FrameBuffer Buffer;
protected static Vector2 DrawPos;
}
`
And this is my main application file:
`
public class MyGdxGame extends ApplicationAdapter {
SpriteBatch batch;
Texture img;
}
`
The text was updated successfully, but these errors were encountered: