Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Will no one use fixed functions in the future?  (Read 1364 times)
0 Members and 2 Guests are viewing this topic.
Offline rhdxmr

JGO n00b
*

Posts: 12



« on: 2010-02-09 02:45:24 »

Hi.

I heard that whole fixed function pipe line is removed since OpenGL3.1
I have a few questions about that news.

Huh Does this mean that most people don't use the fixed functions but instead they prefer the shading?
Or both of OpenGL 3.x and OpenGL 2.x will be steadily maintained for being used in the different domain?


Huh If the graphics driver supports ≥ Opengl 3.1, programs written in fixed functions can't be executed?

Thank you.

Junyeong
Offline xinaesthetic

Full Member
**

Posts: 207
Medals: 1



« Reply #1 on: 2010-02-09 08:31:23 »

Fixed function is deprecated, not removed.  Maybe on some specific hardware it won't be supported, but for desktop applications fixed functions can still be executed for the time being.
Offline lhkbob

JGO Neuromancer
****

Posts: 1174
Medals: 35



« Reply #2 on: 2010-02-09 17:10:59 »

In OpenGL 3.0 the fixed functionality has been deprecated.  In OpenGL 3.1 it has been removed completely from the API, although it exists as an optional extension that drivers can still implement.  Currently cards that support 3.0+ also support < 2.1, you just have to request which profile you want to use when creating your windows.  This is handled for you in JOGL 2.0 using the GLProfile class.

I recommend that you use shaders as long as you're not intending on targeting anyone who couldn't support it.  ATM many people exist with terrible graphics cards that don't support shaders, but soon shaders will be everywhere.  If you want to make anything look truly beautiful, you'll need to use shaders.  In addition, the concepts learned when implementing shaders tend to lead to better design for a fixed-function renderer, from my experiences.

Games published by our own members! Go get 'em!
Offline xinaesthetic

Full Member
**

Posts: 207
Medals: 1



« Reply #3 on: 2010-02-09 17:46:36 »

Interesting.  Thanks for setting me straight on that.  It seems deprecated in OpenGL has rather different implications to 'deprecated' in Java...
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8089
Medals: 96


Eh? Who? What? ... Me?


« Reply #4 on: 2010-02-09 19:33:18 »

when he says "soon" he means in about 4 years time.

Cas Smiley

Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5872
Medals: 255


Hand over your head.


« Reply #5 on: 2010-02-09 19:45:03 »

when he says "soon" he means in about 4 years time.

Cas Smiley

Isn't that about how long it takes to make a game worth selling?

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline rhdxmr

JGO n00b
*

Posts: 12



« Reply #6 on: 2010-02-09 22:12:58 »

So, do you think that the shader will supersede the fixed functions soon(in 4 years).

If so it might be better to learn and use the shader (not fixed function)?
Offline gouessej

JGO Kernel
*****

Posts: 3560
Medals: 30


TUER


« Reply #7 on: 2010-02-10 04:12:33 »

So, do you think that the shader will supersede the fixed functions soon(in 4 years).

If so it might be better to learn and use the shader (not fixed function)?
Learn the both. Personally, I still make a particular effort to support even graphics cards with only OpenGL 1.3, it depends on your target.

Julien Gouesse
Offline dishmoth

JGO Ninja
***

Posts: 517
Medals: 19



« Reply #8 on: 2010-02-10 14:50:42 »

In OpenGL 3.0 the fixed functionality has been deprecated.  In OpenGL 3.1 it has been removed completely from the API, although it exists as an optional extension that drivers can still implement.  Currently cards that support 3.0+ also support < 2.1, you just have to request which profile you want to use when creating your windows.

I have trouble getting my head around this.

If I write code today targeting (say) OpenGL 2.1 and requesting the appropriate profile in JOGL2 (or LWJGL, assuming that works similarly), then in four years (nominally) that code won't run on a lot of up-to-date graphics cards.

On the other hand, if I write code today targeting OpenGL 3.1, then it won't run on a lot of existing graphics cards.

Am I getting that right?

Simon

Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8089
Medals: 96


Eh? Who? What? ... Me?


« Reply #9 on: 2010-02-10 15:42:46 »

Well, that's just software entropy for you... all those games written back in 1997 probably don't work any more do they? Things just change.

Cas Smiley

Games published by our own members! Go get 'em!
Offline DzzD

JGO Kernel
*****

Posts: 2134
Medals: 16



« Reply #10 on: 2010-02-10 16:20:03 »

Well, that's just software entropy for you... all those games written back in 1997 probably don't work any more do they? Things just change.

Cas Smiley
nop with opengl, but fortunatly unreal have a perfect software rendering so that we are able to play our daily match at work Wink

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.109 seconds with 18 queries.