Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 1:33 pm

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Oct 24, 2007 1:28 pm 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
For those of you wanting another GUI option, I have mercilessly ripped off JMonkey Engine's JMEDesktop and converted it to Slick.

JMEDesktop allows you to create a Swing GUI and render it in your 3D app.

At the moment only mouse input is working for the in game GUI, but if there is any interest I'll get keyboard input in ASAP and try to host the classes somewhere.

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 5:18 pm 
Offline
Game Developer
User avatar

Joined: Sun Nov 12, 2006 8:40 pm
Posts: 578
sounds cool, got any screenshots ? :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 10:49 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1477
Wicked! I tried at this a while ago and gave up pretty quickly... can't wait to see how you did it. :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 2:30 pm 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
Here is a screenshot of the GUI running on top of the GradienTest program. I haven't had time to put in key input yet, and there is an issue with popups that I'll have to look into, but... it works :P

Image

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 4:16 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Increadibly cool stuff! When can I try it! :)

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 7:37 pm 
Offline
Oldbie

Joined: Tue Nov 28, 2006 6:18 pm
Posts: 429
All I'll say is: wow.

- Jon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 12:13 pm 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
Anyone know of a site I can host the source files on?

The code is missing some features from the JME version
    - mip-mapping (probably only useful for a fully 3D GUI)
    - drag-n-drop

and the pop-ups don't work properly yet.

Apart from the above, the keyboard and mouse input is working so it is fully usable.

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 12:27 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Do you want SVN or just somewhere to host a bunch of files in a ZIP?

There's java.net, sourceforge etc, or can give you access to SVN for Slick and you can create a sub-project if you're interested.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 12:58 pm 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
Hi Kev,

SVN would be good so we can keep everything Slick related together and up to date. You can send the details to the email address I registered with.

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 1:16 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Sent,

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 2:21 pm 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
Ok folks, thanks to Kev the source for SlickDesktop is now available at

https://bob.newdawnsoftware.com/repos/s ... ickDesktop

Any feedback on how it works in games, on different setups, etc. is welcome.

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 27, 2007 8:51 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Works fine here. I've modded the code locally to be 1.4 compatible (I still work there atm - though this looks likely to change v soon, 1.6 time :)).

Performance impact is pretty high at the moment.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 29, 2007 6:57 am 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
Quote:
Performance impact is pretty high at the moment.


Yeah, the big hit is copying the data from the BufferedImage into the texture. I can't see any way around that though.

Also, it looks like from this post that there is a problem with popups and 1.6 so I don't think there'll be a fix for that one.

Cheers,
Brett


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 8:56 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Any progress on this? I was thinking of taking a look but if you're in progress I'll leave it alone.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 08, 2007 1:40 am 
Offline

Joined: Tue Jul 24, 2007 8:43 am
Posts: 22
As far as the popup issue is concerned it seems to be fixed in the early access version of the JDK I just downloaded, so it seems to be something specific to earlier versions of 1.6

For the performance impact, I haven't been able to think of a way to speed this up. There is no way that I can see to get around having to copy the dirty region of the image (or in the case of no sub image support, the entire image) into the GL texture. If you can see any way to speed this up then by all means add it to the code :D

I started playing around with making a sort of 'transaltor' to map all the AWT graphics calls to Slick graphics ones so that Swing thought it was drawing normally but the whole GUI would be accelerated but I haven't had any time lately to work more on this (not to mention implementing a fully featured SlickAWT would be a whole lot of work)

Cheers,
Brett


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group