Welcome to Dream.In.Code
Become an Expert!

Join 149,510 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,370 people online right now. Registration is fast and FREE... Join Now!




Get me started on OpenGL

 
Reply to this topicStart new topic

Get me started on OpenGL, I am tired of my brain turning to mush

WolfCoder
30 Jul, 2007 - 09:30 PM
Post #1

ギュウ~
Group Icon

Joined: 5 May, 2005
Posts: 3,711



Thanked: 8 times
Dream Kudos: 1450
My Contributions
I started to write a game engine from scratch based upon DirectX which started to hurt my head after a while. It took far too many different steps to even draw a single triangle. And of course for some reason DirectDraw doesn't support transparencies and for some reason you have to create 3D triangles that face the camera all the time in order to even think about making a 2D game engine with rotation/transparencies and all that stuff (The engine will use a 3D system anyway for the map).

So, how do I obtain the latest OpenGL SDK (I looked under the link on the official website and ironically I found nothing of the sort blink.gif ) so I can make the programs as well as a good beginner's guide on 2D and 3D graphics with OpenGL. I want to see if I can work something out with it.

This post has been edited by skyhawk133: 6 Aug, 2007 - 06:30 AM
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Get Me Started On OpenGL
31 Jul, 2007 - 01:53 AM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,294



Thanked: 18 times
Dream Kudos: 725
My Contributions
I've heard that NeHe's tutorials are good for getting into OpenGL...if you're the kind of person who needs to buy a book, check out what everybody calls "The OpenGL Red Book"(it's actually called OpenGL Programming Guide).



User is offlineProfile CardPM
+Quote Post

1lacca
RE: Get Me Started On OpenGL
31 Jul, 2007 - 02:49 AM
Post #3

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
I think OpenGL is even more low level than DirectX, but it's your choice. As an SDK, I don't think, that you have to download anything, as the standard header files (opengl.h, etc...) should be present in your compiler, and the dll-s are provided by your card's driver - or by windows if you have a 2D card, but forget about 3D acceleration then...
For extensions, check opengl.org they have a ncie collection of vendor specific platform dependent header files in their sdk home section.
User is offlineProfile CardPM
+Quote Post

Trogdor
RE: Get Me Started On OpenGL
1 Aug, 2007 - 01:30 AM
Post #4

D.I.C Addict
Group Icon

Joined: 6 Oct, 2006
Posts: 549



Thanked: 4 times
Dream Kudos: 125
My Contributions
Give SDL a go.
Its a library/wrapper, platform independent and makes your life with opengl a litle more easy.
User is offlineProfile CardPM
+Quote Post

elix
RE: Get Me Started On OpenGL
6 Aug, 2007 - 04:03 AM
Post #5

New D.I.C Head
*

Joined: 1 Oct, 2006
Posts: 6


My Contributions
nehe is the most popular site about opengl.

one thing, remember to use glut library while programming opengl. it is a library for managing window processes, you can use opengl without it but it will cause you headache i guess. Required files for opengl (gl, glu) are in windows but you have to download glut libraries externally. They are dll's and header files... I will not make a detailed explanation, I do not use opengl with c/c++. i don't remember all the setup works.

There is a video tutorial site
http://www.videotutorialsrock.com/

it seems well organized.

I will also open a new thread to mention this site ( although in an other forum someone abuse reported me on spammer tongue.gif )
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Get Me Started On OpenGL
6 Aug, 2007 - 05:25 AM
Post #6

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
glut is an interesting option, since it really has some useful utility function, but since it is not part of the standard, you have to install the library yourself or package with your app, and it might not worth the hassle, since most of the glut functions are not so hard to implement if you need them so badly.
User is offlineProfile CardPM
+Quote Post

tygerberg
RE: Get Me Started On OpenGL
6 Aug, 2007 - 06:25 AM
Post #7

D.I.C Head
Group Icon

Joined: 14 Dec, 2006
Posts: 114


Dream Kudos: 25
My Contributions
Give this site a try
User is offlineProfile CardPM
+Quote Post

WolfCoder
RE: Get Me Started On OpenGL
6 Aug, 2007 - 09:38 AM
Post #8

ギュウ~
Group Icon

Joined: 5 May, 2005
Posts: 3,711



Thanked: 8 times
Dream Kudos: 1450
My Contributions
Thanks guys, I decided to write using an Acknex SDK I found in my hard drive, and I can write my own engine based upon the Acknex library. So far it's going well but I am sure I will need OpenGL later, so I'll work through what you guys gave me. I may write a few arcade sized games using OpenGL, but for a full scale game I figured it would be easier to just use a nice high level library (such as Acknex) to build a game engine upon. It IS easier than DirectX, that is for sure! After looking at how you would draw a triangle, the OpenGL version was readable and logical while the DirectX one was confusing and riddled with those awful jibberish uppercase macros. I've written window and window process handlers all the time so I don't think I need the GLUT.

I wanted to go in an entirely different direction with my game project, so I really wanted to code it in C++ to make a nice engine. The parallel C-Script built in language is to simple for my purposes, I only use it to define some resources and to link actions to the current game map in this new version of the game engine, the rest is done in C++.

The next step for me is to learn HLSL or whatever it is called for shader effects. The Acknex engine is compatible with it so I'll be able to write all kinds of shader effects.

The advantage of using OpenGL, from what I have heard, is that it will run on multiple operating systems.

I'll go poke around the library folders for the OpenGL SDK files. I would really like to know where to get the latest SDK files however.

I won't use SDL simply because the Acknex6 library I have is pretty much a better substitute. Acknex6 wasn't free but it is quite powerful. (Acknex comes with 3DGameStudio but I am referring specifically to Acknex6 since I am writing my own .exe file engine instead of using the bundling publish command in WED).

I'm more of a get the physical book person instead of a poke around tutorials online person, but all these resources will prove useful to me.

If there's anything else that can be of use I would like it.

This post has been edited by WolfCoder: 6 Aug, 2007 - 11:07 AM
User is offlineProfile CardPM
+Quote Post

cloudmavrick
RE: Get Me Started On OpenGL
10 Aug, 2007 - 08:11 PM
Post #9

New D.I.C Head
*

Joined: 10 Aug, 2007
Posts: 2


My Contributions
dude
User is offlineProfile CardPM
+Quote Post

Videege
RE: Get Me Started On OpenGL
12 Aug, 2007 - 10:16 AM
Post #10

rêvant.toujours
Group Icon

Joined: 25 Mar, 2003
Posts: 1,406


Dream Kudos: 150
My Contributions
QUOTE(WolfCoder @ 6 Aug, 2007 - 11:38 AM) *

It IS easier than DirectX, that is for sure! After looking at how you would draw a triangle, the OpenGL version was readable and logical while the DirectX one was confusing and riddled with those awful jibberish uppercase macros.


man you should have listened to me a couple of years ago biggrin.gif

User is offlineProfile CardPM
+Quote Post

Nova Dragoon
RE: Get Me Started On OpenGL
12 Aug, 2007 - 10:41 AM
Post #11

The Innocent Shall Suffer, Big Time
Group Icon

Joined: 16 Aug, 2001
Posts: 6,145



Thanked: 8 times
Dream Kudos: 515
Expert In: Python, Linux

My Contributions
Shall we find the old thread???
User is offlineProfile CardPM
+Quote Post

MorphiusFaydal
RE: Get Me Started On OpenGL
12 Aug, 2007 - 05:48 PM
Post #12

D.I.C Lover
Group Icon

Joined: 12 May, 2005
Posts: 1,213



Thanked: 15 times
Expert In: Hardware, Networking

My Contributions
I can't find where to download the OpenGL SDK on the OpenGL website... Can some kind soul link me? smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:36PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month