LGDX 2D Level Editor - ALPHA 1 - Stress test

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby csshenouda » Fri Mar 18, 2011 1:16 pm

Strange, I'm on Win7 Ultimate 64 bit, too.
Java: 6.0.220
No problems running Obli's version.
It worked on Ubuntu 10.04, too.
csshenouda
 
Posts: 7
Joined: Fri Mar 11, 2011 10:04 am

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby csshenouda » Fri Mar 18, 2011 2:52 pm

Obli, is there a tool like your PhysicsEditor (to autotrace sprites for collision) for libgdx?
csshenouda
 
Posts: 7
Joined: Fri Mar 11, 2011 10:04 am

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby Obli » Fri Mar 18, 2011 6:58 pm

It's not mine ;-)
I'm working on an algorithm to auto-trace shapes for collision, yes. It won't take long so it will be ready next week (I'm still on holidays until next monday). For now, the manual collision definition is the only way to go.
Obli
 
Posts: 616
Joined: Mon Jan 10, 2011 6:18 pm
Location: Bordeaux, France

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby csshenouda » Fri Mar 18, 2011 7:09 pm

That's great news! :)
No rush though, enjoy your holidays :)
csshenouda
 
Posts: 7
Joined: Fri Mar 11, 2011 10:04 am

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby jbrin » Tue Mar 22, 2011 6:41 am

I had a chance to tinker with the editor a little bit over the weekend and I just wanted to thank Obli and the rest of the libgidixers. It's awesome to be able to click save and jump right into the game in a matter of seconds. The quick turn around time that comes from this editor really goes hand-in-hand with libgdx and provides for a much more pleasurable experience over using the emulator or running on a device. So, thanks guys. Thangs.

tl;dr I'm really diggin this editor a lot. :D
-Jason
jbrin
 
Posts: 71
Joined: Thu Dec 30, 2010 9:16 pm

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby gururise » Tue Mar 22, 2011 4:30 pm

Thanks for the Alpha version! I tried using it on a Windows XP (32-bit) machine with the latest sun JVM, and it starts up fine, but as soon as I start messing with it, it begins to flicker like crazy, and though the buttons still work, the flicker makes it almost unusable.
gururise
 
Posts: 8
Joined: Wed Feb 09, 2011 10:23 pm

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby Obli » Tue Mar 22, 2011 4:51 pm

What is flickering ? The render area or the entire interface ?
Obli
 
Posts: 616
Joined: Mon Jan 10, 2011 6:18 pm
Location: Bordeaux, France

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby syl » Tue Mar 22, 2011 9:37 pm

hello, when i point to a texture (so just before trying to apply to shape), i get this (and it's not displaying) :

Code: Select all
22 mars 2011 22:33:48 leveleditor.ui.ImagePanel setImageFromFile
GRAVE: null
javax.imageio.IIOException: Can't read input file!
        at javax.imageio.ImageIO.read(ImageIO.java:1275)
        at leveleditor.ui.ImagePanel.setImageFromFile(ImagePanel.java:50)
        at leveleditor.ui.ImagePanel.setImageFromFile(ImagePanel.java:33)
        at leveleditor.ui.MainWindow.res_files_listValueChanged(MainWindow.java:1162)
        at leveleditor.ui.MainWindow.access$3600(MainWindow.java:33)
        at leveleditor.ui.MainWindow$38.valueChanged(MainWindow.java:1006)
        at javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
        at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
        at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
        at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
        at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
        at javax.swing.JList.setSelectionInterval(JList.java:2035)
        at javax.swing.plaf.basic.BasicListUI$Handler.adjustSelection(BasicListUI.java:2727)
        at javax.swing.plaf.basic.BasicListUI$Handler.mousePressed(BasicListUI.java:2683)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
        at java.awt.Component.processMouseEvent(Component.java:6286)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6054)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4652)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4482)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4482)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:603)
        at java.awt.EventQueue$1.run(EventQueue.java:601)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:617)
        at java.awt.EventQueue$2.run(EventQueue.java:615)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
22 mars 2011 22:33:49 leveleditor.ui.ImagePanel setImageFromFile
GRAVE: null
javax.imageio.IIOException: Can't read input file!
        at javax.imageio.ImageIO.read(ImageIO.java:1275)
        at leveleditor.ui.ImagePanel.setImageFromFile(ImagePanel.java:50)
        at leveleditor.ui.ImagePanel.setImageFromFile(ImagePanel.java:33)
        at leveleditor.ui.MainWindow.res_files_listValueChanged(MainWindow.java:1162)
        at leveleditor.ui.MainWindow.access$3600(MainWindow.java:33)
        at leveleditor.ui.MainWindow$38.valueChanged(MainWindow.java:1006)
        at javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
        at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
        at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:137)
        at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:668)
        at javax.swing.JList.setValueIsAdjusting(JList.java:2110)
        at javax.swing.plaf.basic.BasicListUI$Handler.mouseReleased(BasicListUI.java:2784)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
        at java.awt.Component.processMouseEvent(Component.java:6289)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6054)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4652)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4482)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4482)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:603)
        at java.awt.EventQueue$1.run(EventQueue.java:601)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:617)
        at java.awt.EventQueue$2.run(EventQueue.java:615)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)



arch linux here. java version is :
Code: Select all
[sylvain@syl-arch libgdx-2dlvleditor]$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

I ran with java -jar LevelEditor.jar
syl
 
Posts: 212
Joined: Mon Nov 01, 2010 10:25 pm
Location: Bordeaux, France

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby gururise » Wed Mar 23, 2011 1:40 am

Obli wrote:What is flickering ? The render area or the entire interface ?


On my Windows XP (32-bit) box, the entire interface is flickering, including the render area. I just tested it on my Ubuntu 10.10 (64-bit) box, and it seems to not flicker there; however, the preview window for textures does not seem to show anything even after selecting a texture on Linux.
gururise
 
Posts: 8
Joined: Wed Feb 09, 2011 10:23 pm

Re: LibGDX 2D Level Editor - ALPHA 1 - Stress test

Postby warrd » Thu Mar 24, 2011 2:18 pm

Obviously in early stages, but looks really interesting!

One thought: If you define shapes in box2d as simply a set of edges rather than polygons, there would be no need to set a collision mask, define shapes in counter clockwise order, and be limited to convex hull. You could then start thinking about implementing things like bezier curves etc. :)

@Nates : Where did you find the source? Only a jar is provided..
warrd
 
Posts: 3
Joined: Thu Mar 24, 2011 1:33 pm

PreviousNext

Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 1 guest