J3D and Fullscreen

I'm working on a simple engine for 3d online games (a demo can be found at http://www.elet.polimi.it/upload/arrigoni/j3drpg.html).
I see that with many but not all the video cards Canvas3D simply does not update, but input and behaviors work propertly.
I distilled this simple example:
import javax.swing.*;
import javax.media.j3d.*;
import com.sun.j3d.utils.universe.SimpleUniverse;
import com.sun.j3d.utils.geometry.ColorCube;
import java.awt.*;
public class Test
extends JFrame
public Test()
setSize(800, 600);
Canvas3D canvas3D = new Canvas3D(SimpleUniverse.getPreferredConfiguration());
getContentPane().add("Center", canvas3D);
BranchGroup objRoot = new BranchGroup();
objRoot.addChild(new ColorCube(0.5));
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(objRoot);
public static void main(String[] args)
Test test = new Test();
test.setUndecorated(true);
// test.setVisible(true);
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice device = env.getDefaultScreenDevice();
device.setFullScreenWindow(test);
If I use "test.setVisible(true)" it works fine but if I try to display it in fullscreen Canvas3D is WHITE... (but other components can be correctly displayed)
can anyone help me?
thx
Mario

What OS are you on? I know that thefolk who are working on the Jight Weight Java Game Library which is an OpenGL library (Did you download the OpenGL or DirectX version of the Java3D API?) are having troubles with getting a white screen on OSX machines. They seem to think it's connected with high screen resolutions, so if this sounds like your setup, you may look into it. Or if you have your screen set to an extremely high resolution anyway, it couldn't hurt to look at it!
CaseyB

Similar Messages

  • Problem with Wine, NVidia and fullscreen games

    Hi,
    I'm writing about a problem i recently noticed with wine, nvidia gpu and fullscreen 2d games.Basically the problem is as follows - i am running arch with the latest kernel and nvidia drivers on Thinkpad T61 with NVidia Quadro NVS 140M. I have a problem with old 2d games like Red Alert 2, Baldur's Gate, Icewind Dale, Diablo 2, Heroes 3. All of these games do not support the native 1440x900 resolution of my screen and all of them work fine in window mode but crash if fullscreen is selected. I managed to get some of them working by making them work at higher resolutions. For example although Red Alert 2 does not support 1440x900, it can be easily made to work at that resolution and after i applied the necessary settings it worked. The same was with Heroes 3 - by default it does not support 1440x900 and it used to work only i window mode but there is a HD mod which allows it to run in higher resolutions and after i applied it it worked perfectly in fullscreen. I haven't thested Baldur's Gate and Icewind Dale but i think it will work there too.
    The problem is that i cannot use this approach to all games - for example i must run Diablo 2 and Starcraft in their original resolutions. I read somewhere that the problem is that wine can only change between the resolutions described in the xorg.conf file and if doesn't find the necessary resolution the game will crash or will only take the portion of the screen that is its resolution - for example when i play Starcraft rather than stretching it to the whole screen it simply takes 640x480 pixels of my screen and the game is displayed in the top left corner of the screen leaving everything else black.
    I didn't have this problem before - it is something new though i'm not sure since when do i have the problem because i rarely play games. As for the idea that the problem may be related to the resolutions defined in the Xorg.conf file, my xorg.conf is automatically generated by the nvidia installer and there are no resolutions defined there.

    brebs wrote:
    Try nvidia 304.48
    I remember that issue, with the 302 series.
    I have Nvidia 304.48 installed and the problem still exists (it also happens with Catalyst). This didn't occur with 295.59 using the same version of Wine.
    https://bbs.archlinux.org/viewtopic.php?id=55145
    https://bbs.archlinux.org/viewtopic.php?id=147073

  • Graphics and Fullscreen Mode

    Has anyone had problems with graphics and Fullscreen mode?  I have a .png to show what im talking about if that helps. and also if it helps i had just gotten out of full screen mode.

    Need a liitle more clarrification on what the problem is.
    Most graphics would open in Preview by default.
    Is that a Desktop background?
    MacBook Pro, Mac OS X (10.7), 2.4GHz IntelCore i5 320 HD 8GB RAM ParallelsDesktop6.0

  • Screen off-center after waking. Happens to login and fullscreen apps.

    When I wake my MBP up the screen is offcenter by a few inches resulting in this happenening. http://imgur.com/OGwWs
    This happens to my fullscreen apps and my login screen but that is it. When I un-fullscreen and fullscreen again it goes back to normal.

    Hi,
    Regarding current information, please check if the video card drivers are up to date. Install the latest video card drivers for Windows 7.
    Tips for fixing common driver problems:
     http://windows.microsoft.com/en-US/windows7/Tips-for-fixing-common-driver-problems
    I would suggest you to run the Power troubleshooter to adjust your computer's power settings, and check if it works properly.
    Here are the steps:
    1. Open the Power troubleshooter by clicking the Start button , and then clicking Control Panel.
    2. In the search box, type troubleshooter, and then click Troubleshooting.
    3. Under System and Security, click Improve power usage.
    If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, logon to:
    http://windows.microsoft.com/en-US/windows7/Open-the-Power-troubleshooter
    http://windows.microsoft.com/en-us/windows7/Sleep-and-hibernation-frequently-asked-questions
    How to troubleshoot performance issues with standby, hibernate, and resume:
    http://support.microsoft.com/kb/950686
    Note: The article holds good for Windows 7 as well though it is for Vista.
    Kate Li
    TechNet Community Support

  • J3D and osX?

    can i use the solaris version for osX? do i have any options as far as j3D and osX?
    will the tar'd download work?

    simple answer: no.
    Howerver there are free implementations at SourceForge (I think)

  • Problem with Projector and Fullscreen

    Hi,
    Can anyone confirm a problem with fullscreen in the latest
    player 9,0,115,0:
    When I use getURL to launch a browser window, or make an exec
    call with
    fscommand, the standalone projector jumps out of fullscreen.
    quote:
    fscommand("fullscreen", true);
    and
    quote:
    on(release){
    getURL("
    http://www.mylink.com",
    "_blank");
    I'm using CS3.
    Any ideas?

    I dont know really but i read here
    http://www.adobe.com/devnet/flash/articles/first_as3_application.html
    they the getURL() function was removed from CS3 and the new is
    URLRequest(); Try with this one i get it from the upper link
    import flash.net.*;
    var url = "www.google.com";
    var request:URLRequest = new URLRequest(url);
    try {
    navigateToURL(request);
    catch (e:Error) {
    // Handle error...
    }

  • Photoshop CS4 Menu toolbar display bug and fullscreen slowness...

    http://img384.imageshack.us/img384/8202/menutoolsbugee3.gif
    I'm having a display bug with the menu toolbar in Photoshop CS4 Extended. Notice the area of tools is gone and replaced by random pixels? This happens whenever I enter the fullscreen mode that hides the interface. And when I exit that fullscreen mode, that bug appears and doesn't fix itself until I restart Photoshop. Can this be fixed?
    Image view rotation also happens much slower than normal in that fullscreen mode when interface is hidden. But performs normally after I bring back the interface.
    I'm on WinXP, Athlon 64 4000+, 3GB ram, GeForce 6800 GT video card [driver 169.21]. I'm not sure if this is a video driver bug or CS4 bug.

    Yeah, Dave, I can understand how that can happen. I've seen that sort of weirdness when I've seriously overtaxed my hardware.
    <br />
    <br />Had way too much running all at once yesterday, switched over to Firefox, and clicking on folders in the Bookmarks bar, I had 4 bookmark/folder menus dropped simultaneously.
    <br />
    <br />I managed to grab a screenshot with 2 of them showing, but man! You shoulda seen it with 4!
    <br />
    <br />I ESC'ed out, quit GarageBand (had a song project of several hundred MB going) and all was fixed.
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=1oV3eLGID1UYwZ4L5Y0n44ThA0Ab0" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1oV3eLGID1UYwZ4L5Y0n44ThA0Ab0_thumb.png" border="0" />

  • How do you handle mixes of widescreen(16:9) and fullscreen(4:3)?

    Okay I have a native Fullscreen(4:3) (FS from now on) that has a widescreen (16:9) (WS from now on) mode. I am primarily using the widescreen mode for shooting but on my Panasonic using the WS mode disables the image stabilization. You have to flip back to FS to turn on stabilization. The result is I have tapes that are mainly WS but have scenes, or clips, that are FS.
    When I create a new iMovieHD (ver 5) project I choose DV Widescreen as the video format. Most of the video is fine but the FS parts are stretched. If I just choose DV all the WS footage is crammed into FS and only the FS shots look right. What I would like is to use WS format and have any FS content pillarboxed.
    2 part question:
    1> Is there a way to do this in iMovieHD ver 5?
    2>If no on 1 is this something that is better handled in ver 6? Might be a good excuse to buy iLife 06.

    Welcome to iMovie Discussions.
    The following works for me in iMovie HD 6 ..try it and see if it works in iMovie HD 5, but I'm not sure (..I've forgotten..) if drag'n'drop between projects works in HD5; I don't think HD5 allows two projects to be open simultaneously. If not, you may need to Ctrl-click (..using the Finder..) on your 4:3 project to 'Show Package Contents', and then Copy the footage that's in the 'Media' folder onto your Desktop, so that you can then drag it into your 16:9 project..
    (1) Create a new project in 16:9 and import your 16:9 footage into that.
    (2) Create a new project in 4:3 and import your 4:3 footage into that.
    (3) Open the two projects side-by-side.
    (4) Drag clips from the 4:3 project into the 16:9 project ..they'll look wrong at first, but wait till they've been automatically 'pillarboxed'.
    The result looks like this:

  • Macbook pro retina and Fullscreen mode freeze

    Hi
    I cant get fullscreen playing in FCP 7 on Macbook pro retina mid 2012 running 10.8.3mountain lion
    It wil show only a stil image and not play the video live.
    This happens on the macbook, and on external monitor, in all display settings available in fcp7. It worked some months ago thou... may there be a osx problem?
    Can I go back to earlier osx?
    Anyone using 10.8.3, retina, and can do fullscreen mode?
    best
    thomas

    What format sources and what are your sequence settings?  I seem to remember that some non-standard formats will not play in full screen mode.
    Also, you might try deleting your preferences.  I strongly recommend using digital rebellion's preference manager to back up, trash and restore fcp and many other apps preferences. 
    https://discussions.apple.com/docs/DOC-2491

  • Help about importing files and fullscreen mode

    Hi,
    sorry but i'm kinda new about this. I'm creating a kiosk for my company which uses a touchscreen PC like what you see in the malls right now i.e directory. Im using flash cs5 and AS3. My problem is when I imported video / swf file in my stage (which is in full screen when loaded in projector), the video / swf file automatically change to full screen also. What I like to do is even if my window is in full screen mode, the video will still be the same what I set it to be. For you to imagine what im doing is in my homepage, my buttons would be video/swf files placed side by side. Once I click on one video it will go to another scene just like a website. I tried to google about this but no luck, all i find is how to import. These are the codes i used to load my project in fullscreen mode automatically.
    var main:Stage = this.stage;
    main.scaleMode = StageScaleMode.NO_SCALE;
    main.scaleMode = StageScaleMode.EXACT_FIT;
    main.align = StageAlign.TOP;
    main.displayState = StageDisplayState.FULL_SCREEN;
    Hope you can help me on this. Thanks in advance for those who will help.
    Thank you
    -Arjae

    thanks andrei. but it still doesn't solve my problem.
    var main:Stage = this.stage;
    main.scaleMode = StageScaleMode.NO_SCALE;
    //main.scaleMode = StageScaleMode.EXACT_FIT;
    main.align = StageAlign.TOP;
    main.displayState = StageDisplayState.FULL_SCREEN;
    as u have said, i remove scale_fit line but still in full screen. when I run s swf file the video automatically converted to full screen. what i only want to make full screen is the stage where the video is located. is there some command i need to do on this? I tried to use this using AS2 and its ok, the video didn't go full screen even the stage itself is in fullscreen. but i really want to use AS3 because of some features. If you can help, it will be great. Thanks lot!

  • J3d and swing - dukes dollars!

    am trying to get my j3d scene to display in a swing JFrame
    JPanel pane1 = new JPanel();
    pane1.add(universe.canvas3D);
    frame3D = new JFrame("Hiya");
    frame3D.getContentPane().add(pane1, BorderLayout.CENTER);
    frame3D.setBounds(400, 400, 400, 400);
    frame3D.setVisible(true);
    this doesn't wrok, get a nullpointer exception... anyone help?

    Hum.. seems to me that you might have forgotten to create the Canvas3D Object, thus resulting in a null pointer exception. Can't tell it without having all the code.. anyway here's an example of how I do it.
    Also be careful because there are issues in mixing lightweight (swing) and heavyweight (Java3D) components. See the faq at www.j3d.org, there are also examples.
    JPanel contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
    // my class extends JFrame, thus the following replaces the default content pane
    setContentPane(contentPane);
    // This is a method of my class that add swing components
    initUI(contentPane);
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    // Here we go, create the Canvas3D
    Canvas3D canvas3D = new Canvas3D(config);
    // Here you embed Java3D into the Swing
    contentPane.add("Center", canvas3D);
    SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
    JPanel pane1 = new JPanel();
    pane1.add(universe.canvas3D);
    frame3D = new JFrame("Hiya");
    frame3D.getContentPane().add(pane1,
    BorderLayout.CENTER);
    frame3D.setBounds(400, 400, 400, 400);
    frame3D.setVisible(true);
    this doesn't wrok, get a nullpointer exception...
    anyone help?

  • Help with Zoom and fullscreen

    Hi, i'm a novice flash user and i have a few questions.
    Is it possible to lock the size of the movie using actionscript unless the user presses a button in which case it resizes the movie to fullscreen?
    Is it possible to call the flash player's zoom function (i don't know how to write a zoom function) in order to zoom in and out and asign them to 2 different buttons?
    Thanks

    i wrote all them in the same thread becsause there were a total of 4 (and could had been more) separated by ----
    should i leave it how it is or open now 4 threads for each question?

  • Error 1009 for preloader and fullscreen method

    hi all..
    ı am working on a web site project and there is a problem.. I use flash cs4. I tried to use a fullscreen method, which is I learned at internet, and make a preloader. I can't explain this problem because of my english but ı attach the fla file ( www.simgeyazilim.com/index3_4.rar ). This is a very simple fla but ı failed. anybody help me to fix this problem?
    Thanks...

    the problem is on the second scene where you add the eventlistener to but1.
    if you remove that then the error doesn't appear anymore.

  • Display of Browser and Fullscreen

    Hi,
    I'm on a MacBook with an external monitor connected to it. I want to display the Browser in the MacBook and the fullscreen picture at the external monitor. The MacBook is the first display and contains the dock bar.
    How should I configure the settings in Aperture? I'm trying this since one hours.
    Many thanks in advance.
    Tobias

    Tobias,
    I got the configuration you want once after many tries and could never get it to work again. I tried changing menu locations, all main and secondary settings yadda, yadda, yadda.
    I have done the opposite, my iMac as main in full screen and have the Browser on a secondary screen. To do this I have menus on Main screen, Main Screen set to Show One and Secondary Screen set to Desktop. I then resized the window in split screen mode (Browser and Viewer, no Inspector) and dragged it onto the Secondary screen, select a thumbnail and go into full screen using the HUD. Clicking the lock at top right of the HUD locks it to the right so it doesn't overlap the image.
    I hope this is helpful.
    Cheers,
    Terry

  • Need a bit of help with css and fullscreen

    I am currently doing a javaFX application for my university project, I have it everything nearly finished, but need to finish the css component to make the application "prettier" (I am not very good on graphic design to be honest). So if i could get a bit of help on this little issue I'd be very grateful.
    is there any way to make fullscreen (and if possible resizing window) to instead rearranging everything to actually do a fullscreen (like the games) and everything "grows accordingly (even though in games what it usually does is to change the screen resolution, is that possible to reproduce with javaFX?) also how to remove the message and the effect on click the "esc" key to exit the fullscreen mode?
    i know that removing the focus effect on an element is with the following (if a button)
    .button:focused{
         -fx-background-insets: 0;
    }but,is there any way to remove the effect on anything focused (TextField, Combo Box, ...)? (tried with a .textfield:focused but it did not work)
    also i wanted to produce the focused effect by this way but it didn't work, how should i do it? (in fact even if i try to put this line on the button:focused, the focused effect gets removed from there, because of the insets line)
    #highlight{
         -fx-background-insets: 2;
         -fx-background-color: yellow;
    public class controller extends StackPane implements Initializable{
         public void highlight(){
              this.getStyleClass().add("highlight");
    and last thing (for the moment) the .button seems to work for all the buttons, but trying another thing like .gridpane or .textfield or .scrollpane does not seem to work, is there any way to make it work or i should add "id" to all the elements and use the # instead?

    i wrote all them in the same thread becsause there were a total of 4 (and could had been more) separated by ----
    should i leave it how it is or open now 4 threads for each question?

Maybe you are looking for

  • Installation of ECC 6.0

    Hi guys I am about to install Swedish Baseline 2.6 and that is on top of a SAP ECC 6.0 installation. Question I have is exactly where do I found ECC 6.0 installation? My guess is that it is a part of Netweaver 7.0 but when downloading "Installation M

  • IPhoto stalls attempting to empty iPhoto trash

    iPhoto 9.3.2, OSX 10.7.4 on Mac Pro with 4x2TB internal drives RAID0. In attempting to empty the iPhoto trash containing 3,493 photos, the "Emptying iPhoto Trash..." progress bar rapidly proceeds to 1% of the end, then stalls.  No activity for hours.

  • Problem Currency field value

    Hi, I am trying to call a subroutine in ABAP program from SAPscript. i.e. passing PO number and getting price details for the line items.My problem is I am not able to assign a currency value to a character value in program, so that I am not able to

  • Registering a new technical system in SLD - ABAP based

    Hi friends,   For ,Registering a new technical system in SLD - ABAP based I followed the following steps... At first - went  to the SDL - http://server:port/sld - went  to the "Administaton" tab - went  to the "Data Supplier Bridge" In RFC Gateway Se

  • How to list all files and directories in another directory

    I need to be able to list all the directories and files in a directory. I need to write a servlet that allows me to create an html page that has a list of files in that directory and also list all the directories. That list of files will be put into