Original Post
Java3D won't start, I get a "wglCreateContext failed: Invalid Pixel format" error. I'm guessing that this is because the bitdepth of the GraphicsConfiguration object is 24, which for whatever reason my system can't handle. From what I understand getConfigurations() is supposed to return all possible configurations, but they all have the same bitdepth of 24. This is the code: There isn't a setBitdepth() function that I can find, so I don't know how to create a Config with a different bitdepth, or is that not the problem in the first place? thanks,
GraphicsConfiguration Config2=SimpleUniverse.getPreferredConfiguration ();
GraphicsEnvironment gf = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice Device=gf.getDefaultScreenDevice();
GraphicsConfiguration []Configs=Device.getConfigurations ();
System.out.println (Configs.length);
//print out configurations
for (int X=0; X<Configs.length; X++)
{
ColorModel Temp=Configs[X].getColorModel ();
System.out.println ("Bit Depth: " + Temp.getPixelSize() + " Channels: " + Temp.getNumComponents());
}
Canvas3D Screen = new Canvas3D (Config2);
Universe = new SimpleUniverse (Screen);
setLayout (new BorderLayout ());
add (Screen, BorderLayout.CENTER);