Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: jogl portability on: 2004-01-30 09:27:57
GKW, you were right!
I solved the minor problem of the jawt.dll not loading. The folder was already in the path. I added to the PATHEXT variable the .DLL extension and it worked. Hope this is not too dirty.  Huh

After that the application works on the newer computer. Ergo the graphics card of the old one was a problem.

Lots of thanks to everyone who replied and helped to solve  Grin
Andrea
2  Java Game APIs & Engines / JOGL Development / from commandline on: 2004-01-30 08:48:55
I realized one thing that could probably help.
On windows I use Eclipse to build the application. I already supplied the error I got.
Trying from commandline on another pc (because of the different graphic card) it complains about the fact that it can't the application because it can't find the library jawt.dll. The same happens on the first pc if started from command line.
The lib is in the same path as the jogl one, therefore I can't understand what happens.

Has anyone a guess on why it cant load (or find) the needed lib?

Thanks
Andrea
3  Java Game APIs & Engines / JOGL Development / Re: jogl portability on: 2004-01-30 07:15:57
Hy,
it works both on linux and Mac, just the windows machine complains...
But my linux laptop has a rather new NVidia and the windows machine an older graphicscards.
I will try all your suggested steps and let you know how what happens.

Thanks
Andrea
4  Java Game APIs & Engines / JOGL Development / addendum on: 2004-01-29 07:10:11
I put the file MapCanvas.java (which contains GLCapabilities, GLCanvas, etc) at the url:
http://bedu.ing.unitn.it/~moovida

Thanks in advance.
Andrea

Videocard I use on the windows PC:
NVIDIA RIVA TNT2 Model 64
5  Java Game APIs & Engines / JOGL Development / Re: jogl portability on: 2004-01-29 07:00:48
Thanks for the reply, I post the class that gives the problems on the last line visible(true).

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
136  
137  
public class MainFrame extends JFrame
  implements ParentFrame, ActionListener, ChangeListener, KeyListener,
             ToolBarListener
{
  /* Toolbar item constants */
  public static final String CONFIG_WINDOWFRAME_TAG = "windowframe";
  public static final String CONFIG_MAPDRAWING_TAG = "mapdrawing";
  public static final String CONFIG_APPLICATION_TAG = "application";
  public static final String CONFIG_CONSOLE_TAG = "consolewindow";
  public static final String CONFIG_LEGEND_TAG = "legendwindow";
  public static final String CONFIG_NORTHARROW_TAG = "north_arrow";
  public static final String CONFIG_MAPSCALE_TAG = "map_scale";
  public static final String CONFIG_TOOLBARITEM_TAG = "toolbaritem";

  private static final String TOOLBARITEM_LEGEND_ACTION = "togglelegend";
  private static final String TOOLBARITEM_VIEW_PARAMS = "viewparams";
  private static final String TOOLBARITEM_QUERY_MAP = "querymap";

  private static final String TOOLBARITEM_DEFAULT = "$default";
  private static final String TOOLBARITEM_ZOOMIN = "$zoomin";
  private static final String TOOLBARITEM_ZOOMOUT = "$zoomout";
  private static final String TOOLBARITEM_PAN = "$pan";
  private static final String TOOLBARITEM_MAPLEGEND = "$maplegend";

  /** */
  private static final String
    CONFIG_ERROR_DIALOG_TITLE = "Configuration Parameters Error";

  /* Main java application object */
  private jgrass.client.Main main;

  /* Splash screen object. */
  public SplashWindow splash = null;

  /* Main frame toolbar object */
  private JPanel toolbarPanel;

  /* Vector storage for module objects that must be
   * installed after a user has logded in. */

//  private Vector loginModules = null;

  /* Active module component */
  private DisplayModule activeModule = null;

  /* Class logger instance. */
  private Logger logger = LogManager.getLogger(this.getClass().getName());

  /* Status panel */
  private JPanel statusBar;

  /* Taskbar panel */
  private JToolBar taskBar;

  /* */
  private Hashtable visibletoolbars = new Hashtable();

  /* */
  private JLabel statusMessage = new JLabel("", JLabel.LEFT);

  private AnimatedLabel busy = null;

  /* Configration class */
  public Configuration config;

  /* Legend Frame */
  private LegendPane legend = null;

  /* 3D View Frame */
  private View3DPane view3d = null;

  /* */
  private QueryPane querywindow = null;

  /* */
  private Console console = null;
  private CloseButtonTabbedPane consoleTab = null;
  private Color consoleTabActiveColor = null;
  private Color consoleTabInactiveColor = null;
//  private TitledBorder glCanvasBorder = null;
//  private GLRenderer glRenderer = null;
 private JToolBar mapToolbar = null;

  /**
   * Keys pressed
   */


 
  /**
   * Constructor for the main application frame which holds the GLCanvas
   * and the Console.
   * @param jgrass.client.Main Application object.
   * @param Configuration confoguration object that holds the config.xml data.
   */

  public MainFrame(jgrass.client.Main _main, Configuration _config)
  {
    super();

    GrassEnvironmentManager.getInstance().setParentFrame(this);

    main = _main;
    config = _config;
    splash = main.splash;

    /* Set look and feel specified in configuration file */
    LookAndFeel lf = config.getLookAndFeel();

    /* Set windowframe settings taken from configuration parameters */
    setTitle(config.getWindowTitle() + ResourceLoader.getBuild());
    setIconImage(ResourceLoader.LoadImage(_config.getWindowIcon()));
    UIManager.put("ToolTip.font", new FontUIResource(config.getTipFont()));
    UIManager.put("ToolTip.background", new ColorUIResource(
                  config.getTipBackgroundColor()));

    splash.setStatus("Loading configuration. Please wait...");
    splash.incProgress();
    applyConfiguration();
    splash.setStatus("Starting up main window. Please wait...");
    splash.incProgress();

    /* Set windowframe settings taken from configuration parameters */
    Dimension sz = config.getWindowDimension();
    Point pos = new Point(0,0);
    if (sz.width == -1)
    {
      sz.width = (int)((float)Toolkit.getDefaultToolkit().getScreenSize().width *.8);
    }
    pos.x = (Toolkit.getDefaultToolkit().getScreenSize().width - sz.width) / 2;
    if (sz.height == -1)
    {
      sz.height = (int)((float)Toolkit.getDefaultToolkit().getScreenSize().height *.8);
    }
    pos.y = (Toolkit.getDefaultToolkit().getScreenSize().height - sz.height) / 2;
    setLocation(pos);
    setSize(sz);
//    pack();
   setVisible(true);
  }

6  Java Game APIs & Engines / JOGL Development / jogl portability on: 2004-01-28 07:41:27
Hy folks,
we are trying to port a java-jogl application from linux to macosx and windows. A few questions regarding both systems:

1) does anybody know why putting the *.dll (or *.jnilib) of jogl intothe java.library.path does not work. It only works if I put them into the .../j2sdk1.4.2/bin/.

2) on windows I nevertheless have an error,which is:
net.java.games.jogl.GLException: Method "wglChoosePixelFormatARB" not available
     at net.java.games.jogl.impl.windows.WindowsGLImpl.wglChoosePixelFormatARB(WindowsGLImpl.java:22201)
     at net.java.games.jogl.impl.windows.WindowsPbufferGLContext.createPbuffer(WindowsPbufferGLContext.java:207)
     at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:116)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
     at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
     at java.awt.Component.setBounds(Unknown Source)
     at java.awt.BorderLayout.layoutContainer(Unknown Source)
     at java.awt.Container.layout(Unknown Source)
     at java.awt.Container.doLayout(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validate(Unknown Source)
     at java.awt.Window.show(Unknown Source)
     at java.awt.Component.show(Unknown Source)
     at java.awt.Component.setVisible(Unknown Source)
     at jgrass.client.gui.swing.MainFrame.<init>(MainFrame.java:255)
     at jgrass.client.Main.<init>(Main.java:195)
     at jgrass.client.Main.main(Main.java:288 )



This should not depend on me, I guess. But I don't know exactly how to act. First time I develop in windows.

Thanks for any hint.
Andrea
7  Java Game APIs & Engines / Xith3D Forums / Re: Using xith3d with Eclipse on: 2003-11-23 19:58:55
Jani_Laakso was absolutely right.
Got the package.

Now it works, thanks.
Regards, Andrea
8  Java Game APIs & Engines / Xith3D Forums / using Xith for spatial data on: 2003-11-23 18:05:06
Hy folks, please remember that I'm rather new to all this, so please don't shoot at the pianoman.

I work on geographic information systems and I'm trying to create a GUI for hydrological models trying to leave a door open to future developments towards 3D flighthroughs in elevation models.

I've tried some demos and examples and I really like Xith!

The fact is that I need a visualization engine which in a first step of the development of the interface performs 2D raster visualization. Only in a second step 3D rendering will be implemented. Does it make some sense to use Xith for this? Is there even a possibility to do this?

It seems to me that jogl will get the new standard for GL bindings, so, since my project starts now, I would like to start with the most updated stuff.

Moreover Xith supplies a lot of documentation and examples, even if not in 2D (that's why I'm not really sure if it could work).

My dream would be to have a "false" 2D visualization, which could be dragged and twisted along axes and show what it really is: 3D.

Hope it was not to philosophic.
Every hint is greatly appreciated.

Thanks in advance.
Regards,
Andrea Antonello
9  Java Game APIs & Engines / Xith3D Forums / Re: Using xith3d with Eclipse on: 2003-11-23 17:44:15
Please permit me one more question.
I use eclipse on linux.
Where can I get the lwjgl.so? The third party package only supplies the .dll's.

Kind regards
Andrea
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (29 views)
2014-04-15 18:08:23

BurntPizza (26 views)
2014-04-15 03:46:01

UprightPath (41 views)
2014-04-14 17:39:50

UprightPath (23 views)
2014-04-14 17:35:47

Porlus (40 views)
2014-04-14 15:48:38

tom_mai78101 (62 views)
2014-04-10 04:04:31

BurntPizza (122 views)
2014-04-08 23:06:04

tom_mai78101 (221 views)
2014-04-05 13:34:39

trollwarrior1 (188 views)
2014-04-04 12:06:45

CJLetsGame (197 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!