Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
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: a strange problem on: 2006-03-01 21:55:22
hi guys,
i got the prblem solved. I was not decalring the glrotate globally. I waas decalring them individually for each type of object. Hence i was getting the mistake. Thanks.
ravi.




hi guys,
I am unable to understand something. I divided the GLCanvas in to viewports (3X3 = 9) 3 rows and 3 colums. I draw the an icosohedron in each of  these viewports and try to rotate them. I am able to rotate all the icosohedron but they rotate differently. I want all of them to rotate in the same fashion. the code for my application is as follows.

 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);

 gl.glLoadIdentity();

 gl.glTranslatef(v.trans[0], v.trans[1], v.trans[2]);  //trans[2] = -43; trans[0] = trans[0] = 0.0
//
i am drawing something else here
//

   gl.glRotatef(this.v.rot_inc[0], 1, 0, 0);  //i am getting the values from the mouse draged event

  gl.glRotatef(this.v.rot_inc[1], 0, 1, 0);


gl.glViewport(0, 0, w, h);  //bringing the viewport back to normal   

this.applyViewPortForWaves(this.v.RowsForScalePlot, trialvalue-1); // applying the (3X3) viewport. this is dynamic and changes accordingly

this.DrawObject(2, l);  //drawing the object for the vieport

this.BeginHUD(w, h);

gl.glColor3f(0, 0, 0);

 this.renderBitmapString(3, h_h, 14, f[l].toString(), Defaultcolor);

 this.EndHUD();

gl.glViewport(0, 0, w, h);



i am unable to understand what mistake i am doing. I would appreciate if somebody can help me in this regard.

thanks,
ravi.





2  Java Game APIs & Engines / JOGL Development / a strange problem on: 2006-03-01 21:49:25
hi guys,
I am unable to understand something. I divided the GLCanvas in to viewports (3X3 = 9) 3 rows and 3 colums. I draw the an icosohedron in each of  these viewports and try to rotate them. I am able to rotate all the icosohedron but they rotate differently. I want all of them to rotate in the same fashion. the code for my application is as follows.

 gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);

 gl.glLoadIdentity();

 gl.glTranslatef(v.trans[0], v.trans[1], v.trans[2]);  //trans[2] = -43; trans[0] = trans[0] = 0.0
//
i am drawing something else here
//

   gl.glRotatef(this.v.rot_inc[0], 1, 0, 0);  //i am getting the values from the mouse draged event

  gl.glRotatef(this.v.rot_inc[1], 0, 1, 0);


gl.glViewport(0, 0, w, h);  //bringing the viewport back to normal   

this.applyViewPortForWaves(this.v.RowsForScalePlot, trialvalue-1); // applying the (3X3) viewport. this is dynamic and changes accordingly

this.DrawObject(2, l);  //drawing the object for the vieport

this.BeginHUD(w, h);

gl.glColor3f(0, 0, 0);

 this.renderBitmapString(3, h_h, 14, f[l].toString(), Defaultcolor);

 this.EndHUD();

gl.glViewport(0, 0, w, h);



i am unable to understand what mistake i am doing. I would appreciate if somebody can help me in this regard.

thanks,
ravi.




3  Java Game APIs & Engines / JOGL Development / a small example please on: 2006-03-01 08:56:13
hi guys,
 i ma new to jogl and having a small problem in rotating the object using multmatrix. Can anybody  give me a small example or forward to a tutorial that will explain in detail abuout how to rotate an object using multmatrix.
thanks,
ravi.
4  Java Game APIs & Engines / JOGL Development / Re: glLightfv ? what does the offset_params mean? on: 2006-02-22 18:48:23
thanks a lot ken. appreciated. great work.

ravi.


I am able to run jogl with java web start on a windows xp machine. I am dowloading the libraries and jogl.jar on to the client machine and the application runs fine. Will it work the same for windows 2000 and for all the other versions of windows os.

There should be no problems. I don't know about Windows NT 4 and Windows 95 but JOGL works fine on Windows 2000.

5  Java Game APIs & Engines / JOGL Development / Re: glLightfv ? what does the offset_params mean? on: 2006-02-22 04:18:25
thanks a lot guys. I got it. I would like to know one more thing. I am able to run jogl with java web start on a windows xp machine. I am dowloading the libraries and jogl.jar on to the client machine and the application runs fine. Will it work the same for windows 2000 and for all the other versions of windows os. All the machines we are using have XP. I just want to know if any body had any problems with other windows os.
thanks,
ravi. 


hi guys,

I downloaded the latest version of jogl and having some problems with it. what does the argument params_offset in method gl.gllightfv mean. It was not present in the previous version. Moreover what is a float buffer and when am i suppose to use it. I would appreciate if somebody can explain me or give me a link(not javadoc) that in detail would explain what the new version classes and methods mean. I already have the javadoc. I want some description along with it.
public void glLightfv(int light,
                      int pname,
                      float[] params,
                      int params_offset)

thanks,
ravi


Sorry but the overview javadoc is the documentation describing the mapping between the C APIs and the Java APIs and how something like a C float* maps to a Java FloatBuffer and (float[], intI pair.

DzzD is right, the offset argument indexes into the float[] array. If you aren't doing anything fancy then passing 0 is the right thing to do.

6  Java Game APIs & Engines / JOGL Development / glLightfv ? what does the offset_params mean? on: 2006-02-21 23:20:28
hi guys,

I downloaded the latest version of jogl and having some problems with it. what does the argument params_offset in method gl.gllightfv mean. It was not present in the previous version. Moreover what is a float buffer and when am i suppose to use it. I would appreciate if somebody can explain me or give me a link(not javadoc) that in detail would explain what the new version classes and methods mean. I already have the javadoc. I want some description along with it.
public void glLightfv(int light,
                      int pname,
                      float[] params,
                      int params_offset)

thanks,
ravi
7  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 22:07:12
GOt it finally. But this is something strange. When i try to launch the application through the link or url of jnlp in the browser  its accessing the dll's and working fine. However if i launch the jnlp file by clicking it, its searching for the dlls in the default  classpath and giving the exception as mentioned above. Anyways thanks a lot for helping. Appreciated.

ravi.




I am getting the following error.While trying to run the application.

java.lang.UnsatisfiedLinkError: no jogl in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:66)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:64)
   at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:59)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:75)
   at jex.Main.<init>(Main.java:55)
   at jex.Main.main(Main.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
   at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
   at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
#### Java Web Start Error:
#### null


I tried it by removing the jogl.dll,jogl_awt.dll,  jogl_cg.dll from the usual classpath(jre/bin) so that it will access the dlls that are downloaded. Its not doing that and searching for the dlls in the java bin. Is there a place in the application where we specify the classpath. Like in the manifest file or .java or jnlp. I am missing something?
thanks,
ravi.





i got the problem solved. I was actually creating a directory with all the dll's and adding the directory to the jarfile rather than adding the dll's directly to the jarfile. When i tried adding the dll's directly to the jar file its working fine. All the jarfiles are getting unpacked as they should be. I will test whether they are being accessed or not and inform you.

thanks,
ravi.


Don't know. Probably you can't have a unsigned natives jar in webstart. Do you have created your own jogl/natives library or are you just referencing the official ones (recommended).
8  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 21:05:58
I am getting the following error.While trying to run the application.

java.lang.UnsatisfiedLinkError: no jogl in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:66)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:64)
   at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:59)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82)
   at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:75)
   at jex.Main.<init>(Main.java:55)
   at jex.Main.main(Main.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
   at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
   at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
#### Java Web Start Error:
#### null


I tried it by removing the jogl.dll,jogl_awt.dll,  jogl_cg.dll from the usual classpath(jre/bin) so that it will access the dlls that are downloaded. Its not doing that and searching for the dlls in the java bin. Is there a place in the application where we specify the classpath. Like in the manifest file or .java or jnlp. I am missing something?
thanks,
ravi.





i got the problem solved. I was actually creating a directory with all the dll's and adding the directory to the jarfile rather than adding the dll's directly to the jarfile. When i tried adding the dll's directly to the jar file its working fine. All the jarfiles are getting unpacked as they should be. I will test whether they are being accessed or not and inform you.

thanks,
ravi.


Don't know. Probably you can't have a unsigned natives jar in webstart. Do you have created your own jogl/natives library or are you just referencing the official ones (recommended).
9  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 20:54:58
i got the problem solved. I was actually creating a directory with all the dll's and adding the directory to the jarfile rather than adding the dll's directly to the jarfile. When i tried adding the dll's directly to the jar file its working fine. All the jarfiles are getting unpacked as they should be. I will test whether they are being accessed or not and inform you.

thanks,
ravi.


Don't know. Probably you can't have a unsigned natives jar in webstart. Do you have created your own jogl/natives library or are you just referencing the official ones (recommended).
10  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 20:32:32
thanks for the reply. I found something strange. I am able to download all the libraries to the client machine. In the client machine all the dll's are fine within the jar file. these libraries were getting unpacked automatically. How ever the unpacked directory with the same name as the jar file dosent conatin anything(jogl.dll...etc are not found). What am i doing wrong. Is it something to do with the signing of the jar file?

thanks,
ravi.



There is no difference in the .java files. The natives are only referenced in the .jnlp file. There is nothing more to do.
11  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 19:24:42
I did that yesterday and surprisingly did not find a system.loadlibrary being used. I will go through it in detail and find out how they are able to implement the demo in deatail.
Thanks,
ravi.



Just download and examine the jnlp-file from the Gears-demo. Nor for webstart a System.loadLibrary is needed:
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/Gears.jnlp
12  Java Game APIs & Engines / JOGL Development / Re: jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-21 01:17:50
Thanks cylab, For your immediate reply. I am trying to use jogl with java web start. Hence i need to load libraries. Its working fine without the system.loadlibrary for my system, but i need to deploy the jogl application on the client machine. I downloaded the latest jogl releases. All i need to is access the these libaries on the client machine. I am able to download them to the client machine. I know it can be done as the jogl examples demos work in the same fashion. Do you have a clue how to access jogl.dll, jogl_awt.dll and jogl_cg.dll on the client machine? Forget about th client machine, i am not able to load them on my machine. your help will be appreciated.

thanks,
ravi.








Skip the System.loadLibrary alltogether and make sure, the dll's are either in your working dir (e.g. in the same folder where your start your program), or set your java.library.path to the directory with your jogl-dlls by appending the following to your java call:

1  
-Djava.library.path="C:\java\tools\"


<advertise> and oh... if you are using Netbeans 5 as IDE, download my project template plugin: http://www.java-gaming.org/forums/index.php?topic=12530.0 Smiley </advertise>


13  Java Game APIs & Engines / JOGL Development / jogl_cg.dll ! unsatisfied link error - Help needed on: 2006-02-20 22:31:37
hi guys,
     I am new to the forum and sorry if this question has been posed before.
I am trying to loadlibrary   jogl.dll, jogl_cg.dll  using System.LoadLibrary as shown below in my main class

        System.loadLibrary("jogl");
       
        System.loadLibrary("jogl_cg");

its showing an unsatisfied link error for "jogl_cg" as shown below

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\java\tools\jogl_cg.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at testlib.Main.main(Main.java:35)
Java Result: 1


I think it depends on some other library. I would appreciate if some body can help me in this regard

thanks in advance,

Ravi ananthuni.


Pages: [1]
 
EgonOlsen (1668 views)
2018-06-10 19:43:48

EgonOlsen (1705 views)
2018-06-10 19:43:44

EgonOlsen (1156 views)
2018-06-10 19:43:20

DesertCoockie (1584 views)
2018-05-13 18:23:11

nelsongames (1184 views)
2018-04-24 18:15:36

nelsongames (1708 views)
2018-04-24 18:14:32

ivj94 (2532 views)
2018-03-24 14:47:39

ivj94 (1757 views)
2018-03-24 14:46:31

ivj94 (2834 views)
2018-03-24 14:43:53

Solater (970 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!