Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
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  
  How to start OpenGL 3 Development  (Read 2913 times)
0 Members and 1 Guest are viewing this topic.
Offline matheus23

JGO Wizard


Medals: 96
Projects: 3


You think about my Avatar right now!


« Posted 2012-05-19 13:16:46 »

Last weekend my new GTX550 Ti came to me. Smiley

Previously I had a GeForce 7600 GS, which only supports up to OpenGL version 2.1.
And since I wasn't able to use the ogl 3 or ogl 4 api, I am not familar with it at all.
I really want to learn how to write an private ogl 3 Engine, but I don't know how right now. Does anyone have any good tutorials for that?

Also, I maybe want to get into Cg, but LWJGL does not "support" the Cg toolkit, and I currently do not know any Java-Wrapper for Cg. Are there any wrappers, and is Cg as useful, or shoudl I forget it?

One more thing: I had problems with creating a MD5 model loader and a Skeletal animation erm... engine? Are there good tutorials for that thing? I found http://3dgep.com/?p=1053, But it uses the GLM (OpenGL Mathematics) library, to comute bones on the CPU. I'm not aware of any math libs out there... Sad
Does anyone have experience with animating models in OpenGL in Java?

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #1 - Posted 2012-05-19 13:32:19 »

Also, I maybe want to get into Cg, but LWJGL does not "support" the Cg toolkit, and I currently do not know any Java-Wrapper for Cg. Are there any wrappers, and is Cg as useful, or shoudl I forget it?
Cg has very good tools for converting itself into either GLSL or HLSL, just use those to convert to GLSL and use with LWJGL.
Offline gouessej

« In padded room »



TUER


« Reply #2 - Posted 2012-05-19 17:19:09 »

Hi

I currently do not know any Java-Wrapper for Cg. Are there any wrappers, and is Cg as useful, or shoudl I forget it?
There is a Java wrapper for Cg in another library but this feature is not really maintained anymore. Anyway, I agree with kappa, rather use plain GLSL instead of Cg.

As for models, there are lots of 3D engines in Java supporting the animation of models including skeletal models. Maybe have a look at JMonkeyEngine 3 and Ardor3D, it could be a source of inspiration for your "private" (non open source?) engine.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline matheus23

JGO Wizard


Medals: 96
Projects: 3


You think about my Avatar right now!


« Reply #3 - Posted 2012-05-19 17:44:56 »

Hi

I currently do not know any Java-Wrapper for Cg. Are there any wrappers, and is Cg as useful, or shoudl I forget it?
There is a Java wrapper for Cg in another library but this feature is not really maintained anymore. Anyway, I agree with kappa, rather use plain GLSL instead of Cg.

As for models, there are lots of 3D engines in Java supporting the animation of models including skeletal models. Maybe have a look at JMonkeyEngine 3 and Ardor3D, it could be a source of inspiration for your "private" (non open source?) engine.

Okey... so Cg is not an option. Now, is there any library giving me methods for Matrix / Vector transformations? I looked for some, but most of them are not being maintained anymore, or they don't give me Matrix transformations. I really need them, because I can't start without them, due to the depricated Matrix stack...

Also, with private I mean, it's for learning, and I don't think it will be useful later. Just something like a code resource Wink

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #4 - Posted 2012-05-19 18:08:07 »

Okey... so Cg is not an option.
converting Cg to GLSL means you can still use it. So its still an option.

Now, is there any library giving me methods for Matrix / Vector transformations? I looked for some, but most of them are not being maintained anymore, or they don't give me Matrix transformations. I really need them, because I can't start without them, due to the depricated Matrix stack...
Have you looking at the ones supplied in the lwjgl_util.jar ?
Offline matheus23

JGO Wizard


Medals: 96
Projects: 3


You think about my Avatar right now!


« Reply #5 - Posted 2012-05-19 18:30:36 »

Okey... so Cg is not an option.
converting Cg to GLSL means you can still use it. So its still an option.
But Cg is more then just GLSL, isn't it? It's also some C++ code needed... Maybe I'm wrong, I don't know...

Now, is there any library giving me methods for Matrix / Vector transformations? I looked for some, but most of them are not being maintained anymore, or they don't give me Matrix transformations. I really need them, because I can't start without them, due to the depricated Matrix stack...
Have you looking at the ones supplied in the lwjgl_util.jar ?

Oh god.. blame me... These give me everything I need! I'm blind...

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline davedes
« Reply #6 - Posted 2012-05-19 19:19:49 »

LibGDX also has a very useful math package with Matrix3, Vector2, etc. and a variety of utilities.

Here's a few good links for OpenGL 3+ tutorials:
http://duriansoftware.com/joe/
http://ogldev.atspace.co.uk/
http://www.mbsoftworks.sk/index.php?page=tutorials&series=1
http://prideout.net/blog/
http://renderingwonders.wordpress.com/

Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #7 - Posted 2012-05-19 21:08:41 »

Don't leave out the best one: http://www.arcsynthesis.org/gltut/

Offline sproingie
« Reply #8 - Posted 2012-05-20 08:11:25 »

But Cg is more then just GLSL, isn't it? It's also some C++ code needed... Maybe I'm wrong, I don't know...

No, Cg is basically the same language as HLSL which itself is very similar to GLSL.  When you compile it to GLSL, that's what you get, ready to plug in to whatever, like LWJGL.  Why not give it a try, it'll answer more questions than assuming.
Offline Roquen
« Reply #9 - Posted 2012-05-20 10:32:31 »

AFIK OpenGL doesn't support the higher level functionality of the Cg runtime.
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.

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

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

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

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

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

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

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

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

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

CJLetsGame (182 views)
2014-04-01 02:16:10
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

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!