Does the lack of Open GL support in Java FX 2 force us to use Swing?

Hi,
We are about to start the development of a major User Interface in Java. Naturally, we would prefer to implement this in Java FX 2, rather than Swing. However, we need to render heavy 3D models (generated from several CAD files) with overlay from 3D point clouds with ~400K points. We already have a Swing implementation that supports this, based on the JOGL API. What I have understood, there are no support for JOGL or similar OpenGL wrapper in Java FX 2. Instead, Java FX 2 seems to aim at a high level 3D API. Based on previous attempts to use similar high level API's in the .NET world (e.g. WPF 3D), high level 3D API's are usually not appropriate when working with large and complex 3D models.
Therefore, I would like to ask for suggestions on what to do here. Do we have to develop our new User Interface in Swing because of this? Or can the announced JavaFX SwingNode be used to wrap such a complex Swing component? If so, how would the performance suffer from the JavaFX wrapping? If the SwingNode doesn't solve the issue and we therefore need to implement the main application in Swing, should we still consider implementing non-3D sub-views with Java FX 2 or should we go for Swing all the way? Our developer group has previous experience from Swing, but none from Java FX. Still, it does not feel right to start the development of a new UI - which we intend to maintain for many years from now - using a deprecated application framework. We are about to decide our way forward here and would really appreciate any thoughts on this topic.
Thanks,
Thomas Berglund

See this StackOverflow question: How to use OpenGL in JavaFX?
It sounds like the best answer for you is the addition of an OpenGL node to JavaFX.
An OpenGL node has not yet been added to the JavaFX platform.
As you have a team of people experienced in 3D development and Java and all of the relevant JavaFX code is open source, I'd encourage you to consider creating an OpenGL node or working with Oracle to create one and (if you are inclined) contributing the development back to the JavaFX code base.  If you are interested in this, contact the openjfx-dev mailing list.
> Do we have to develop our new User Interface in Swing because of this?
I don't think so.
> Or can the announced JavaFX SwingNode be used to wrap such a complex Swing component?
I don't know, but it doesn't sound quite the right approach to me.
It seems a dedicated OpenGL rendering node would be a better fit as long as you don't need other Swing functions in your SwingNode.
> If so, how would the performance suffer from the JavaFX wrapping?
I think if you had a JavaFX Node which was a Swing Node which handled OpenGL then performance would likely be worse than a JavaFX Node that handled OpenGL directly.
> If the SwingNode doesn't solve the issue and we therefore need to implement the main application in Swing, should we still consider implementing non-3D sub-views with Java FX 2 or should we go for Swing all the way?
Either way would work, but I do not recommend mixing the technologies for your application unless you need to.
There are some considerations with mixing JavaFX and Swing:
1. Swing widgets look different from JavaFX widgets (and it's not trivial to make them look the same).
2. You have to learn two toolkits then mentally switch between them when developing (this is just annoying).
3. You have to be (very) careful of threading issues as each toolkit has it's own primary thread.
4. There are some bugs in mixing JavaFX and Swing (search JFXPanel in the issue tracker) that simply wouldn't occur if you weren't mixing libraries (most of these bugs have been addressed but some are outstanding).
5. The Swing functionality isn't going evolve, it's good at what it does, but it is not going to change and get better.
There is (very experimental) work in merging the JavaFX and Swing application threads, which makes a combined programming model a bit nicer to deal with, but it remains to be seen if that experimental feature becomes a default for both platforms.
Unless you want to reuse existing extensive Swing libraries (like NetBeans RCP), a pure JavaFX application seems preferred (as long as the OpenGL node can be worked out).
> Our developer group has previous experience from Swing, but none from Java FX.
There are similarities, previous knowledge of Swing is a benefit, but there are a lot new things to learn in JavaFX (and a few things to unlearn from Swing likely).
My 2c . . . best of luck with your project.

Similar Messages

  • Why does the latest version of HP Support Assistant crash every time I try to use it?

    I have an HP 6730f desktop with Windows 7 preinstalled.  Recently, I was advised to upgrade the HP Support Assistant program by HP through an update message.  Upon doing so, I am unable to start the program without an error message that states that a serious problem has occurred and the program must close.  I have since uninstalled the program entirely. I would,  however, be satisfied with the Support Assistant that came with the computer, but wonder why the updated version does not work...?

    Hello PCJim,
    Have you tried reinstalling the program since uninstalling? It could of just been a bad install that required needing to uninstall / reinstall.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Is apple going to address the lack of alpha channel support in Keynote 6

    Any updates of when Apple will address the lack of Alpha channel support for Keynote 6?

    Thanks for the prompt reply, Gary. I am specifically talking about quicktime animations (.mov files) with clear backgrounds. When they play back in Keynote, the backgrounds are black.

  • Does the iPod Classic 7th generation support movies in the HD format?

    Does the iPod Classic 7th generation support movies in the HD format as well as SD or just SD?

    No, the max resolution for video playback is generally 640x480, as stated in the specs
    http://www.apple.com/ipodclassic/specs.html
    The screen is actually half of that resolution, at 320x240.  HD at 720p is 1280x720.  HD at 1080p is 1920x1080

  • Does the web server of weblogic support any plugins

    Does the web server of weblogic support any plugins similar to the ISAPI plugins for IIS or apache plugins?

    i can't seem to get it to work either AND I can't seem to find an answer here or any search that I do.  It seems that you can only view your calendar and not delegate calendars via the web view

  • Does the HP OfficeJet Pro 8600 support e-print? I am running on Win 7 Pro 64 bit

    Can you please tell me: does the HP OfficeJet Pro 8600 support e-print?  I cannot seem to find or generate or figure out how to create an e-mail address for this printer.  Thank you.
    This question was solved.
    View Solution.

    Hello BoPeepLamb,
    The OfficeJet 8600 Printer does support ePrint. You can access the printers email address by enabling Web Services from the main display on the printer. The icon is located on the top left corner of the screen and looks like piece of paper with circles behind it. Before you can enable Web Services you must make sure you have a valid internet connection first.
    Once you have enabled Web Services, you should have a mobile printing sheet print with a printer code and link to http://www.eprintcenter.com where you can create an account and customize your printers email address.
    If you have any other questions feel free to reply to this post and I will try to find an answer for you.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Does the GeoRaster method SDO_GEOR.exportTo support the Erdas IMG format?

    Hi Everyone,
    Does the GeoRaster method SDO_GEOR.exportTo support the Erdas IMG format, and SDO_GEOR.exportTo method can export what maximum amount of data?
    Best Regards,
    Lin

    Lin, thanks for your suggestion. the gdal-georaster integration is a great one for GIS and professional usages and can do what exportTo can not do even though it was just recently available. note though, all existing georaster functions, including exportTo, are internally built inside the database server from ground up. this enables users to fully leverage the power of enterprise database and grid computing.
    thanks
    jeffrey

  • I have a newer MacBook Pro and I am trying to download my Final Cut Pro 7 Studio 2 on it. Is that possible or does the new MacBook Pro not support anything other than Final Cut Pro X?

    I have a newer MacBook Pro and I am trying to download my Final Cut Pro 7 Studio 2 on it. Is that possible or does the new MacBook Pro not support anything other than Final Cut Pro X?

    As Tom said the FCS forum is the better place to post the question.
    Here is Apple's best practices doc for installing both on the same system.
    BTW, FCP7 is part of the FCS 3 suite of apps.
    Russ

  • Does the JRE 1.5 is supported for the WLS 8.1SP3 client

    Hi,
    Does the JRE 1.5 is supported for the WLS 8.1SP3 client
    Regards,
    Ahamad

    Hi,
    Does the JRE 1.5 is supported for the WLS 8.1SP3 client
    Regards,
    Ahamad

  • Does the UCS C-Series Servers supports PCI/e card digium T1/E1

    Hello,
    Does the UCS C-Series Servers supports/compatible with PCI/e card digium  TE407P/TE420 T1/E1.?
    The server will be used as Asterisk server.
    Thanks
    Philip

    Hi Philip,
    Compatibility will depend on the server model that you have and whether the digium card is a full length, low profile, or half length pcie card.  Take a look at http://www.cisco.com/en/US/products/ps10493/prod_models_comparison.html#~tab-a for details.  If there are any issues with the card itself once it is installed it will have to go through the 3rd party manufacturer.

  • Does the HP ENVY dv7-7240us support two internal hard drives?

    Does the HP ENVY dv7-7240us support two internal hard drives?
    Is this something we can expand ourself without requiring a special chasis?

    Hi,
    Yes, it supports TWO internal HDD's. You may need something similar to this:
        http://www.newmodeus.com/shop/index.php?main_page=page&id=39
    the following video will give you some ideas:
       http://www.youtube.com/watch?v=cLP8kjeLW-Q
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Does the IE CS6 version have Support for the Middle Eastern tool set? - left to right typing etc.

    Does the IE CS6 version have Support for the Middle Eastern tool set? - left to right typing etc.

    I assume IE means International English, as opposed to English North America (aka US English). There is Middle Eastern and Hebrew support via an English user interface for programs that support it such as InDesign.
    You can change the install language by launching the Adobe Application Manager and clicking on your name in the top left to bring up a context menu. From the menu select Preferences and then click the drop down for Languages. See the screen shot below:

  • Does the MSI P965 Neo-F support ECC memory?

    Can it handle 2x 1 GB DDR2 ELPIDA PC2-5300, 667 MHz, ECC
    Does the MSI P965 Neo-F support ECC memory?

    As mentioned by many, No ECC RAMs support.
    To me, I feel that current state of art DDR II RAMs are good enough to not produced much errors and HDDs have error buffer memory of up to 16MB, so ECC makes me feels that it is a "good to have but not a must" thing nowdays.

  • HT2433 what does the error message that says " You are logged out because another computer is using this IP address." mean?

    what does the error message that says " You are logged out because another computer is using this IP address." mean?

    Some other piece of network ghardware on your home LAN (Local Area Network) is using the IP address your Mac is trying to use.
    Reboot both your modem and router, or the Modem/Router combo box you have, and all pieces of networking equipment, computers and printers, you have connected to your LAN.
    If you continue to get that error then it is a bug in OS X or you have your Mac set to a Static IP address that is being handed out by the routers DHCP server to some other device.

  • HT5622 why does the wrong apple id come up on my iphone when I try to use apple app store?  how do I change it to the correct apple id?

    Why does the wrong apple id come up on my iphone when i try to use apple app store?  How do I change it to the correct apple id?

    Settings > iTunes and App Store > Apple ID = Sign Out... Then Sign In using the preferred Apple ID.
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID

Maybe you are looking for

  • How can I set the 'Arrange By' state of each folder independently?

    This is a particularly useful feature of XP & later systems - setting Arrange By of an active folder gives it that state until it is individually changed. This streamlines contents access because, for example it is frequently faster to identify appli

  • Help!!  Please!  CF 8.0.1 Multi-Server/Solaris 10/WebServer 7

    Good afternoon, I'm having a bit of a bizarre problem, and I cannot locate the root cause. My environment is:  Sun E5220 running LDOMS V1.3 software.  I have a 4 processor node configured with Sun Solairs 10u5, Java SDK 1.6.0_25-b06 SE Runtime Enviro

  • Printing wirelessly through Time Capsule

    Can I do that? My iMac is connected via ethernet to my time capsule. If I connect ANOTHER ethernet from time capsule to the printer: A) Will MacBook recognize it as a viable printer B) Will I be able to print?

  • Accidentally deleted Iphoto and Imovie

    I know it sounds hard to do, but I did it nonetheless and deleted both Iphoto and I movie from my macbook. I had to do an archive and install and copied a newer version of both from the external hard drive that i took out and replaced since it was da

  • Paper mismatch on Envy 114 - trying to do custom-sized paper

    I just got the Envy 114.  It's been printing wonderfully for letter-sized documents.   Issue is:  I have custom-sized paper for invitations - 5X6.5, 5X6, 5X5.5 & 5X5.  I am not able to print from Microsoft Word 2007, I'm on Windows XP.   I tried to f