Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (105)
games submitted by our members
Games in WIP (524)
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: glvertex on: 2004-12-20 03:37:39
i don't think you mean polymorphism, i think you're talking about overloaded methods.

anyways, if you'd really prefer to have 1 function format, just do your own overloaded method

void glVertexAny(int x, int y, int z){ ... }
void glVertexAny(double x, double y, double z){ ... }
void glVertexAny(float x, float y, float z){ ... }
void glVertexAny(int array){ ... }
void glVertexAny(double array){ ... }
void glVertexAny(float array){ ... }
2  Java Game APIs & Engines / JOGL Development / FPSAnimator on: 2004-12-09 18:32:15
why is FPSAnimator not part of the standard JOGL installation?  IMHO, FPSAnimator should replace the standard Animator.

now some questions about it.

how accurate is the frame limit?  how can i tell if my app is running UNDER the set limit?
3  Java Game APIs & Engines / JOGL Development / Re: How to pronounce JOGL on: 2004-12-09 16:02:21
well i happen to be american
4  Java Game APIs & Engines / JOGL Development / Re: How to pronounce JOGL on: 2004-12-08 22:48:58
i've been saying it "Jaw-Gull"
5  Java Game APIs & Engines / JOGL Development / Re: mouse enter window exception on: 2004-12-08 22:47:48
yeah that's all fine.  i started out w/ the "Getting Started" code in the sticky post on these forums.  anyways, you were correct to begin with.  it happened because i called System.exit(0) w/out calling animator.stop().

so this thread does merge into the other, where i have a new question
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1102496199
6  Java Game APIs & Engines / JOGL Development / Re: animator.stop on: 2004-12-08 22:47:36
alright, new question

in the example code listed on these forums, the animator object is declared using final.  is there any particular reason why?

if i declare the animator outside the method and initialize inside, it compiles and runs fine.  will this create problems for me later?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
public class Controller{
  Animator animator;
  ...
  public void start(){
    ...
    animator.start();
    ...
  }
  ...
  public void closeApp(int code){
    ...
    animator.stop();
    System.exit(code);
  }
}
7  Java Game APIs & Engines / JOGL Development / Re: mouse enter window exception on: 2004-12-08 17:40:25
as far as i can tell, the two topics are unrelated... as there are no opengl draw commands anywhere in my program
8  Java Game APIs & Engines / JOGL Development / animator.stop on: 2004-12-08 06:56:39
is it necessary to call animator.stop() before exiting a JOGL application?

while on the topic of the animator object -> is it really necessary at all?  from what i can tell, the animator sets up a program loop, right?  at first i thought "no, there must be more to it...," but then i looked and it only has the 2 methods.

either i'm missing out on something, or the animator is useless.
9  Java Game APIs & Engines / JOGL Development / mouse enter window exception on: 2004-12-08 06:28:18
on a mouse enter event, this exception is thrown:

Exception in thread "Thread-2" net.java.games.jogl.GLException: Error swapping buffers
     at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers(WindowsOnscreenGLContext.java:140)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:241)
     at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:194)
     at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
     at net.java.games.jogl.Animator$1.run(Animator.java:104)
     at java.lang.Thread.run(Thread.java:595)


i can (reluctantly) post code if necessary
10  Java Game APIs & Engines / Tools Discussion / Re: UML editors: 2004 roundup on: 2004-12-07 21:14:52
to the original poster:
did you come to any conclusions?  if so, what were they?
11  Java Game APIs & Engines / JOGL Development / New to JOGL on: 2004-12-07 21:02:21
My Story*
  *Not a neccessary read*


New to JOGL and new to these forums. Like many other programmers, i started out with C and C++.  Despite all the negative hype about performance Java was getting, i fell in love with java as soon as i started with it.  It just feels so much cleanier....easier to program... but that's another topic... and possibly flamebait in other forums.

anyways, i started out using OpenGL with C and C++ a few months ago.  I wrote a simple terrain editor with the GLUT and GLUI libraries.  Needless to say, it was ugly.  i was proud nonetheless and decided that a mesh editor would be much more useful and much more fun to use.

I came to the conclusion that if i could program a mesh editor that satisfied my tastes, it would be good enough to sell.  However, i was writing in VS.NET (Student and Teacher Edition).  i remembered that the EULA said that i technically couldn't sell anything i designed with it.  VS.NET has some nice GUI design features... but i can't afford a standard license.

I wish there was an easy way to create attractive GUI elements like Java has.... I remember java had a 3d package (Java3d) but i had never taken a look at it.  so i started doing some research and came to the obvious conclusion that my decesion was to be LWJGL or JOGL.

although LWJGL seems to be the popular choice JOGL because it seems more likely to become part of the runtime in the future.  also, i wanted the easy to use UI controls.

so i download and installed JOGL.  i got the code compiled and running from the "Getting Started" post.   In the past, i was one of those "just start coding" programmers.  but as i mature i find myself planning/researching more (and in effect debugging less).

that's my story up to date


*start reading here!

there seems to be a lack of resources on proper practices and uses of JOGL.  i've googled the crap out of the internet (it can be done! Wink) and i've been searching as many forums as i could find.  the best resources i could find were the NeHe ports on http://nehe.gamedev.net.   although many people are loyal to NeHe, i found their "tutorials" better for reference, rather than learning.  I also found a book, but it's online preview was disappointing.  this brings me to my first questions

is there a descent collection of online resources available for learning JOGL?
are there any good books on it?


i know JOGL is still fairly new, but there are certainly enough descent JOGL programmers out there to help the rest of us get started.  right?

something i read that's kinda been bothering me is that JOGL can only render from one method.  this is not so different from regular java apps, but it is different from openGL.  My openGL/C++ renderable object classes have a method called renderGL().  this method simply calls the OpenGL commands neccessary to render that particular object.

What is the best solution for this process using JOGL?.


sorry for the long post, but nobody at my uni and none of my peers get into this stuff.  i've excited about openGL and Java for a while now, and nobody understands!  i figured this would be the best place to get some straightforward answers and insightful discussion.  Thanks!
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.

SHC (32 views)
2014-07-12 17:50:04

Riven (32 views)
2014-07-10 20:20:18

CopyableCougar4 (31 views)
2014-07-10 02:26:14

CopyableCougar4 (32 views)
2014-07-09 02:55:38

Code Mage (33 views)
2014-07-08 23:57:00

Code Mage (21 views)
2014-07-08 23:49:08

AppleSauce (28 views)
2014-07-08 19:25:32

CopyableCougar4 (30 views)
2014-07-06 01:51:26

ipe369 (35 views)
2014-07-05 14:18:25

vastrolorde (44 views)
2014-07-04 18:45:44
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!