Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (763)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (852)
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 ... 5 6 [7]
181  Java Game APIs & Engines / JOGL Development / Re: New to forum and could use some help on: 2005-08-24 16:01:49
Check out this thread on the LWJGL forum: http://lwjgl.org/forum/viewtopic.php?t=917  if you read to the end you will find that he has made some major steps forward with his loader!!  Grin

Casey
182  Game Development / Newbie & Debugging Questions / Re: Own charset on: 2005-08-24 15:05:28
What exactly do you mean by charset?  Do you mean that you would like to use a charset that is not english characters?  What do you mean g.drawString looks unprofessional?  Please give us more info!    Wink
183  Discussions / Miscellaneous Topics / Buildindg a Virtual Machine on: 2005-08-18 22:02:51
Does anyone know any good references for creating a virtual machine?
184  Game Development / Newbie & Debugging Questions / Re: JNLP + Proxy = ??? on: 2005-08-17 16:38:37
That's cool, thanks for your help.  I guess I just need to do some deeper probing!  Undecided
185  Game Development / Newbie & Debugging Questions / Re: JNLP + Proxy = ??? on: 2005-08-17 13:21:16
I tried that and I have it using the sme settings as my browser and still no go! Huh
186  Game Development / Newbie & Debugging Questions / JNLP + Proxy = ??? on: 2005-08-16 16:47:35
I am doing some research on WebStart for my work and I am trying to launch some of the games here as examples, but they won't work.  Is there a wa I can change the JNLP file itself to work with our proxy?  Please understand I am totally "newless" when it comes to this, so any help at all would be appreciated!
187  Java Game APIs & Engines / Tools Discussion / Re: Control-L in emacs is to {BLANK} in eclipse on: 2005-08-11 18:08:08
I just use the mouse wheel!  Grin
188  Game Development / Newbie & Debugging Questions / Re: system to status window in applet on: 2005-08-11 15:10:14
If I understand what you are trying to get at, then it should be like this:
1  
2  
3  
4  
5  
6  
7  
8  
try
{
    soemthing;
}
catch(SomeException e)
{
    status.append(e.toString());
}

or if at some point you would do a
1  
System.out.println(someIntVariable);

just change it to
1  
status.append(Integer.toString(someIntVariable));


CaseyB
189  Game Development / Newbie & Debugging Questions / Re: system to status window in applet on: 2005-08-10 19:55:40
Instead of using System.out.println() you could just use JTextArea.append(), unless I am misunderstanding youe question.

CaseyB
190  Game Development / Newbie & Debugging Questions / Re: glDrawPixles on: 2005-08-10 12:07:50
Sorry, I didn't mean to cross post, but I guess that most of you do read both boards.  I'll keep that in mind for the future! Wink
191  Game Development / Newbie & Debugging Questions / Re: Iam already... on: 2005-08-09 14:18:33
Actually I was refering to this one: http://www.amazon.com/exec/obidos/ASIN/0596007302/qid=1123596813/sr=2-1/ref=pd_bbs_b_ur_2_1/102-1030849-2880162

But that's really good to know, I was already thinking about getting that one, I may have to do it sooner than I thought originally!

CBorders
192  Game Development / Newbie & Debugging Questions / glDrawPixles on: 2005-08-09 13:42:25
I am trying to get a BufferedImage and extract the pixel data to feed into glDrawPixels(), but it keeps giving me an exception.  Here is the StackTrace:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Number of remaining buffer elements is 502865, must be at least 1508598
   at org.lwjgl.BufferChecks.checkBufferSize(BufferChecks.java:177)
   at org.lwjgl.BufferChecks.checkBuffer(BufferChecks.java:187)
   at org.lwjgl.opengl.GL11.glDrawPixels(GL11.java:2026)
   at Canvas.paintGL(Canvas.java:123)
   at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:256)
   at sun.awt.RepaintArea.paintComponent(Unknown Source)
   at sun.awt.RepaintArea.paint(Unknown Source)
   at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)


and the relevant code:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
GraphicsConfiguration gc = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();
        Image img = viewport.CreateImage(null);
        BufferedImage bufImg = gc.createCompatibleImage(img.getWidth(null), img.getHeight(null), Transparency.OPAQUE);

        System.out.println(bufImg);
       
        DataBuffer dataBuffer = bufImg.getData().getDataBuffer();
       
        IntBuffer image = IntBuffer.allocate(dataBuffer.getSize());
        image.put(dataBuffer.getOffsets());
       
        System.out.println("db.size: " + dataBuffer.getSize() + "\nib.rem: " + image.remaining());
       
        GL11.glDrawPixels(img.getWidth(null), img.getHeight(null), GL11.GL_RGB, GL11.GL_INT, image);


Can anyone help me figure this out?  I really have no idea how this works!
193  Game Development / Newbie & Debugging Questions / Re: Iam already... on: 2005-08-09 13:39:48
The Killer game Programing book is written in Java3D, so if you are looking to use that I hear it's pretty good, if you want to use the LWJGL or JOGL then it may not be that helpful!
194  Java Game APIs & Engines / Tools Discussion / Re: JVM on: 2005-08-08 16:47:51
 Cheesy That'll be cool too! Thanks!

CaseyB
195  Java Game APIs & Engines / Tools Discussion / Re: JVM on: 2005-08-08 13:53:44
Awesome!  Thanks, I'll take a look at it!
196  Games Center / Archived Projects / Re: Mobile Sand on: 2005-08-08 13:38:26
This game looked awesome, though I couldn't actually play it as my phone is a SmartPhone, but it's apparently not smart enough to have real keys, they are only on the touch-screen, which was running the game at the time!  Sad  But the tutorial looked amazing!  Shocked
197  Java Game APIs & Engines / Tools Discussion / JVM on: 2005-08-08 12:50:03
I am not sure where this would go so I put it here, feel free to move it if need be!

Has anyone here written a JVM?  I am very interested in seeing the source for a JVM, just for academic reasons, to better understand how they work.  I'm not looking for anything totally compliant or anything like that, just a stripped down, simple JVM would be perfect!  Grin

Thanks,
CaseyB
198  Discussions / General Discussions / Re: Where Are You? on: 2005-08-08 12:06:33
Central New York State!  I have to add the word "State" because anytime you say New York everyone thinks New Yorl City!  Roll Eyes Oh, well!
199  Game Development / Networking & Multiplayer / Re: Best approach for networking a board game? on: 2005-08-06 19:07:15
We just wrote another Java application that accepted incoming connections, it wasn't to bad, but as I said my experience is pretty limited so if anyone else knows a better way, I'd like to know too!  Wink
200  Game Development / Networking & Multiplayer / Re: Best approach for networking a board game? on: 2005-08-06 17:48:38
I have limited knowledge on this subject so feel free to thorw out everything I say, but...  If you need data transfer reliability then you needto use a TCP connection and I think that you would need to use a central cerver to make all of the players aware of each other.  If you didn't then each player would need to set up a P2P connection with each of the other players instead of simply connecting to the server and letting it handle all of the messy stuff!

In fact this is the set up we used to make a "BW3 / Bar style" trivia game!  Where the server gives out a question and 4 answers, then a hint is displayed every so often and the sooner you get the right answer to more points you get!
201  Discussions / Community & Volunteer Projects / Re: PROJECT PROPOSAL: The Jungle on: 2005-08-06 17:40:24
ABOSLUTELY!  It sounds like an awesome idea!
202  Games Center / Archived Projects / Re: Tourist Camping Tycoon on: 2005-08-05 20:10:05
Yeah, I'd really like to give it a shot, see what can be done about the link!
203  Games Center / 16K LWJGL Competition - 2005 / Re: I'd like to get the ball rolling in this competition on: 2005-08-04 21:15:40
Using the JInput wrapper should make the games more flexable!  I think that is a good idea!
204  Java Game APIs & Engines / Java 2D / Re: JLayeredPane Trouble on: 2005-08-04 14:14:29
Yeah, I finally gave up on it too!  It is definately something that Sun should look into though!
205  Java Game APIs & Engines / Java 2D / Re: JLayeredPane Trouble on: 2005-08-03 13:35:34
I have tried repainting the JLayeredPane, repainting the JPanel, repainting the whole JFrame, but the repaint method of the JPanel is never invoked while it's in the JLayeredPane, but again, it works fine if I add it to the JFrame outside of the JLayeredPane!  Angry
206  Java Game APIs & Engines / Java 2D / JLayeredPane Trouble on: 2005-08-02 19:16:39
I have a class that extends JPanel that I use Java2D to draw on and a thread to update the image and repaint it. When I add it to the JFrame it works perfectly, but if I try to put it in a JLayeredPane it completely ignores the repaints! It's never painted, not once, ever! Any ideas as to why that is?  Huh
207  Java Game APIs & Engines / Java 3D / Re: java.lang.ArrayIndexOutOfBoundsException on: 2005-07-27 18:27:21
 Undecided
Well, I fixed it by using
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
50        QuadArray map = new QuadArray (4,QuadArray.COORDINATES | GeometryArray.TEXTURE_COORDINATE_2);
51        map.setCoordinate(0, new Point3f(-(width/2f), -(height/2f), -6.0f));
52        map.setCoordinate(1, new Point3f( (width/2f), -(height/2f), -6.0f));
53        map.setCoordinate(2, new Point3f( (width/2f),  (height/2f), -6.0f));
54        map.setCoordinate(3, new Point3f(-(width/2f),  (height/2f), -6.0f));
55
56        map.setTextureCoordinate(0, new Point2f(0.0f,0.0f));
57        map.setTextureCoordinate(1, new Point2f(1.0f,0.0f));
58        map.setTextureCoordinate(2, new Point2f(1.0f,1.0f));
59        map.setTextureCoordinate(3, new Point2f(0.0f,1.0f));


I have no idea why this worked, but the setTextureCoordinate(int, Point2f) is deprecated, so it may not work for much longer!  Huh
208  Java Game APIs & Engines / Java 3D / java.lang.ArrayIndexOutOfBoundsException on: 2005-07-27 17:25:24
I extended JPanel to add a Java3D panel to a SWING frame, then to do some optimizations I changed it to extending Canvas3D, and somehow that broke my texture binding!

Here's the code:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
51        QuadArray map = new QuadArray (4,QuadArray.COORDINATES | GeometryArray.TEXTURE_COORDINATE_2);
52        map.setCoordinate(0, new Point3f(-(width/2f), -(height/2f), -6.0f));
53        map.setCoordinate(1, new Point3f( (width/2f), -(height/2f), -6.0f));
54        map.setCoordinate(2, new Point3f( (width/2f),  (height/2f), -6.0f));
55        map.setCoordinate(3, new Point3f(-(width/2f),  (height/2f), -6.0f));
56
57        map.setTextureCoordinate(GeometryArray.TEXTURE_COORDINATE_2, 0, new TexCoord2f(0.0f,0.0f));
58        map.setTextureCoordinate(GeometryArray.TEXTURE_COORDINATE_2, 1, new TexCoord2f(1.0f,0.0f));
59        map.setTextureCoordinate(GeometryArray.TEXTURE_COORDINATE_2, 2, new TexCoord2f(1.0f,1.0f));
60        map.setTextureCoordinate(GeometryArray.TEXTURE_COORDINATE_2, 3, new TexCoord2f(0.0f,1.0f));


...and here is the StackTrace:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 64
   at javax.media.j3d.GeometryArrayRetained.setTextureCoordinates(GeometryArrayRetained.java:4798)
   at javax.media.j3d.GeometryArray.setTextureCoordinate(GeometryArray.java:2034)
   at Map.createSceneGraph(Map.java:57)
   at Map.init(Map.java:107)
   at Map.<init>(Map.java:41)
   at Main.BuildGUI(Main.java:115)
   at Main.<init>(Main.java:56)
   at Main.main(Main.java:34)
Pages: 1 ... 5 6 [7]
 
EgonOlsen (490 views)
2018-06-10 19:43:48

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

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

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

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

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

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

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

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

Solater (560 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
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!