Javafx and opengl

Some body used java opengl with javafx? i read about java3d with javafx but we all informatic student see java3d slow and not efficient
-Diego

864728 wrote:
But you can still do the reverse, embedding JavaFX into a swing application.I have already made this by creating a JFXPanel (which contains a JavaFX scene graph) and adding this one to the JFrame, over a GLCanvas layer.
But I don't know how to set the JFXPanel position (to the top-right corner for example). I try to apply some translation, but it doesn't work.You'll have to use Swing/AWT features and layouts for that.
http://download.oracle.com/javase/tutorial/uiswing/layout/index.html
This is a little problem in my application because I want to show/hide some panels or group of buttons over the GLCanvas...Sounds like a JLayeredPane might help.
http://download.oracle.com/javase/tutorial/uiswing/components/layeredpane.html
Any specific problems with that would be better posted in the Swing forum. JFXPanel is a Swing component (it inherits from JComponent).
db

Similar Messages

  • How do I use Qt and OpenGL with Visual Studio

    Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio.
    I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of
    Embedded firmware design(C and Assembly).
    The Visual Studio Version I have is 2013 ultimate. How do I use Qt and OpenGL with Visual Studio?
    Thanks
    Alexandros

    Hi ClassicalGuitar,
    The forum supports VS setup and installation. And your issue is not about the forum. I will move the thread to off-topic forum. Thanks for your understanding.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • PSE 11 and OpenGL/CUDA

    Is PSE 11 supporting CUDA or/and  OpenGL? Nvidia GeForce 660., WIN7
    Does PSE 8? Any Threat?
    Thanks

    OpenGL is needed to display 3D Pixellate and Pan n Zoom themes in Full Screen View in PSE11 as well as 8.
    Can you please explain your question and the threat you are suspecting?
    Thanks
    Andaleeb

  • 6770m and OpenGL

    Ok, so I am still having issues with my GPU and games using OpenGL. I have already applied the correct  BIOS fix for my particular model of dv6 machine. I am positive that I am running in Fixed mode, as my Catalyst Control Center options are now showing that I am running on the discrete GPU. I can further confirm this from the fact that Battlefield 3 and other games not utilizing OpenGL now have no issues whatsoever.
    Today I finally got the time to test whether or not OpenGL games would work on my laptop. I attempted to start up Amnesia: The Dark Descent, which utilizes either OGL 2.0 or 2.1. I would assume the BIOS fix would allow my laptop to run this game easily. However, upon attempted startup, I get the "AMD graphics driver has stopped working and has recovered" error.
    I am fairly sure that my drivers are updated, as I have recently updated through HP support. I did download the Battlefield 3 and Rage support drivers from AMD. Could this be causing issues? Or is it something else?

    I honestly think you were missing my point. I had downloaded the recent drivers from AMD and HP, and OpenGL seemed to be working, but I couldn't find CCC anywhere on my machine.
    However, CCC finally popped up when I downloaded it from your driver search through AMD's stie. I did a Driver Sweeper run before that, and it still wasn't popping up.
    I tested Battlefield 3 and Amnesia (uses OGL), and everything seems to be working.
    I think my issue is resolved. 

  • Getting started using c++ and Opengl

    Hi all,
    I hope this is the right section to post this question. I am trying to getting started in developing little games in C++ usign Opengl. I have tryed to look for some documentation and understand how to set up my dev environment. I am a little bit confused on wich version of OpenGl to install and whether or not I need to support it installing particular drivers.
    This are the information on my VGA controller obtained typing "lspci -v"
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
            Subsystem: Dell Device 0571
            Flags: bus master, fast devsel, latency 0, IRQ 35
            Memory at f2400000 (64-bit, non-prefetchable) [size=4M]
            Memory at e0000000 (64-bit, prefetchable) [size=256M]
            I/O ports at 5000 [size=64]
            Expansion ROM at <unassigned> [disabled]
            Capabilities: <access denied>
            Kernel driver in use: i915
            Kernel modules: i915
    01:00.0 VGA compatible controller: NVIDIA Corporation GF116M [GeForce GT 555M/635M] (rev a1) (prog-if 00 [VGA controller])
            Subsystem: Dell GeForce GT 555M
            Flags: bus master, fast devsel, latency 0, IRQ 39
            Memory at f0000000 (32-bit, non-prefetchable) [size=32M]
            Memory at c0000000 (64-bit, prefetchable) [size=256M]
            Memory at d0000000 (64-bit, prefetchable) [size=64M]
            I/O ports at 4000 [size=128]
            Expansion ROM at f2000000 [disabled] [size=512K]
            Capabilities: <access denied>
            Kernel driver in use: nouveau
            Kernel modules: nouveau
    Any help is much appreciated!

    Not sure I understand what you're trying to do/install and why based on your post. But since it sounds like you're trying to jump right into the middle of it and I "got started using c++ and opengl" without having any clue of anything a week or so ago, here's some random stuff that would have saved me a lot of time:
    - I don't think nouveau is so great for opengl - you're probably better of using the proprietary nvidia driver (which isn't great for development, but still, better / necessary). You seem to be on a laptop? Then you might need one of those bumblebee / optimus things which makes the situation a lot worse. I never had to use those things, but based on various random posts I came across while I was breaking & fixing my own opengl stuff, everything seems to be even more confusing & glitchy/breaky for the people who have to use it on TOP of the whole rest. You might waste a lot of time looking for errors in your code when there are none and it's really just that optimus/bumblebee thing messing stuff up. Which is TERRIBLE if you're just getting started, so you probably should think about using a different machine with a "real / normal" graphics card for this until you have seen "how opengl is supposed to behave" without this additional source of messy breakage.
    - New to c++ and confused with including / linking etc? If so: Try cmake (google "findpackage.cmake" for whatever you need, look at some cmakelist.txt's for programs similar to what you want to write) - that might get you started a lot faster while you're still not sure what you need/want and enables you to learn the boring stuff piece by piece when you really need it (as opposed to all in one giant boring heap before you can even try anything fun).
    - Kdevelop (or any IDE that has some support for cmake + GOOD syntax completion) also helps a LOT in the beginning.
    - For a start, you just need a modern opengl context. The rest  (glew, glut, opengl, etc) will probably somehow fall into place once you made your choice there and just start with that. SFML is probably the most comfortable to offer an opengl context for a beginner (SDL can be a bit stubborn if you're as clueless as I was. I also tried several others and they all seemed rather "brittle", leading to confusing results if you try to use them while not having much of a clue yet).
    - If you already know some C++/opengl, "those pesky :: 's" don't confuse you as much as they did me when I took a first look, and you don't necessarily want to try doing everything very lowlvl (write your own shader class etc) at first until you understand stuff, you can also try to use qt5's opengl context from the start (I'm switching to it now that I need a GUI in addition to raw opengl).
    - After you manage to draw some obsolete opengl stuff (glbegin() tutorials are everywhere) to confirm that you managed to create your gl context, it probably makes sense to forget about "glbegin" again right away and focus on ShaderProgram/VAO/VBO. It might make sense to to create + render a VAO manually first to get a better understanding of what they are/do... but on the other hand, you can also safe a lot of time if you use premade ShaderProgram/VAO/VBO classes (I think qt5 has all of those) instead right away.
    - At the point you manage to get a VAO rendered in your context, you probably won't rely on finding information specific to your framework (p.E.: linux/qt/nvidia stuff/sfml) so heavily any more and can look for general opengl / VAO / VBO / Open Shader Language stuff - which is all over the place and easy to find.
    - Limiting your googling to THE LAST YEAR when you look for opengl/c++ stuff might get you a lot less confusing / obsolete results.
    Good luck!
    Last edited by whoops (2015-02-17 09:07:16)

  • Future of JavaFx and commitment from Sun

    Hi All,
    I wanted to get some insight into the level of investment an organization could make into adopting JavaFX as the preferred UI technology for their products/applications. Is Sun committed to promoting JavaFX and making it production quality and implementing with time all the missing UI components? What is th efuture of JavaFx after the Sun-Oracle merger?
    thanks
    Sanjeev

    Hi Sanjeev
    in my opinion:
    JavaFX is a promising technology but it is currently too green to consider use in a serious application. To my knowledge, only one company has so far released a serious product written in JavaFX (Indaba), but I've never used it and they themselves describe it as "alpha". I believe Indaba went with JavaFx because they were reliant on Java APIs (they were originally going to use Flash)
    The JavaFX team seem to be working hard on improving the technology, particularly around performance, however it is still quite buggy, and this will hamper efforts to produce a serious application. Also, as you mention, there are gaps in the components available for use in applications. There is also work going on for tooling.
    There are very little public facts available on the future of JavaFX (aside from sporadic marketing pushes). Oracle made a public commitment to JavaFX at JavaOne, but I don't know whether you can bet a corporate strategy on that alone. We know that future releases are coming, albeit at a slow pace.
    It would be great if Sun/Oracle could come up with something more detailed, as I think that (alongside a stable platform) would do a lot to increase the confidence of developers.
    My guess is that it will end up as a stable technology, though I've no idea how long this will take. To that end, I would closely monitor the progress of the technology but maybe not adopt it as the preferred technology just yet.

  • Using javafx and awt together in MAC

    I have read blogs about not using SWT and AWT libraries together in MAC systems. So, are their any constraints for JAVAFX and AWT as well ?
    Please refer to this link.
    I am having a similar case of writing an image to disk and I am using javafx, the line doesn't seem to work on my mac.
    Message was edited by: abhinay_agarwal

    The link you posted on SWT/AWT integration is irrelevant to JavaFX/AWT integration.
    To learn abount JavaFX/Swing integration, see the Oracle tutorial trail:
    JavaFX for Swing Developers: About This Tutorial | JavaFX 2 Tutorials and Documentation
    As Swing is based on AWT, the tutorial trail is equally applicable whether you are integrating JavaFX with only AWT or with the full Swing toolkit.
    In my opinion, there is little reason to integrate JavaFX with just the AWT toolkit as there is little of value that AWT would provide that JavaFX does not already provide.
    JavaFX integrates fine with ImageIO to write files to disk, Oracle provide a tutorial for that (see the "Creating a Snapshot" section):
    Using the Image Ops API | JavaFX 2 Tutorials and Documentation
    //Take snapshot of the scene
    WritableImage writableImage = scene.snapshot(null);
    // Write snapshot to file system as a .png image
    File outFile = new File("imageops-snapshot.png");
    try {
      ImageIO.write(
        SwingFXUtils.fromFXImage(writableImage, null),
        "png",
        outFile
    } catch (IOException ex) {
      System.out.println(ex.getMessage());

  • JavaFx and JSF

    Hello,
    Is it all right to use JavaFX with JSF. Any problems can be experienced getting JavaFx and JSF work together.
    Regards

    My problem is before the client-server communication starts. I have to pass some information to the standalone JavaFX application from a web application. These information is needed to load specific data from the backend. On the startup of the application I could use the jnlp properties, but if the user does another selection in the web application and the JavaFX application is already open, I have to provide the selection to the JavaFX app. This inter process communication could be completely on the client side I think. So I have seen that ActiveMQ provides a javascript api to send JMS messages. Probably this could be a solution if it is possible to set up the JMS queue on client without application server. I do not know if this is possible by now.

  • JavaFX and heavyweight awt components

    Can somebody point me to documentation on what's the deal with javaFX and heavyweight components?
    I have been wrapping an awt.Canvas into a SwingComponent. This basically seems to work. It does not obey layout rules, but I think I can work around that. However, soon as the mouse goes over the node, the canvas starts to move around (while the SwingComponent stays in place). I have - to my best knowledge - not set up mouse interaction in any way.
    Using
    visible:false
    on the node, housing the SwingComponent with the Canvas is the only thing I found to make the canvas stay in place (it does not hide it..). But that looks like a hack, likely to fail sooner or later. So, I'd like to learn more about what's the contracts here. I don't care for much more than desktop profile in the moment.
    thanks
    nils

    I got this problem too
    For the moment, i just put a rectangle on top of the awt component , and set the blockMouse "True".
    But when i try to translate the component location, i couldnot find a proper solution, the component just dont move at all.

  • JavaFX and wWebGL

    Ok, I finally got webgl into my javafx app. Kind of. I used the Selenium cobrowser to push data into both a chrome and Firefox session. It works well! Check it out here: http://tinyurl.com/afy745y
    Take care,
    Pat

    Iam Alfonso Franco a freelancer java please tell me in details what do you want on JavaFx and Spring CRUD Iam going to compile something with this tell me to e-mail [email protected] Thanks ...

  • JavaFX and Smart GWT

    Hi,
    I have a requirement to use Smart GWT component in JavaFX.
    I have a basis question..
    1. Can we integrate Smart GWT components in JavaFX?
    2. If we integrate Smart GWT in JavaFX then how the perfomance would be..will be fast or slow? I mean loading the GWT components in JavaFX Application.
    3. Is there any RAD Plugins for JavaFX and Smart GWT? there is one plugin called efxeclipse for JavaFX.. but it didn't work..  ( I tried in RAD).
    Fredrick

    > 1. Can we integrate Smart GWT components in JavaFX?
    Yes, display your GWT component in a WebView.
    > 2. If we integrate Smart GWT in JavaFX then how the perfomance would be..will be fast or slow? I mean loading the GWT components in JavaFX Application.
    Use the 32 bit JVM which includes a JIT compiler for JavaScript in WebView.
    Performance is going to be similar to displaying a GWT component in any web browser.
    > 3. Is there any RAD Plugins for JavaFX and Smart GWT?
    JavaFX has a RAD tool (SceneBuilder), but that is focused on JavaFX component use, not GWT component use so it will not assist you.
    If there is any GWT RAD tool (I don't know of any), you can use that - you don't need anything JavaFX specific because if you are developing GWT, you are not developing JavaFX, the most you would be doing is wrapping the GWT component in a JavaFX WebView with some (hopefully minimal) communication between the GWT component and the JavaFX application.
    > efxeclipse for JavaFX.. but it didn't work
    e(fx)clipse works very well for JavaFX development, it just has absolutely nothing to do with GWT, so it is not a tool for GWT development.

  • Javafx and RecordStore problem

    Hi,
    I am creating a contact management mobile app with javafx, and I am using a RecordStore to store the data. As long as the emulator is open I have verified that the records are being added to the recordstore.
    However when I close the emulator and re start the app, the recordstore disappears, and it recreates the store (it says it has 0 records).
    I am using netbeans, and using the mobile profile.
    Any help will be highly appreciated...
    thanks in advance

    I wasn't sure what is RecordStore but apparently it is MIDP's way of persisting data.
    As it shows, I have little knowledge of JavaME, so I don't know if that's a problem with the emulator or the usage of RecordStore within JavaFX or something else.
    Now, perhaps you can use the [javafx.io.Storage|http://java.sun.com/javafx/1.2/docs/api/javafx.io/javafx.io.Storage.html] class for persisting data, it is designed to work both in JavaME and on desktop.
    It might offer less features than RecordStore, though.

  • JavaFX and RIA's

    Hello all,
    I am new to the world of JavaFX and I was looking forward to create a RIA that's at par with the apps made using Flex SDK. Are Java FX and Flex comparable? If so, let me know how to get started with JavaFX to help me create a nice web application which provides visually attractive UI to the client.
    Thanks,
    Varun

    sorry I don't know much of JavaFx, is a rich framework of sun, right?
    you can see the road map of JavaFx here: http://javafx.com/roadmap/

  • JavaFX and multimedia

    Hello!
    I have some general (abstract!) questions about JavaFX and programming multimedia applications.
    JavaFX is made for web, desktop and mobile applications. And I could use all kind of J2SE-API´s which are available for the specific platform.
    So how does it supports programming multimedia applications? Are there any other frameworks or which kind of possibilities do I have with JavaFX itself?
    I know this a very abstract questions, but perhaps you could give me some hints / buzz words, so I can start searching for it. The background of this question: I have to compare the multimedia possibilities with other technologies like Silverlight or Flex. First I have to list these possibilities and then make an evaluation (what´s good - what´s bad, easy to use, also for a non-programmer, ...).
    Perhaps someone could help me.
    Thanks a lot in advance & Best Regards.

    @InteractiveMesh:
    Yes, I see that I could use every Java-API which will be available on this platform, so Java 3D is included in the J2SE and therefore I can use it.
    On mobile phones with J2ME I can´t use it. But how could I know, programming in Eclipse/NetBeans, what API's are avaliable? Do I have to look into the documentation or is there any kind of help of the IDE?
    @PhiLho: I know that it is a broad area. I target no specific platform, the question is an "open one".
    I do not have a special functionality I have to include, I have to give an overview.
    Hm, do you think I should list GUI elements like described here:
    [http://java.sun.com/javafx/1/tutorials/ui/|http://java.sun.com/javafx/1/tutorials/ui/]
    Do you mean with that I could find all on the JavaFX website sth. like adding images or movies, creating animations?
    Or should I walk throught the samples on http://www.javafx.com/samples/ and search for examples with multimedia?
    So I have to search for all multimedia frameworks which Java offers and all which JavaFX + frameworks will offer to me?
    Thanks a lot in advance & Best Regards.

  • JavaFX and JDK 1.7.x? (x=latest minor build as of 5/13)

    Good morning.
    I was playing around with building a standalone GUI app last night and wanted to test drive JavaFX 2.0 as the tool to build the UI. After reading through the documentation on the download site, I downloaded the JDK version 1.7.x (64 bit) and tried to create a simple main class based on http://docs.oracle.com/javafx/2/get_started/hello_world.htm--but eclipse could not find javafx.application.Application. I made sure that the JDK 1.7 was my target Java and in my build path then decided to try the 32 bit version. I still could not find javafx.application.Application in my build path. So...I downloaded the latest JavaFX package and installed that, pulling in the correct jars (I forget what they are offhand...it was late and FX is new to me) and I could now find javafx.application.Application. My question is this...did they not bundle FX with the jdk as the documentation claims, or was I missing something when I downloaded the installer (for Windows)?
    Thank you in advance!
    -Chris

    My question is this...did they not bundle FX with the jdk as the documentation claims, or was I missing something when I downloaded the installer (for Windows)?JavaFX is bundled with java 7 (post update 6).
    JavaFX is not on the classpath for java 7.
    JavaFX is on the classpath for java 8.
    For eclipse development, development with e(fx)clipse is recommended http://www.efxclipse.org/ - it is smart enough to find out where JavaFX is in a standard Java 7 installation and place it in the classpath so that you don't get class not found exceptions while developing. It can also create deployment bundles which are able to automatically find and place JavaFX on the classpath so that users of your application don't have this issue either.
    http://www.efxclipse.org/trac/wiki/Tutorial1 e(fx)clipse getting started tutorial (e.g. an eclipse version of the JavaFX hello world tutorial you mentioned).

Maybe you are looking for

  • What is Part Number

    Hi All, What is Part number. When I print GR/GI slip, its appearing. From where systems picking this Part number. Regards, Sureshbabu G.

  • Slow running MacBook Pro

    I have a mid-2009 MacBook Pro 2.26 GHz w/4GB 1067 MHz DDR3 running OS 10.6.8. It is the slowest laptop I have ever owned and now takes forever to open simple spreadsheet files, etc... I have pretty much hated this since I purchased it new, but am mar

  • Tamil font cant copy to FCP 6 text

    I have this problem. Whenever i copy Tamil font from outside to FCP text box, the fcp wont recongnise and show me alien font. However, when i type inside the fcp text box, it works fine. Its works fine in OS 10.4.11 and FCP 5.1.4. May i know how can

  • Can I use the itunes since the latest update to delete music from my iphone 4?

    I thought I used to be able to right click and choose delete but that's not an option anymore. Any help?

  • How to screen shot

    How do you screen shot and then retrieve it on a MacBook Pro? Thank you