Displays on mac but not on PC

I'm making my on geometry with a TriangeleStripArray. It displays on a mac (osX.3.9) but not on any of the PC's I have tried it on. I get the canvas but not 3dObjects.
when I try to use the left mousedown to rotate (the image that isn't there on a PC) I get amessage saying:
"wgl CreateContext failed, pixel format is invalid"
I don't know if this is related.
The code looks like this:
import java.applet.Applet;
import java.awt.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
import javax.media.j3d.*;
import javax.vecmath.*;
import org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS;
public class Simple extends Applet{
    public Simple() {
        //set the layout manager for the applet
        setLayout(new BorderLayout());
        //looks at your graphics hardware and cooks up a suitable config
        GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
        //Canvas3D is a heavyweight component
        Canvas3D canvas3d = new Canvas3D(config);
        //add it to this Applet
        add("Center", canvas3d);
        //create the content branch group using the method createSceneGraph() below
        BranchGroup scene = createSceneGraph();
        //compile
        //this could also be done in createSceneGraph()
        scene.compile();
        //create a SimpleUniverse class referencing canvas3d
        SimpleUniverse sU = new SimpleUniverse(canvas3d);
        //the view platform starts out at the orgin
        //but our cube is also centred at the origin
        //this moves the view platform back a bit so we can see the cube
        sU.getViewingPlatform().setNominalViewingTransform();
        //attaches the BranchGroup to the Locale object
        sU.addBranchGraph(scene);
        sU.getViewingPlatform().setNominalViewingTransform();
    }//end of Simple (constructor)
    public BranchGroup createSceneGraph(){
        BranchGroup objRoot = new BranchGroup();
        //set Color Attributes
        ColoringAttributes myCA = new ColoringAttributes();
        myCA.setColor( 0.0f, 0.0f, 1.0f  );
        myCA.setShadeModel( ColoringAttributes.SHADE_GOURAUD );
        //set aup appearance
        Appearance myApp = new Appearance();
        myApp.setColoringAttributes( myCA );
        //create a transform group to rotate the cube
        TransformGroup objRotate = new TransformGroup();
        objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
        objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_READ );
        //attach the transform group and then the cube
        objRoot.addChild( objRotate );
        //create the new shape  for the scene
        objRotate.addChild( new Shape3D( getTSA(), myApp ) );//, myApp
        //objRotate.addChild( new ColorCube(0.4) );
        //Mouse rotate stuff, cloick the right mouse and drag
        MouseRotate mR = new MouseRotate();
        mR.setTransformGroup(objRotate);
        mR.setSchedulingBounds(new BoundingSphere());
        objRoot.addChild(mR);
        //MouseZoom is a scaling activated by
        //middle clicking and dragging the mouse
        MouseZoom mZ = new MouseZoom();
        mZ.setTransformGroup(objRotate);
        mZ.setSchedulingBounds(new BoundingSphere());
        objRoot.addChild(mZ);
        objRoot.compile();
        return objRoot;
    }//end of createSceneGraph method of Simple
    public TriangleStripArray getTSA() {
       float factorOf =  0.15f;
       int [] stripLengths = new int [2];
       stripLengths[0] = 8;
       stripLengths[1] = 8;
       Point3f[] pts = new Point3f[16];
       pts[0] = new Point3f( -5.0f, 4.0f, 0.0f );
       pts[1] = new Point3f( -5.0f, 0.0f,  0.0f );
       pts[2] = new Point3f( -2.0f, 4.0f, 0.0f );
       pts[3] = new Point3f( -2.0f, 0.0f, 0.0f );
       pts[4] = new Point3f( 1.0f, 4.0f,  0.0f );
       pts[5] = new Point3f( 1.0f, 0.0f,  0.0f );
       pts[6] = new Point3f( 4.0f, 4.0f,  0.0f );
       pts[7] = new Point3f( 4.0f, 0.0f,  0.0f );
       //second strip
       pts[8] = new Point3f( -5.0f, 8.0f,  1.0f );
       pts[9] = new Point3f( -5.0f, 4.0f,  1.0f );
       pts[10] = new Point3f( -2.0f, 8.0f, 1.0f );
       pts[11] = new Point3f( -2.0f, 4.0f, 1.0f );
       pts[12] = new Point3f( 1.0f, 8.0f,  1.0f );
       pts[13] = new Point3f( 1.0f,  4.0f, 1.0f );
       pts[14] = new Point3f( 4.0f, 8.0f,  1.0f );
       pts[15] = new Point3f( 4.0f, 4.0f,  1.0f );
       //scale all points to suit
       for(int i = 0; i < 16; i ++)
           pts.scale(0.009f);
TriangleStripArray myTSA = new TriangleStripArray( 16, GeometryArray.COORDINATES | GeometryArray.NORMALS, stripLengths );
myTSA.setCoordinates( 0, pts );
return myTSA;
public static void main(String[] args){
String[] title = {"3dJava test"};
Frame frame = new MainFrame( new Simple(), title, 600, 400 );
Frame f = new Frame(GraphicsConfiguration gc);
Rectangle bounds = gc.getBounds();
f.setLocation(10 + bounds.x, 10 + bounds.y);
}//end of main method of Simple
regards
Richard

Found the answer to this one myself.
Load the most recent version 1.3.2 of java 3D and everything is sweet.
The version available on Sun (1.3.1) has problems with some recent device drivers

Similar Messages

  • Displays on mac but not PC

    I'm making my on geometry with a TriangeleStripArray. It displays on a mac (osX.3.9) but not on any of the PC's I have tried it on. I get the canvas but not 3dObjects.
    when I try to use the left mousedown to rotate (the image that isn't there on a PC) I get amessage saying:
    "wgl CreateContext failed, pixel format is invalid"
    I don't know if this is related.
    The code looks like this:
    import java.applet.Applet;
    import java.awt.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS;
    public class Simple extends Applet{
    public Simple() {
    //set the layout manager for the applet
    setLayout(new BorderLayout());
    //looks at your graphics hardware and cooks up a suitable config
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
    //Canvas3D is a heavyweight component
    Canvas3D canvas3d = new Canvas3D(config);
    //add it to this Applet
    add("Center", canvas3d);
    //create the content branch group using the method createSceneGraph() below
    BranchGroup scene = createSceneGraph();
    //compile
    //this could also be done in createSceneGraph()
    scene.compile();
    //create a SimpleUniverse class referencing canvas3d
    SimpleUniverse sU = new SimpleUniverse(canvas3d);
    //the view platform starts out at the orgin
    //but our cube is also centred at the origin
    //this moves the view platform back a bit so we can see the cube
    sU.getViewingPlatform().setNominalViewingTransform();
    //attaches the BranchGroup to the Locale object
    sU.addBranchGraph(scene);
    sU.getViewingPlatform().setNominalViewingTransform();
    }//end of Simple (constructor)
    public BranchGroup createSceneGraph(){
    BranchGroup objRoot = new BranchGroup();
    //set Color Attributes
    ColoringAttributes myCA = new ColoringAttributes();
    myCA.setColor( 0.0f, 0.0f, 1.0f );
    myCA.setShadeModel( ColoringAttributes.SHADE_GOURAUD );
    //set aup appearance
    Appearance myApp = new Appearance();
    myApp.setColoringAttributes( myCA );
    //create a transform group to rotate the cube
    TransformGroup objRotate = new TransformGroup();
    objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
    objRotate.setCapability( TransformGroup.ALLOW_TRANSFORM_READ );
    //attach the transform group and then the cube
    objRoot.addChild( objRotate );
    //create the new shape for the scene
    objRotate.addChild( new Shape3D( getTSA(), myApp ) );//, myApp
    //objRotate.addChild( new ColorCube(0.4) );
    //Mouse rotate stuff, cloick the right mouse and drag
    MouseRotate mR = new MouseRotate();
    mR.setTransformGroup(objRotate);
    mR.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(mR);
    //MouseZoom is a scaling activated by
    //middle clicking and dragging the mouse
    MouseZoom mZ = new MouseZoom();
    mZ.setTransformGroup(objRotate);
    mZ.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(mZ);
    objRoot.compile();
    return objRoot;
    }//end of createSceneGraph method of Simple
    public TriangleStripArray getTSA() {
    float factorOf = 0.15f;
    int [] stripLengths = new int [2];
    stripLengths[0] = 8;
    stripLengths[1] = 8;
    Point3f[] pts = new Point3f[16];
    pts[0] = new Point3f( -5.0f, 4.0f, 0.0f );
    pts[1] = new Point3f( -5.0f, 0.0f, 0.0f );
    pts[2] = new Point3f( -2.0f, 4.0f, 0.0f );
    pts[3] = new Point3f( -2.0f, 0.0f, 0.0f );
    pts[4] = new Point3f( 1.0f, 4.0f, 0.0f );
    pts[5] = new Point3f( 1.0f, 0.0f, 0.0f );
    pts[6] = new Point3f( 4.0f, 4.0f, 0.0f );
    pts[7] = new Point3f( 4.0f, 0.0f, 0.0f );
    //second strip
    pts[8] = new Point3f( -5.0f, 8.0f, 1.0f );
    pts[9] = new Point3f( -5.0f, 4.0f, 1.0f );
    pts[10] = new Point3f( -2.0f, 8.0f, 1.0f );
    pts[11] = new Point3f( -2.0f, 4.0f, 1.0f );
    pts[12] = new Point3f( 1.0f, 8.0f, 1.0f );
    pts[13] = new Point3f( 1.0f, 4.0f, 1.0f );
    pts[14] = new Point3f( 4.0f, 8.0f, 1.0f );
    pts[15] = new Point3f( 4.0f, 4.0f, 1.0f );
    //scale all points to suit
    for(int i = 0; i < 16; i ++)
    pts.scale(0.009f);
    TriangleStripArray myTSA = new TriangleStripArray( 16, GeometryArray.COORDINATES | GeometryArray.NORMALS, stripLengths );
    myTSA.setCoordinates( 0, pts );
    return myTSA;
    public static void main(String[] args){
    String[] title = {"3dJava test"};
    Frame frame = new MainFrame( new Simple(), title, 600, 400 );
    Frame f = new Frame(GraphicsConfiguration gc);
    Rectangle bounds = gc.getBounds();
    f.setLocation(10 + bounds.x, 10 + bounds.y);
    }//end of main method of Simple

    Found the answer to this one myself.
    Load the most recent version 1.3.2 of java 3D and everything is sweet.
    The version available on Sun (1.3.1) has problems with some recent device drivers

  • Map Widget - Works on Mac but not in Author

    OK, I'm a nube when it comes to Dashcode just so that's out there. I managed to build a custom map widget with Google Maps. The widget works perfectly on my Macs but not in Author. In Author the default place holder remains empty. If I click "edit HTML" I get the Google map, but it's just a generic USA, not the one I created w/ places. Also iBooks refuses to import the book to my iPad until I delete this map.
    Do I need to do something or insert special code in Dashcode to make this widget "Author compatible" or are map widgets not allowed?

    jfk0404 - I believe that what you're referring to as the "unattractive cartoon-like figure in the widget" is actually the placeholder image for the widget as it appears inline on the page. Once you click that cartoon image the actual widget takes over full screen and loads the html content displaying a functional full size google map.
    To replace the cartoon icon you have a few options. The first thing to do is create a new .png file to represent your widget as the placeholder image enticing your readers to click to open the full screen widget and load its dynamic contents. Perhaps a screen grab of your map would be a good idea?
    Easy:
    Drag your brand new .png image from the Finder into your open source iBooks Author file dropping it on the cartoon image. Done.
    More Complex:
    Right click (control-click) on the xxx.wdgt file that downloaded from http://classwidgets.com and choose "Show Package Contents." A Widget file is really just a special folder bundle with a .wdgt extension. In there you will find the Default.png file. Highlight the file and press the space bar to see a preview in the Finder's QuickLook feature. That's your cartoon image. Now replace that file with the one you created above. Done.

  • Custom Dashcode widget works fine on mac, but not in iBooks

    I wrote a dashcode widget that works fine on my mac but not in iBooks, what am I doing wrong?
    I am trying to create a widget that performs a specific calculation when the user inputs the 2 variables. However when I go to preview it on my iPad, the button that performs the calculation disapears. It is visible in the thumbnail, but once you launch to full size... bye bye...
    Help is appreciated. Are buttons not allowed?

    tk0us wrote:
    it sets the size of the widget when displayed as a widget full screen or whatever size the png is
    That is not correct. What sets the size of the widget when it runs is the canvas size of the widget, not Default.png.
    At the link below, you can find a widget with a Default.png of 140x200 pixels. When you run the widget, it displays at 900x607 pixels.
    http://www.triodia.com/staff/michi/drumming/RopeCalc.zip
    This demonstrates that Default.png has nothing to do with the size of the widget when it runs. Default.png need not even have the same aspect ratio as the widget canvas.
    Michi.

  • Does anyone know why my ipod nano sixth generation is displayed in windows but not itunes? I followed all the suggestions but nothing

    does anyone know why my ipod nano sixth generation is displayed in windows but not itunes? I followed all the suggestions but nothing.
    I apologize if I write bad but I'm Italian

    Doublechecking. Have you also tried a complete uninstall of both iTunes and all the other related software components and then a reinstall? If not, try the instructions from the following document:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • My Ipod shuffle appears in itunes on mac but not on windows 7 even though we have the latest update of itunes. We have also tried the other solutions on the apple support site.

    My Ipod shuffle appears in itunes on mac but not on windows 7 even though we have the latest update of itunes. We have also tried the other solutions on the apple support site.

    Hi reinkristine86!
    I know you’ve said that you have tried other suggestions for troubleshooting this issue, so pardon me if you have already seen this article, but have you tried all of the troubleshooting steps listed in the article below?
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • I-pod touch works on a Mac but not a PC

    Please help! My I-pod touch works on a Mac but not a PC. When hooked up to a PC, the device is not recognized in I-tunes message, says I-pod in recovery mode and to restore, after checking update and restore, receive unknown error message (9). Have tried unistaling and reinstalling I-tunes, using different USB ports, creating new user, restarting computer, using different PC, and trying to reset by holding sleep/wake and home buttons all to no avail, very, very frustrated, everything is fine on a Mac!!

    I have CA Internet Security Suite Plus 2010, version 6.0.0.264.
    I was wondering about that one in particular.
    Try configuring you CA as per kalda01's instructions in this post:
    http://discussions.apple.com/message.jspa?messageID=10525876#10525876
    (Sometimes switching the security software off doesn't help, but doing the configuration does help. Not sure what's afoot with that, but it has happened with other security-package problems with iTunes in the past.)

  • HT201250 If time machine puts all of my photos onto my external hard drive using time machine, can I then delete the photos from my computer put view them again from the external hard drive? Basically, can I free up space on my mac but not lose years of p

    If time machine puts all of my photos onto my external hard drive using time machine, can I then delete the photos from my computer but view them again from the external hard drive? Basically, can I free up space on my mac but not lose years of photos?

    To add to Niel's comment bear in mind that if you have a backup copy on an external HD and later delete the orignals on your Mac HD you will then only have one copy - so no backup.
    If the pictures are precious you should have at least two copies, and ideally another copy kept off site,

  • I able to copy and paste files from external hard drive to mac, but not the other way around. Please suggest. Thanks

    I m able to copy and paste selected files from external hard drive to my mac but not the other way around. Im not able to copy files from Mac to external hard drive.
    The same is working fine with USB flash memory.
    Please help.

    Vijay Raymond Daniel wrote:
    The only thing is we need to buy this software. if there is a free solution to inter change files between NTFS and HFS it would be better,
    Don't use NTFS, remove your data off it first and change the format to something the Mac and PC can read, but doens't cost money or require software.
    Drives, partitions, formatting w/Mac's + PC's

  • I can connect to MAC but not my PC

    I have a new Nano, that connects to Mac but not my PC. When I try to connect to PC it says "iTunes as detected a Macintosh formatted iPod. You must restore this iPod before you can use it on Windows."
    How can I get my Nano to work on both?
    Thanks!

    Windows cannot read a Mac formatted disk.
    You need to Restore on iTunes for Windows and it will then work on Mac & Windows.

  • Movie works on mac but not PC...help!

    Hi!
    Hopefully someone out there can help me...
    I am trying to make a video play on a website that I designed. The video will play on a mac, but not a PC. When the user clicks on the link, the video (.mov) should start playing in whatever media player that computer has installed, either quicktime or windows media player. It isn't working on a PC. Maybe if I convert the video file to a windows media file or to a file that is easier read my a PC it would work? I don't know how to convert quicktime files into .wmv files.
    help!!!
    if you want to see the video, click on the "reel" link of www.williamday.net, then click on "reel" again in the middle of the page.

    The problem is your page code (or lack of it).
    You are directly linking to the file and bypassing any browser plug-in.
    http://docs.info.apple.com/article.html?artnum=61011
    http://developer.apple.com/internet/ieembedprep.html

  • Link works on mac but not on pc

    Hi -
    I am trying to insert a jpg into a dreamweaver file.
    I then upload the html file along with the jpg to my server in a folder called "layout"
    So the url is:  http://www.mysite.com/layout/test.html
    The link works on mac, but not on pc's.
    Any idea why?
    Some links work on pc's like this, and others don't.
    Thanks- It's driving me crazy!!

    The link is not correct....you have it listed as" mysite.com", which I assume is where you are to insert the name of your url.
    Gary

  • Web graphic links work on Mac, but not PC

    I have two websites. The old one is DogToysAndTreats.com. The new one is FunStuffForDogs.com. I need to change the home page graphic on both of them to point to my shopping cart pages. I have done this and published the changes on both sites. It works on my Mac but not on my PC.
    On www.funstufffordogs.com, the graphic at the top with the bulldogs is supposed to link to http://store.funstufffordogs.com/storefront.aspx. Same thing on www.dogtoysandtreats.com. It works on my Mac in both Safari and Chrome. On my PC, it doesn't work on IE, Safari or Firefox. (BTW, I haven't worked on any of the other links until I can figure out how to do it properly.)
    I don't get why the platform has anything to do with it.
    Lisa

    Looking at your source, the problem may be that the images refer to an external server link from the one actually hosting the website page.  Whenever you try to mix servers on a single page, you depend on the network connectivity being reliable to all the servers simultaneously.  This can be as much a problem on a Mac as a PC.  Sometimes routers have bad router tables, or internet providers do, and this can cause issues for multiserver websites.  Using on your router & network settings an OpenDNS DNS server can help:
    http://www.opendns.org/

  • Html link to pdf works ok on mac but not on ipad. adobe reader for ipad downloaded.

    HTML link to pdf works ok on Mac but not on ipad. Adobe Reader for ipad downloaded. What's wrong?

    Hi pwillener,
    Thank for reply. The pdf’s are in a subfolder “PDF” of the folder holding the web page. The web page itself uses
    . This works in full size computer browsers but not in an iPad.
    My excursion through the search engine has produced the idea of adding #page = requesting page to the URL but I have not had time to try it perhaps without the = sign.
    Bryan

  • Error when Writing Metadata to Files in Bridge (Mac) but not in Bridge (PC)

    We get an error when writing metadata to files in Bridge (Mac) but not in Bridge (PC). In the same drive and folder, the PC can successfully write a keyword to a file on the PC, where the Mac returns an error. I have researched this at the Adobe Knowledgebase, but their answer seemed to indicate it was a global issue, and we don't see that behavior on the PC.
    The client is a Mac of course, and the server volume is a Windows share volume. The Mac is bound to AD, and the domain\username and username formats have both been tried when logging in, but you receive the error in both.
    Any help would be appreciated.
    Thanks!
    Rich Oliver

    Hi, I'm having the same problem using FreeNAS (which uses Samba and Netatalk in the backend), but I tried with both AFP and SMB on Mavericks and Yosemite, I still have the same issue.  I think it might be a timing issue with how lightroom interact with a slower write delay using network shares.  I suggest you also chime into this thread:  Lightroom 5 can't write metadata to DNG files   I really hope this is resolved as this is impacting my productivity as I moved my workflow to my Macbook with a shared NAS.

Maybe you are looking for

  • Hyperlinks from my MSWord files suddenly don't work because "/FirefoxHTML\Shell\Open\Command" has somehow been added to the end of each URL.

    When I click to open the hyperlink in my Word file, the message I get in Firefox is "The requested URL /submissions.htmlFirefoxHTML\Shell\Open\Command was not found on this server." When I delete that portion of the URL, the website opens fine. What

  • IO error - REconstruction required?

    Is there a reconstruct program for Internal orders? In KOB2 I have an internal order that is not being updated.  There are two lines in the report, one shoing the actual and one showing the commitment.  The report should only show 1 line with the res

  • Layout to a Report run in the background

    For a standard SAP Report which is run in background everyday with a variant . How can I attach a layout ( i created for sort column )to the report ? I want the output of the report to be as per the Layout ...How can i assign the layout to the report

  • Thumbnail to open in new window

    Hi im really new to flash and I need to find out if its possible to click on a thumbnail and the image opens up in a new window? the image I have is not uploaded onto the web or anything like that. If it is possible can someone tell me how I can do i

  • TS1702 my camera app wont work

    when i open the Apple camera app that comes on the phone, it just shows the gray lenses. if those go away, the whole screen just stays black and the app is completely unusable. Ive restarted the phone and quit the app and reopened it, but it wont wor