Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL Tutorials 1_1 crash  (Read 1596 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2013-08-16 00:54:13 »

I downloaded the example code that ra4king wrote to accompany McKesson's "Learning Modern 3D Graphics Programming" (as well as various other tutorials).

I just wanted to try running Example1_1 (have only scanned "Hello Triangle" chapter so far--am finding it a little scary), but found I got the following error:

1  
2  
3  
java.lang.IllegalStateException: Function is not supported
   at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
   at org.lwjgl.opengl.GL20.glCreateShader(GL20.java:221)


The problem seems to be that the following line is returning a 0 to function_pointer:
1  
2  
3  
      ContextCapabilities caps = GLContext.getCapabilities();
      long function_pointer = caps.glCreateShader;
      BufferChecks.checkFunctionAddress(function_pointer);


I'm wondering if this is signalling a problem with my hardware. Here's some more info I dug up:

when directly checking the DirectX diagnostic tool, I get this:
DirectX version is 9.C, which supposedly corresponds to Shader Model 3.0

But when the original graphics card crashed about a year ago, I replaced it with a cheapo to just get by. Stats on the configuration can be seen in the following:
 


This is all new to me. Is the problem simply the graphics card? Or is there something awry with my configuration and code perhaps? I've been able to get the "basic" LWJGL tutorial programs running, but this is the first program that attempts to use the shaders.

"It's after the end of the world! Don't you know that yet?"
Offline Z-Man
« Reply #1 - Posted 2013-08-16 03:43:39 »

Well your drivers are from 2006 and the 7000 series is legacy at this point so I'm not sure that your card actually supports OpenGL 2.0. According to this forum hardware supported OpenGL 2.0 started in the 9000 series.
Offline philfrei
« Reply #2 - Posted 2013-08-16 04:23:55 »

Thank you!

I will look into replacing the current card with one that at the least supports OpenGL 2.1.

"It's after the end of the world! Don't you know that yet?"
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 352
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2013-08-16 06:05:49 »

You need a card running at least OpenGL 3.3 to run the tutorials, by the way. With a bit of Googling, the earliest card by Nvidia that supports GL 3.3 is the GeForce 9400 GT. However, I am selling my Geforce GTX 580 for $200 if you want it Cheesy

To run Example1_1 in 2.1, you will need a bit of modification to the code, especially the shaders.

Offline philfrei
« Reply #4 - Posted 2013-08-16 08:33:22 »

Figuring out these models and capabilities and even the order in which they were made is no mean feat. But fortunately I found this wikipedia site:
http://en.wikipedia.org/wiki/Comparison_of_Nvidia_graphics_processing_units

So perhaps GeForce 8000's are also OpenGL 3.3.
And your GTX 580 would be OpenGL 4.4.

I also found this chart from about a year ago!
http://www.java-gaming.org/topics/new-project-so-early-in-development-i-have-no-name-for-it/28032/msg/255212/view.html#msg255212

It shows a breakdown of the graphics cards owned by MineCraft users, from sometime before December. Looks like a lot of people are still using cards with only OpenGL 2.1 capabilities.

There's a local shop with an okay price for a GT430 W1G DVI/HDMI. The chart says this runs OpenGL 4.4. Is it still possible to write code that will run on a 4.4 OpenGL AND will run on all those "casual market" machines out there that can only handle 2.1? (Backwards compatible?) The game I'm trying to finish is a 2D game, and I was just hoping to pick up some processing help from OpenGL, not do anything too fancy.

Seems like a nice price on the GTX 580, ra4king. This wikipedia chart says they were $499 when they were first released. I'm on a bit of a budget, though.  Sad

"It's after the end of the world! Don't you know that yet?"
Offline ra4king

JGO Kernel


Medals: 352
Projects: 3
Exp: 5 years


I'm the King!


« Reply #5 - Posted 2013-08-16 08:40:19 »

Yes, it's possible. You can target your code for only GL 2.1 and the GL 4.4 cards will support it as OpenGL is fully backwards compatible.

And how tight of a budget are you on? I'll find you a good card.

Offline philfrei
« Reply #6 - Posted 2013-08-16 17:36:53 »

Thanks ra4king. You have been really helpful, as always!

I think I have all the info I need to work with my local dealer. I've put in cards before--know it's not that big a deal. But I like working with him as his shop will do all the installation and provides a warranty, and he has always been helpful and patient with my questions, as well as provide fair prices.

Can probably take care of this all today. (Impatient! Excited!)

"It's after the end of the world! Don't you know that yet?"
Offline ra4king

JGO Kernel


Medals: 352
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2013-08-16 19:31:33 »

Alrighty good luck and have fun! Smiley

Offline Z-Man
« Reply #8 - Posted 2013-08-16 23:39:04 »

Hope it works out, and have fun with your new card  Grin I always love getting new parts for my rig, so exciting.
Offline philfrei
« Reply #9 - Posted 2013-08-17 05:53:38 »

Thanks for good wishes!  Smiley

Unfortunately, we had troubles at the shop, with the inexpensive GeForce units with OpenGL 4.2  not working, and the highest OpenGL that DID work with my motherboard was 3.2.  Sad

After some thought and discussion, I think the thing to do is put off the upgrade and just aim to get a whole new computer. This one is from 2004, and it's probably just not worth trying to extend its life much further.

Meanwhile, I wanted to keep Hexara targeted for "casual users" (no more than OpenGL 2.1), and I can do that with the current board. (Patience. And a chance to digest the basics in the "Red Book" before getting to the advanced stuff.)

The shop I like to work with is currently selling an ASUS at a good price (they list as: P8H61-M LX2) with an integrated graphics card. I like ASUS in general, but am having trouble figuring out what level of OpenGL this model supports. (Probably ASUS should have sales staff online that can answer.)

No rush to figure it out--probably won't get to buying a new computer for at least few months anyway. Maybe aim for Christmas!  Smiley

"It's after the end of the world! Don't you know that yet?"
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 352
Projects: 3
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2013-08-17 20:53:59 »

If you can get OpenGL 3.2 working, then that's excellent. Most of the tutorials only need up to that. I have ported the first 4 tutorials to GL 3.2, but if you need the rest, I'll be happy to do so!

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

theagentd (20 views)
2014-10-25 15:46:29

Longarmx (53 views)
2014-10-17 03:59:02

Norakomi (47 views)
2014-10-16 15:22:06

Norakomi (35 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (69 views)
2014-10-14 00:35:47

TehJavaDev (61 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (46 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!