How to Draw Alpha(transparent) And About [Particle Editor(very noob question)]

Hi guys.
I have two stupid questions, i just hope you can help me.
I know its a very dumb question but, idk.

Anyway, i have a little plane image in jpg. The plane is black and the background of that img is white.
How can i make the white part transparent? I need to pass to .gif? After that how i set the white bytes ( get it? )


Also, call me dumb, but i cant run/Find/How run Particle Editor, i downloaded the latest nightly but still nothing. Opened all .jar’s.


Thanks guys :stuck_out_tongue:

Ahhh.
Do anyone know a book or a blog or a tutorial for perfomance tips with libgdx?

  • JPGs have no transparency, use PNGs
  • “still nothing” is no helpful error message
  • What are your performance problems ?

Thanks 65000
:stuck_out_tongue:
After i convert to png, what should i do ? use a program to make it transparent like , idk, GIMP ?

Also, idk how to find/open Particle Editor.
Seriously, idk how.

Well, i will make a new topic about performance but its all about that Explosion thing that i posted some days ago.
Im having issues controlling several explosions simultaneously;

Gimp is fine for that. There is a function for converting specified colors into transparency.

I launch the particle editor from a complete libgdx git clone. Then just “run application” on the ParticleEditor class. There used to be a web start launcher available from some likbgdx wiki page.

yes, you should remove the white background using a software like GIMP and then save the image as .PNG , in case you face any problem just google "how to save transparent background in #software name# "

for the particle editor,
i don’t use libGdx but i think this walkthrough may solve your problem

good luck

My tutorial and download link here

GUYS GUYS GUYS GUYS!!!

The Transparency worked like a charm
I used Paint.net and was kinda easy after some reading.

But the Particle Editor still doesnt open.
It asks my permission, i gave it. Also, i unblocked any antivirus , or UAC thing , but it doesnt open.
I saw somewhere that is because i have win7 64 ultimate…
That may explain.

Also, my java is updated with latest , u21.

THANKS!!!

Which download link are you following for the particle editor?

I will try run it at my Virtual machine with WinXp
I will post the results soon .
:stuck_out_tongue:

In my Virtual box with winXP 32 bits, it opened perfectly.

:smiley:

Well, until theres a fix i will use with it :stuck_out_tongue:

i think you can run from source, it will be better than a virtual machine

Heya, ty for the reply m8 :stuck_out_tongue:
How do i do that?
You mean like, get the code and run from the IDE?

run:
org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:151)
at org.lwjgl.openal.AL.create(AL.java:102)
at org.lwjgl.openal.AL.create(AL.java:201)
at com.badlogic.gdx.backends.openal.OpenALAudio.(OpenALAudio.java:70)
at com.badlogic.gdx.backends.openal.OpenALAudio.(OpenALAudio.java:55)
at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.initialize(LwjglCanvas.java:124)
at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.(LwjglCanvas.java:68)
at com.badlogic.gdx.tools.particleeditor.ParticleEditor.(ParticleEditor.java:84)
at Main.Main.main(Main.java:14)
java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL11.glViewport(GL11.java:3251)
at com.badlogic.gdx.backends.lwjgl.LwjglGL10.glViewport(LwjglGL10.java:480)
at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$3.run(LwjglCanvas.java:220)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
CONSTRUÇÃO PARADA (tempo total: 17 segundos)