Java3D on Windows XP

I wrote a application using java3D. It works fine on Windows 2000 but when I run it on Windows XP, everytime when I load the program, the mouse cursor begins to flicker. When I move the mouse, the whole screen of the program flashes a lot. Does anyone have the same problem or have some clues to solve it? Thanks.

It might help us identify the problem if you state your configuration specs as well as the graphic drivers version you're using :)

Similar Messages

  • Installing Java3D with Windows XP?

    Installation problems seem to be a frequent topic in this forum, though I haven't seen a solution yet. Maybe I can help by describing the (my) problem in detail. Any suggestions are welcome.
    I'm running Windows XP professional, I have installed Java SDK 1.4 and it works correctly. When I try to install Java3D (java3d-1_2_1_03-win32-opengl-sdk.exe), the installer program extracts some files into a temporary directory, but then says it is done, while not actually doing anything. This behaviour is actually described in the installer program's "please read before continuing"-screen under the heading "installation".
    The reason given is that I might not have the necessary rights. I am the only user on my machine and I have all the rights imaginable. Though, when I look at my j2sdk1.4.0 directory, the property dialogue says it is write-protected. So I remove the protection. Start the property dialogue again - the write protection is still there.This seems to be the heart of the problem.
    With an earlier version of Java3D I had the same problem under Windows ME. Though under Windows ME the "protection" was actually an entry in a hidden file in der jsdk directory, so I could remove it. Under Windows XP I have unfortunately no idea how to remove this protection.
    Can anyone help?

    I am using Windows XP Professional and JDK1.4 (j2sdk-1.4.0-win.exe).
    I also had a problem with installing Java3D.
    But, I got installed Java3D 1.3 Beta (java3d-1_3-beta1-win-opengl-sdk.exe) with Windows XP
    as following steps.
    1) Execute installer (java3d-1_3-beta1-win-opengl-sdk.exe).
    2) Introduction->Next
    3) License agreement->Next
    4) Readme->Install
    5) Choose a JRE VM->Install->Choose... (Choose your JRE VM folder, although you feel it seems be weird)
    6) Previous
    7) Choose an SDK VM->Next->Choose... (Choose your j2sdk1.4.0 folder)
    8) Install
    Don't select "Add Java 3D to these VMs", it will crash your installer.
    I think that the installer has a problem in detecting your VM folders.
    Please, let me know whether it works or not.

  • Java3D with Windows NT

    Hello,
    Is someone who can help me?
    I try to run/develop a java3D application, and my platform is WindowsNT.
    I download the "java3d 1.3" and I work with "jdk 1.4".
    By testing the installation I always get the error:
    d:\jdk1.4\jre\bin\J3D.dll: can't find dependent liberies
    Is this because of the directX version. I try to install the version 8 of DirectX,
    but I can't install it in WindowsNT.
    It's only possible to install the DirectX 3 in WindowsNT and for java3d you need the
    DirectX 8 or higher.

    Now I installed openGL for windows NT.
    And this time I get the error :
    "the procedure entry point DdEntry12 could not be located in the dynamic link library DDRAW.dll"
    what does it means?

  • Installing java3d opengl version?

    i have my java j2sdk1.4.2_04 installed in the root of c:
    i have j2re1.4.2_03 installled in the following location C:\Program Files\Java
    i installed the java3d-1_3_1-windows-i586-opengl-sdk package, and when it asked for my install directories, it automatically picked my above locations that the sdk and jre were installed to in the prior installation. the install notes says
    >
    Setting CLASSPATH
    If Java 3D is installed into the JDK or JRE, you do not need to include the Java 3D jar files in your CLASSPATH, nor do you need to include the Java 3D shared libraries in your PATH or LD_LIBRARY_PATH. You should include "." in your CLASSPATH or ensure that CLASSPATH is not set.
    [\quote]
    but when i try to compile the following code in netbeans 3.6, it will not complete the compile does anyone know what i did wrong?
    //import Program Files\Java\j2re1.4.0_01
    import javax.media.*;
    import com.sun.j3d.utils;
    import java.awt.*;
    import javax.vecmath;
    public class HelloJava3Da extends Applet
      ///////////////////////////////class constructor//////////////////////////////
      public HelloJava3Da()
        setLayout(new BorderLayout());
        GraphicsConfiguration config = simpleUniverse.getPreferredConfiguration();
        add("Center", canvas3D);
        BranchGroup Scene = createSceneGraph();
        scene.compile();
        SimpleUniverse simpleU = new simpleUniverse(canvas3D);
        simpleU.addBranchGraph(scene);
      //////////////////////////////Main////////////////////////////////////////////
      public static void main( String args[] )
        Frame frame = new MainFrame(new HelloJava3Da(), 256, 256); 
      //////////////////////////////Methods/////////////////////////////////////////
      public BranchGroup createSceneGraph()
        BranchGroup objRoot = new BranchGroup();
        objRoot.addchild(new ColorCube(0.4));
        return objRoot;
    }with the following errors
    HelloJava3Da.java [2:1] package javax.media does not exist
    import javax.media.*;
    ^
    HelloJava3Da.java [3:1] package com.sun.j3d does not exist
    import com.sun.j3d.utils;
                       ^
    HelloJava3Da.java [5:1] package javax does not exist
    import javax.vecmath;
                 ^
    HelloJava3Da.java [7:1] cannot resolve symbol
    symbol  : class Applet
    location: class HelloJava3Da
    public class HelloJava3Da extends Applet
                                      ^
    HelloJava3Da.java [31:1] cannot resolve symbol
    symbol  : class BranchGroup
    location: class HelloJava3Da
      public BranchGroup createSceneGraph()
             ^
    HelloJava3Da.java [12:1] cannot resolve symbol
    symbol  : method setLayout (java.awt.BorderLayout)
    location: class HelloJava3Da
        setLayout(new BorderLayout());
        ^
    HelloJava3Da.java [13:1] cannot resolve symbol
    symbol  : variable simpleUniverse
    location: class HelloJava3Da
        GraphicsConfiguration config = simpleUniverse.getPreferredConfiguration();
                                       ^
    HelloJava3Da.java [14:1] cannot resolve symbol
    symbol  : variable canvas3D
    location: class HelloJava3Da
        add("Center", canvas3D);
                      ^
    HelloJava3Da.java [16:1] cannot resolve symbol
    symbol  : class BranchGroup
    location: class HelloJava3Da
        BranchGroup Scene = createSceneGraph();
        ^
    HelloJava3Da.java [17:1] cannot resolve symbol
    symbol  : variable scene
    location: class HelloJava3Da
        scene.compile();
        ^
    HelloJava3Da.java [19:1] cannot resolve symbol
    symbol  : class SimpleUniverse
    location: class HelloJava3Da
        SimpleUniverse simpleU = new simpleUniverse(canvas3D);
        ^
    HelloJava3Da.java [19:1] cannot resolve symbol
    symbol  : class simpleUniverse
    location: class HelloJava3Da
        SimpleUniverse simpleU = new simpleUniverse(canvas3D);
                                     ^
    HelloJava3Da.java [19:1] cannot resolve symbol
    symbol  : variable canvas3D
    location: class HelloJava3Da
        SimpleUniverse simpleU = new simpleUniverse(canvas3D);
                                                    ^
    HelloJava3Da.java [20:1] cannot resolve symbol
    symbol  : variable scene
    location: class HelloJava3Da
        simpleU.addBranchGraph(scene);
                               ^
    HelloJava3Da.java [27:1] cannot resolve symbol
    symbol  : class MainFrame
    location: class HelloJava3Da
        Frame frame = new MainFrame(new HelloJava3Da(), 256, 256); 
                          ^
    HelloJava3Da.java [33:1] cannot resolve symbol
    symbol  : class BranchGroup
    location: class HelloJava3Da
        BranchGroup objRoot = new BranchGroup();
        ^
    HelloJava3Da.java [33:1] cannot resolve symbol
    symbol  : class BranchGroup
    location: class HelloJava3Da
        BranchGroup objRoot = new BranchGroup();
                                  ^
    HelloJava3Da.java [34:1] cannot resolve symbol
    symbol  : class ColorCube
    location: class HelloJava3Da
        objRoot.addchild(new ColorCube(0.4));
                             ^
    18 errors
    Errors compiling HelloJava3Da.

    thanks for responding to my prior request.
    i have a few more fu questions.
    Is the following module required for java3d in netbeans?
    http://java3d.netbeans.org/module_intro.html
    Can i use the normal javac and java w/o mounting the class directory?
    if I did want to mount the directory for the java3d classes, what directory would it be?
    Is there a default folder in the jsdk that holds all classes, including the new installed j3d?
    what is in the following directory? it looks like to a package directory located on a remote server, or a package located on the system that originally compiled the code.
    As for mounting the class folder or class itself, would you be so kind to provide me with a j3d class mounting for dummies? I understand ide's and i'm getting decent at java, but j3d is still a marval.
    import com.sun.j3d.utils;sorry for all the questions, but thank you for the help.

  • Not able to run Java3d on internet explorer

    Hi there,
    I have made an application using Java3D api (1.3.1). And, i have deployed it on WebLogic server. When i run this application with installed java3d environment(java3d-1_3_1-windows-i586-opengl-sdk.exe) on Internet Explorer 6.0, it works fine. But when i uninstall the Java3D environment & try to run the application i get this error ::
    java.lang.ExceptionInInitializerError
         at com.aramco.wellplot.view.multilateral.TopView.createCanvas3D(TopView.java:1054)at com.aramco.wellplot.view.multilateral.TopView.<init>(TopView.java:223)
         at com.aramco.wellplot.view.WellPlotViewer.openFile(WellPlotViewer.java:1140)
         at com.aramco.wellplot.view.WellPlotViewer.access$6000371(WellPlotViewer.java:27)
         at com.aramco.wellplot.view.WellPlotViewer$2.mouseClicked(WellPlotViewer.java:339)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208)
         at java.awt.Component.processMouseEvent(Component.java:5024)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2938)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
         at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1513)
         at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:166)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:109)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
         at javax.media.j3d.GraphicsConfigTemplate3D.<clinit>(GraphicsConfigTemplate3D.java:55)
         ... 23 more
    I have included the required Java3D JAR files with my JSP page. I have also provided the DLL files but still getting the same error. The following code is written in JSP page ::
    <HTML>
    <HEAD>
         <TITLE>Application</TITLE>
    </HEAD>
    <BODY LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" BGCOLOR="#C0C0C0">
    <APPLET WIDTH="100%" HEIGHT="100%"
              CODE="wellplot.view.Viewer.class"
              ARCHIVE="wp.jar,clib.jar,j3dutils.jar,j3dcore.jar,vecmath.jar, j3d.dll, j3dutils.dll, j3daudio.dll"
              CODEBASE=".">
    <PARAM NAME = "DEBUG" VALUE = 'TRUE'>
    <PARAM NAME = "USERNAME" VALUE = 'WP'>
    <PARAM NAME = "PASSWORD" VALUE = 'WP'>
    <PARAM NAME = "DB_URL" VALUE = 'ABC:1521:ORION'>
    <PARAM NAME = "RUN_ID" VALUE = '1'>
    <PARAM NAME = "PLOT_TYPE" VALUE = '<%= plotType %>'>
    </APPLET>
    </BODY>
    </HTML>
    Please help me out to resolve this exception. thx in advance.
    Regards,
    Prashant

    Prashant,
    what you are doing with the HTML-code above is to use the IE inbuilt Java VM. This VM is very old and corresponds to the Java 1.1 Specification. Java 3D requires a Java2 Platform.
    To run Java 2 Applets in IE you must use the Java Plugin JPI. I think, there is also a JPI Forum.
    In a few words: If you have installed the actual Java 2 SDK from SUN (JPI is included) you can replace the Java VM in the IEs Options Menue (there is a checkbox in the advanced options)
    To run Java 2 Applets in your customers IE you must change the applet tag in your HTML code into a Plugin-Tag. This is different for Mozilla and IE and therefore a complex task. You will find a tool named HTML-Converter within your Java home directory, which will help you to convert an applet tag into correct Plugin-Code.
    Regards,
    Oliver

  • Java3d Tutorial:  HelloJava3Da.java

    Hello All,
    I am beginning my journey through the Java3D tutorial. The first program (HelloJava3Da.java, pgs. 1-14 through 1-15 of the tutorial) is not behaving well for me. I searched the forum and found the suggestion to add
    import java.awt.GraphicsConfiguration;
    which I did. Other than this, I have not modified the code from the way it is presented in the text. This helped in that now my program will launch however I get an empty frame as opposed to the box I expect to be drawn. Eclipse tells me
    Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: sun/awt/DrawingSurface
    at. . .
    Further forum surfing produced the suggestion to copy the .jar files from the Java3D installation from �\jre\lib\ext to \sdk\jre\lib\ext.
    This resulted in no effect.
    If anyone has suggestions as to how to get Java3D running as described in the tutorial I would be grateful. If it helps I am running the DirectX version of Java3D (installer = java3d-1_3-windows-i586-directx-rt.exe), and Java1.5.0.
    Also, if anyone knows of a down-and-dirty Java3D/DirectX tutorial I could really use the info!
    Thanks!

    Back after an unaviodable break!
    I made it through the first chapter of the 3D tutorial and thought I would play with it a bit to firm up my understanding. At the end of the chapter the cube is supposed to rotate around the y-axis. I thought I would flesh this out to have it also tumble around the x-axis. the code segment of interest is below.
      public BranchGroup createSceneGraph()
         double Xdeg;
         double Xrad;
         double Ydeg;
         double Yrad;
         //create the root of the branch graph
              BranchGroup objRoot = new BranchGroup();
         //rotate object has composite transformation matrix
              Transform3D rotate = new Transform3D();//holds the x transform
              Transform3D tempRotate = new Transform3D(); //holds the y transform
               Xdeg = 45;
               Xrad = toRad(Xdeg);
               rotate.rotX(Xrad);
               Ydeg = 45;
               Yrad = toRad(Ydeg);
               tempRotate.rotY(Yrad);
              //The two rotations are combined by Multiplying the Transform3D objects
              //ratate and tempRotate.
               rotate.mul(tempRotate);
              //Create the TransformGroup node adn initialize it to the identity.
              //Enable the TRANSFORM_WRITE capability so that our behavior code can
              //modify it at runtime.  Add it to the root of the subgraph.
             TransformGroup objRotate = new TransformGroup(rotate);
              TransformGroup objSpin = new TransformGroup();
              TransformGroup objTumble = new TransformGroup();
              objSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              objTumble.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
               objRoot.addChild(objRotate);
               objRotate.addChild(objSpin);
               objSpin.addChild(objTumble);
              objTumble.addChild(new ColorCube(0.4));
              //Create a new Behavior Object that performs the desired
              //opeation on the specified trensform object adn add it into
              //the scene graph.
              Transform3D yAxis = new Transform3D();
              Transform3D xAxis = new Transform3D();
              Alpha rotationAlpha = new Alpha(-1, 4000); //-1 = spin forever; 4000 is 4000milliSec = 4 sec)
              Alpha rotationAlpha2 = new Alpha(-1, 4000);
              RotationInterpolator rotator = new RotationInterpolator(rotationAlpha, objSpin,
                   yAxis, 0.0f, (float) Math.PI * 2.0f);
              RotationInterpolator mine = new RotationInterpolator(rotationAlpha2, objTumble,
                   xAxis, 0.0f, (float) Math.PI * 2.0f);
              //A bounding spnere specifies a region a behavior is active.
              //Create a sphere centered at the origin with radius of 1
              BoundingSphere bounds = new BoundingSphere();
              rotator.setSchedulingBounds(bounds);
              mine.setSchedulingBounds(bounds);
              objTumble.addChild(mine);
              objSpin.addChild(rotator);
              return(objRoot);
      }//end createSceneGraph()Also if anyone knows how to change the direction of rotation I'd be interested!
    Thanks

  • Java3D not working with java1.4

    My program worked fine with Java 1.3.1_03 running Java3D 1.2.1_03. Then I recently installed Java 1.4.2_01 with Java3D 1.3.1 OpenGL version
    j2sdk-1_4_2_01-windows-i586.exe
    java3d-1_3_1-windows-i586-opengl-sdk.exe
    I got these messages from my program everytime it gets mouse input or object transform changes.
    [java] wglMakeCurrent Failed: The handle is invalid.
    [java]
    [java] extensionStr == null
    [java] wglCreateContext Failed: The handle is invalid.
    So then I installed same old Java3D 1.2.1_03 into Java 1.4, same thing happening. I also tried the demo that it came with.
    Demos that gave same error:
    AWT_Interaction
    PickTest
    Morphing
    Demos that worked:
    ConicWorld
    HelloUniverse
    TickTockPicking
    It's definitly not my program. I tried installing same stuff on another machine, also running window 2000, same graphics driver, and everything works fine. The only difference is this one has NVidia GeForce4 Ti 4200, the other one (working one) has GeForce256. But my co-worker said he also has GeForce4 and was able to run the program with Java1.4, though I dont know which version exactly.
    Anyone seen similar problem before?

    that worked, i also didnt realize i had to uninstall the other version, thought they just override each other...
    thanks

  • Peculiar issue with signed .jars and Linux (Debian unstable, 2.4.20-custom)

    BACKGROUND:
    I am a developer working on a Java3D application, which is to be deliverable over
    the Web. Delivery as an applet seemed a natural choice, and so I spent a considerable amount of effort learning (I won't say "mastering") the process of
    creating a self-signed .jar containing java3d-<some_version>.exe. I have in fact
    successfully created a fully-fuctional from-scratch JPI/Java3D/myapp install. By
    this I mean that Windows machine with only stock IE installed could hit my URL,
    get the proper JPI installed, followed by the Java3D runtime I'd chosen, as well
    as a third-party DXF loader, and finally (after much clicking of 'Yes', 'Accept',
    'OK', etc.) see my app in a browser window.
    That was on my old, slow, Windows2000 workstation. Now I have a shiny, new
    workstation upon which my employer has graciously allowed me to run Linux. Sadly,
    the re-creation of the self-signed .jar files under a new JDK has not gone smoothly.
    PROBLEM DESCRIPTION:
    When a user attempts to download the self-signed .jar containing the auto-install
    executable for the Java3D runtime, the normal security warning prompts are displayed (one for granting to install the extension, one to accept the "suspect" certificate from me alone). The plugin happily downloads the .jar file, and then
    a NullPointerException is thrown, with a
    stack trace like:
    NPE!
    at java.util.zip.ZipFile.getInputStream (unknown source)
    at java.util.jar.JarFile.getInputStream (unknown source)
    <something>doPrivileged<something>
    etc.
    I apologize for the lack of a full stack trace; I would essentially have to type it in by hand after printing it out on the remote test box; I hope that I've caught the important details above.
    After this, the pure-java signed .jar is downloaded and installed, and then the applet "loads" with the predictable ClassNotFoundException for javax.media.j3d.SceneGroup.
    Downloading and installing the J3D runtime by hand and then re-visiting the URL results in a fully-functional applet.
    I've tried Blackdown Linux JDKs 1.4 and 1.3.1, as well as Sun's JDKs 1.3.1_07 and 1.3.1_05 for the compiling, jar'ing, and jarsigner'ing of these files, all with the same result. At each new JDK, I re-did the HTML conversion so that he appropriate
    JPI version was required on the client. I did complete uninstallations of all client JPI instances (including Web Start for 1.4.1_x, as well as cleaning the registry on the client).
    When this strategy worked, it was on Sun JDK 1.3.1_05 for Windows runnning on Windows2000, unknown service pack.
    DESIRED BEHAVIOR:
    I would like my clients to be able to go from stock Windows2K/IE (this being an intranet without any other options) to some JPI version running the J3D extension, with only the need to click 'OK', 'Accept', 'Grant This Session', etc. a bunch of times on the part of the user. I want this to happen without my having to resurrect my decrepit old Compaq Deskpro just to play the role of "build host" for my
    Java3D and loader .jar files, if at all possible.
    FILES:
    Here's what gets merged into the "main" applet's mainfest at creation time:
    Manifest-Version: 1.0
    Extension-List: java3d DxfLoader
    java3d-Extension-Name: javax.media.j3d
    java3d-Implementation-Vendor-Id: com.sun
    java3d-Implementation-Version: 1.3
    java3d-Specification-Title: Java 3D API Specification
    java3d-Specification-Version: 1.3
    java3d-Specification-Vendor: Sun Microsystems, Inc
    java3d-Implementation-URL: http://10.1.1.1/heartcad/lib/java3d.jar
    DxfLoader-Extension-Name: eupla.dxfloader
    DxfLoader-Implementation-Title: Eupla DXFLoader
    DXFLoader-Implementation-URL: http://10.1.1.1/heartcad/lib/DxfLoader.jar
    And into the manifest for the J3D .jar:
    Manifest-Version: 1.0
    Implementation-Version: 1.3
    Specification-Version: 1.3
    Extension-Installation: "java3d-1_3-windows-i586-directx-rt.exe"
    Extension-Name: javax.media.j3d
    Implementation-Vendor-Id: com.sun
    Implementation-Vendor: Sun Microsystems, Inc
    Specification-Vendor: Sun Microsystems, Inc

    I have seen that bug, and the problem I'm having seems to be different than it. The extension installer is in the first extension .jar my applet asks for, and it
    never works automatically, regardless of how many times the applet is loaded.
    The second .jar, which doesn't have to run any installer, always works fine, but the first one will never work (a manual install of the Java3D runtime is required). This seems to not be the behavior described in the bug.
    I will continue to search for an answer to this problem, and of course if I should find anything I'll post it here.

  • Java3d speed collapse caused by other java apps running at the same time

    Hi
    I am programming a flightsimulator for some months.
    The current state is online available (all free, no copyrights)
    at http://www.snowraver.org/efcn/efcnsim/index.htm
    especially the sample (source) which shows the
    behaviour which is the reason for my post is here
    http://www.snowraver.org/efcn/efcnsim/page2.htm
    My Problem:
    When I start the sim while two other java programs
    ( one is a server running localhost, one is a client )
    are running, the speed of the flightsim is very slow,
    one frame update takes 3 to 5 seconds.
    ( 3 java.exe's in task list plus 1 which is the IDE )
    When I start the flightsim ALONE, I have 30 to 40 frames per second.
    ( 2 java.exe's in the task list = the flightsim and the IDE -> no prob here )
    That means, the flightsim is about 100 times slower, when
    started while the other two apps are running.
    BUT the other two applications do almost ***NOTHING***, the
    CPU load is 1 or 2 percent.
    Of course they have threads running, but all are waiting
    for a signal - no thread really consumes CPU power.
    Interestingly, when I FIRST start the flightsim and AFTER THIS
    start the two other applications, the flightsim
    holds 30 frames per seconds without problems, even
    though the other applications consume some CPU power
    until they have completely started up.
    Configurations:
    JSDK 1.4.2_1 , 0_2..
    Java3D 1.3.1 OPENGL (The DirectX version crashes with D3D device lost)
    Win2000,XP CPU 800MHz upto 3 GHz
    In my point of view, the java3d thread scheduler makes
    some funny decisions when it starts up, which lead
    to the order dependent behaviour described above.
    My question is, if anyone has some ideas, how I could
    get away from this speed collapse.
    The problem is caused in native code I guess.
    I also could imagine, that it has to do something with
    the order in which one creates, attaches and starts
    the Canvas3D. (? could produce race conditions)
    The flightsim runs in full retained mode. Of course
    the CPU work in the behaviours is rather big, because
    the ROAM triangulation update (..) is done there
    and the triangles are recalculated and passed
    ( all BY_REFERENCE ).
    Or could it have to do something with the memory
    consumption ( when all runs, almost all of
    the 512MB RAM is taken by the three java.exe's ) ?
    Any hints or ideas ?

    :) No, Sun does handle it [lol]
    I just have tested it on my computer at work
    ( 3GHz HP compaq, 1GB Ram and a Intel 82865G Graphics
    Card with 64MB memory, Windows XP )
    and it has worked without problems any way I tried.
    ( Except for xclusive fullscreen mode, but I guess, the administrators
    have deactivated it somehow, so we don't play games at work :)
    I couldn't test it under Linux so far, but I think, this will be less
    problematic than Windows [usually].
    However my current assumption is:
    I totally have forgot the [limited] videocard memory.
    I suppose, Java3D tries to put all triangle data and all
    textures to the videocards memory, so most data processing
    then can be passed to it's graphiccard CPU using
    OpenGL commands.
    Now the flightsim produces a varying amount of (by_reference) triangle data ( a few thousands )
    and has some texture maps for the terrain, the sea and other things,
    plus indexed triangle data for the planes and ships.
    The notebook system, which slows down has an ATI Mobile Radeon card
    with only 32MB RAM onboard, whereas the others have 64MB Ram.
    An additional pointer to that theory is that I can trigger the slowdown by resizing
    the flightsim window, while it is running.
    On the notebook, it holds 30fps, until the window exceeds a size of 962*862 pixels.
    At this size the speed collapses and goes down to 1 frame update every 4 seconds.
    If I make the window a few pixels smaller, the speed of 30fps immediately
    is there again.
    Therefore I guess, some data passed to the graphic cards memory depends
    linearly from the canvas3d's window dimension, and at some limit,
    the graphiccard's memory is too small and Java3D changes it's strategy
    and performs most calculations on the computer's mainmemory,
    which of course is a lot slower.
    I'm not very sure about that, I'm just speculating.
    Next thing I will try is to disable directdraw for the other two applications,
    possibly swing also uses graphicscard memory, when directdraw is enabled.
    The solution seems to be clear anyway: The flightsim must examine the system
    and set some parameters depending on the machine's capabilities.
    Onboard videagraphic ram is one of them. If it's too slow, I start to decrease
    the window size and expect to see a sudden increase of speed, as soon as
    the rendering can be done by the graphicscard CPU. If this never happens,
    I assume no OpenGL accelerator is present on that system. This can be seen as a method
    for finding out the amount of videocard memory on a system by trial and error ..?:)
    Thanks for your tips, Alain.
    I especially have to check out the data sharing class in 1.5.

  • JAVA3D versions and runtime errors

    hi, everybody:
    I just begin to program in java3d today and met some problems.Now I share you with my solution(s) and wish every author can end his question with the final solution in the forum.
    OS: Windows XP
    J2SDK: 1.4.1_02,1.4.2._01
    DirectX: 9.0 update
    Java3D: 1.3.1
    Error: Fail to Create Vertex Buffer---D3DERR_INVALIDCALL
    Solution: uninstall java3D1.3.1, install java3D1.2.1_04
    wellcome to add more information to this topic.

    A better solution might be to switch to the OpenGL version
    of Java 3D.
    -Paul

  • Problem in Compilation of Java3D

    I have successfully installed Java3D APIs from Sun website but unable to use it. I'm currently using Netbeans and whenever i write import com.sun.j3d.*; and compile, it gives me the following error
    *"package com.sun.j3d does not exist"*.
    I have JSDK1.5,JRE1.5 and Java3D1.5.1 installed in the following directories.
    JSDK1.5 : C:\Program Files\Java\jdk1.5.0_11
    JRE1.5 : C:\Program Files\Java\jre1.5.0_11
    Java3D1.5.1 : C:\Program Files\Java\Java3D
    I also have set my CLASSPATH=C:\Program Files\Java\jre1.5.0_11\lib\ext
    With these configurations, can you people please tell me where i'm wrong???

    Asim_Arif wrote:
    I have successfully installed Java3D APIs from Sun website but unable to use it. I'm currently using Netbeans and whenever i write import com.sun.j3d.*; and compile, it gives me the following error
    *"package com.sun.j3d does not exist"*.
    I have JSDK1.5,JRE1.5 and Java3D1.5.1 installed in the following directories.
    JSDK1.5 : C:\Program Files\Java\jdk1.5.0_11
    JRE1.5 : C:\Program Files\Java\jre1.5.0_11
    Java3D1.5.1 : C:\Program Files\Java\Java3D
    I also have set my CLASSPATH=C:\Program Files\Java\jre1.5.0_11\lib\ext
    With these configurations, can you people please tell me where i'm wrong???Please post questions regarding NetBeans configuration at the NB site mailing list, or the Nabble forum, as this forum is for Java language support.
    As NB's Help states, NB does not use the classpath. Instead, you have to add library directories and jars to a project's libraries list. Right-click the project in the Project window and choose Properties to do that.
    (The prior post will not resolve the problem.)

  • Vista/Win7 - Using Aero for more than window decoration?

    I was wondering if it's possible to use the 'glass' effect in java as found under Windows Vista and 7.
    For example, windows explorer uses the glass effect for more than just the window decoration, there is also a bit below the titlebar containing the addressfield/navigation buttons/searchbar.
    Is it possible to create something similar looking in Java? I realise this will kill off multi-platform support, but that can be worked around in other ways.
    So far I've discovered that the dwmapi is needed to access the feature, but I'm unable to find a java implementation of it and don't have the knowledge to write my own.
    So are are any libraries out there for this purprose, or does anyone have a simple example?
    [edit]
    Well if someone has the time/motivation to port it from another language,
    VB: http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=67485&lngWId=1
    C++ (Qt): http://labs.trolltech.com/blogs/2009/09/15/using-blur-behind-on-windows/
    Edited by: Axeia on Jan 9, 2010 4:17 AM

    so that's C++, VB and C# so far, still haven't found how to do it in java.Thats correct, if you want Vista aero effects only in your application, then you have to turn to platform specific languages like C#.
    For java, you can make your own effects. So, what is your goal? using Vista Aero or making a good looking application?
    For learning how to make good looking applications in java, one of the best books is ' [Filthy Rich Clients|http://filthyrichclients.org/] '. It discusses how you can make use of java libraries like Swing, Java2D, Java3D, animation libraries, etc. to develop nice applications. Check the examples given at the site (I like the StackLayout example). They made a 'Filthy Rich Client' also, called Aerith. (Check this)
    I remember this book also discusses how you can achieve blurry translucent (Vista like) effect for Swing dialog. Its source is given on the same site, I also found its source here. So you can try it out, and check how java's aero looks like ;-)
    Andrew gave you the link of the article about translucent Frames, I would like to mention that newly released JavaFX makes making translucent(transparent) frames more easier. Please check [this out.|http://javafx.com/samples/SwirlingSquares/index.html] And yes, JavaFX makes your application look really cool without much effort (I have not yet learned it, just saw the demos). You can also try out the demos of JavaFX here.
    So, its up to you, Java can make your application look good, but without making use of Vista Aero.
    Thanks!

  • Why do I get an error outside the VM in the 3d api when resizing windows?

    I'm just starting with the 3d api.
    Ive created a simpleUniverse and added a branchGroup and
    some TransformGroups.I've created multi-color pyramid that
    rotates using a RotationInterpolator. Everything works fine
    except when I try to resize the window, this happens:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x7ABDBC78
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(WToolkit.java:240)
         at java.lang.Thread.run(Thread.java:536)
    Dynamic libraries:
    0x7D750000 - 0x7D76D000      C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
    Local Time = Mon Sep 02 23:45:36 2002
    Elapsed Time = 45
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
    I tried this:
    SimpleUniverse su = new SimpleUniverse(myCanvas3D);
    su.getViewer().getView().setWindowResizePolicy(View.VIRTUAL_WORLD );and some other variations but they don't have any effect.
    Then I ran some of the 3D example programs from sun and the same
    thing happens to them.
    Does anyone know why this is happening?
    Is there a solution?
    ps> I am running all of these as applications not as applets.

    I believe that you are running into a problem with the version of the IMAGEHLP.DLL that you are running.
    DLLs are Dynamic Linked Libraries, containing native compiled functions available for use by applications.
    I am not familiar with that particular DLL (not really a windows programmer, just dabble occasionally ;-)) but it looks like the VM is trying to access a function in that DLL that is not available.
    As you probably already know the VM has to interface with native code and libraries to work on a given machine. In your case, it appears to be trying to interface with a portion of the native windowing/redraw/resize functionality.
    On Windows there is a real nightmare as there are multiple APIs for accessing the native functionality embedded in multiple DLLs of which there are often multiple different versions in circulation. You will find that sometimes certain functionality can only be accessed by using an undocumented feature of a DLL and these features can disappear or be moved between versions - that is one reason why I much prefer java to MS C++...
    There are a few things you can do to try and resolve this, see if there is a newer or older version of the JVM/Java3D extensions that works on your system, apply appropriate service packs or patches to windows if specified by the JVM/Java3D and update/change your graphics card drivers. Fixing this kind of problem in windows is a bit of a black art unless you can find someone who has had the exact same problem before and fixed it.
    All I can say now is good luck!
    Bob B.

  • Java3D Install Problem

    I've been using java3d for about 6 months and need to install it on another machine, but can't get it installed correctly. I've installed the sdk 1.4.1_05 correctly and then installed j3d 1.3.1. When I try and run HelloUniverse from either the command prompt or as an applet through IE6 I get this error:
    *** ERROR: Canvas3D constructed with a null GraphicsConfiguration
    *** This will cause a NullPointerException in a subsequent release
    java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
         at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1100)
         at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1065)
         at HelloUniverse.init(HelloUniverse.java:97)
         at sun.applet.AppletPanel.run(AppletPanel.java:348)
         at java.lang.Thread.run(Thread.java:536)
    Can anyone help me? Is java3d installed incorrectly or is this something else wrong?

    I don't know about this particular error, but I have had failiures installing Java 3D on older machines with older 3D cards. Both openGL and DirectX.
    Maybe your OS is the problem... You in Linux? Windows? Solaris?

  • Java3D installation problem

    Downloaded java3d-1_2_1_01-win32-directx-sdk.exe
    InstallAnywhere didn't show me the JVM selection screen and it didn't install anything.
    The registry has the JavaSoft SDK 1.3 & runtime 1.3 entries.
    I am running Windows ME with DirectX 8.0
    Any idea ?

    OK, Looks like this is a known problem with Java3D, JDK 1.3.1 and WinME. http://www.j3d.org/installing.html
    Is there a vanilla zip file available ? Maybe I can simply install the jar to the right place bypassing installAnywhere (but here) ?

Maybe you are looking for

  • Just coming from Win and need Help with bootcamp/parallels+general osx stuf

    Well I absolutely love my Mac. I'm just having some problems affording it financially, but when I compare this new MacBook Pro to other like computers, there's a very very small difference in the hardware, and Im usually building laptops that are sim

  • Burned CD's of iTunes purchased songs have noise in them, please help

    Hi. I am using iTunes 7. I am having a problem. Any CD that I burn has lots of noise in them, but the songs play fine on my iPod and within iTunes. Does anyone have any information on how to solve this? Many thanks in advance.

  • SQL Server Query Optimization

    I am writing a report to get a summary on on-hand inventory for a 30 period. I am going to attach my query. I am looking for suggestions on optimizing this so the report won't take forever to run. USE [ReportData] GO /****** Object: StoredProcedure [

  • Why my I phone 4 does not show up in itunes

    Hi, my I phone 4 does not show up in Itunes but it does chrge only, I tried to figured out the problem by restart my computer, restart my phone and reinstall Itunse but still does not work. Thanks,

  • Missing Network Channel

    Has anyone heard about why the Sci Fi Channel was taken off the Network listing in the TV Shows area of ITMS? Let me know if anyone has heard or read anything.