Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (578)
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  
  IMPORTANT: API Changes to the com.xith3d.userinterface package (RFC)  (Read 954 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Posted 2005-09-24 10:41:49 »

Hi,

I have been threatening for a while to move the userinterface package out of the core and into the toolkit for two reasons:
a) this will open it to more community development
b) it really doesn't need to be in the core

I only realised when I tried to move the code that in fact there were references to the code in View.java and Canvas3D.java.  Fortunately these were not critical and I have found a way to make it work without this coupling.  Unfortunately a side-effect of this is that the API has changed (beyond just the package rename).

There are three changes you will need to make to your code if you use this package.  They are detailed here: http://xith.org/SwingUIChanges

I have created an experimental build encorporating these changes:  http://xith.org/download/builds/2005-09-24_experimental-swingui/Xith3D_2005-09-24_experimental-swingui.tar.gz

You will need to include the xith-tk.jar file in your classpath.

I believe that so long as you make the threechanges I have said, your code shouldwork perfectly.  I will wait a few days to allow for comments before committing this change.  The "Xith3DGuiTest" has been updated (and moved to the org.xith3d.test package) to reflect these changes.   Prior to comitting I will update the package level javadocs to reflect the new aim of the package.   There are no plans to keep the deprecate the old package, it will simply be removed.

This package needs a maintainer.  If you want to take it on board, be my guest!  I believe the concept is very sound, we just need someone who can commit themselves to bugfixes Smiley

I hope this annoucement is a satisfactory warning to users of this package.  If you have any issues with these changes please raise them in this thread ASAP.

Regards,

Will.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2005-09-28 03:37:32 »

These changes have been applied.

More information, and a perminent record of these changes is located here: http://xith.org/SwingUIChanges

Will.

Offline croft

Junior Duke




Java, Java, Java


« Reply #2 - Posted 2005-09-28 20:00:52 »

These changes have been applied.

More information, and a perminent record of these changes is located here: http://xith.org/SwingUIChanges


OK, I made the changes and it worked in my project.

At first I was having a problem with flickering and scaling during animation.  I had the call to newFrame() after renderOnce() instead of the other way around as your instructions recommend.  When I fixed that and it start working fine.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2005-09-29 00:35:56 »

Hi,

Thanks for your feedback, I am glad it worked eventually.

That is odd regarding the newFrame business, I analysed the source code and to me it looked like it would have been called before the scene was rendered.  That said, the userinterface package is not one I fully understand (partly why it is now in the toolkit).  I will be interested to hear the results of others making the change.  I shall amend my documentation.

Cheers,

Will.

Offline croft

Junior Duke




Java, Java, Java


« Reply #4 - Posted 2005-09-29 18:04:06 »

That is odd regarding the newFrame business, I analysed the source code and to me it looked like it would have been called before the scene was rendered.  That said, the userinterface package is not one I fully understand (partly why it is now in the toolkit).  I will be interested to hear the results of others making the change.  I shall amend my documentation.


I may have miscommunicated.  Your instructions were correct.  I did it wrong.  When I re-read your instructions, I was able to fix.  No need to correct your instructions.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #5 - Posted 2005-09-30 09:50:24 »

Oh, I shall uncorrect them then Smiley

Will.

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.

DarkCart (16 views)
2014-10-31 21:44:48

DarkCart (21 views)
2014-10-31 21:43:57

TehJavaDev (40 views)
2014-10-27 03:28:38

TehJavaDev (31 views)
2014-10-27 03:27:51

DarkCart (44 views)
2014-10-26 19:37:11

Luminem (27 views)
2014-10-26 10:17:50

Luminem (30 views)
2014-10-26 10:14:04

theagentd (36 views)
2014-10-25 15:46:29

Longarmx (64 views)
2014-10-17 03:59:02

Norakomi (62 views)
2014-10-16 15:22:06
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!