Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How to Draw Alpha(transparent) And About [Particle Editor(very noob question)]  (Read 1014 times)
0 Members and 1 Guest are viewing this topic.
Offline Andre Lopes
« Posted 2013-05-16 15:27:29 »

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 Tongue

Ahhh.
Do anyone know a book or a blog or a tutorial for perfomance tips with libgdx?
Offline 65K
« Reply #1 - Posted 2013-05-16 16:32:11 »

- JPGs have no transparency, use PNGs
- "still nothing" is no helpful error message
- What are your performance problems ?

Offline Andre Lopes
« Reply #2 - Posted 2013-05-16 16:37:03 »

Thanks 65000
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;
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline 65K
« Reply #3 - Posted 2013-05-16 16:42:16 »

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.

Offline alaslipknot
« Reply #4 - Posted 2013-05-16 16:44:01 »


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

"It's not at all important to get it right the first time. It's vitally important to get it right the last time."
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #5 - Posted 2013-05-16 16:47:29 »

My tutorial and download link here
Offline Andre Lopes
« Reply #6 - Posted 2013-05-16 22:18:33 »

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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #7 - Posted 2013-05-16 22:30:24 »

Which download link are you following for the particle editor?
Offline Andre Lopes
« Reply #8 - Posted 2013-05-17 16:00:20 »

http://www.java-gaming.org/topics/particle-effects-in-libgdx/29484/msg/270708/view.html

https://www.dropbox.com/s/q2w0nas2rlumz4z/particle-editor.jnlp

Offline Andre Lopes
« Reply #9 - Posted 2013-05-18 16:18:19 »

I will try run it at my Virtual machine with WinXp
I will post the results soon .
Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Andre Lopes
« Reply #10 - Posted 2013-05-18 16:23:28 »

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

Cheesy

Well, until theres a fix i will use with it Tongue
Offline alaslipknot
« Reply #11 - Posted 2013-05-18 16:25:53 »

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

Cheesy

Well, until theres a fix i will use with it Tongue


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

"It's not at all important to get it right the first time. It's vitally important to get it right the last time."
Offline Andre Lopes
« Reply #12 - Posted 2013-05-18 16:36:50 »

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

Offline Andre Lopes
« Reply #13 - Posted 2013-05-18 18:58:12 »

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.<init>(OpenALAudio.java:70)
   at com.badlogic.gdx.backends.openal.OpenALAudio.<init>(OpenALAudio.java:55)
   at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.initialize(LwjglCanvas.java:124)
   at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.<init>(LwjglCanvas.java:68)
   at com.badlogic.gdx.tools.particleeditor.ParticleEditor.<init>(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)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (21 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (56 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (65 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!