Skip to main content
GameDev.net gamedev.net
🔒 Locked

beginner questions

Started by coffecat Jun 25, 2012 at 7:40 PM 18 replies 3.1k views
Original Post
coffecat
coffecat
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]I want to make some 2D and 3D games and i have no idea about waht to use, or where to start. I think the thread tittle is a bit missleading, i thought openGL is the best way to start, maybe it is?[/background][/font]

[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]If possible, lead me to a good online link or program that is good for beginners to start drawing graphics, like tree's, house's, rock's, some terrain maps where the character will walk on, even draw the character's. I just dont know where to start, i can search everything if necessery, but just a little guide from where to start as a begginer to this topic. Thanks![/background][/font]

[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]One more thing, if i start with SFML, wont i get way too much into it, and when leaving it, when becoming a proffesional graphics designer and changing the library, all the functions will be different? And will have harder time to learn all the new functions from the newer library and etc.?[/background][/font]

[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]PS: I am not sure if openGL is the best way to start drawing stuff but i was told so, and i post here.[/background][/font]

Aks9
Aks9
No, OpenGL is definitely not the best way to start "drawing" trees, houses, etc.
If you are a designer, try 3DS Max, Maya or similar environment.
OpenGL in an API to a graphics hardware. SFML is build atop OpenGL.
Did you try UDK? You can make 3D games quite easily with it.
coffecat
coffecat
I dont want premade drag and drop tree's and with few drags to have a game.
Thing is, im not very familliar from where to start, so i will explain what i want to do.

I have some expirience in C++ but i wanted to start drawing something also, maybe to make that thingy move or simply figures like pacman ghost's etc.
Later one maybe some 2D game to see how a game should be developed and what is required, to have some idea what to expect in the feature.
Please guide me
slicer4ever
slicer4ever
if you have experience with c++, then i recommend using sdl first to learn more about image loading/game mechanics, and later on, once you feel more comfortable(or perhaps never, their are plenty of options), learn the openGL api.

openGL is simply the bottom layer to communicating with the graphics hardware. You by no means have to learn it with today's options, if you just want to load images and move them around on 2D surfaces then I defiantly recommend going with something easier to learn for now.
coffecat
coffecat
Ok thanks, i will try openGL, one more question please
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]So i was told about a good article [/background][/font][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)] [/background][/font]http://nehe.gamedev.net/[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)], but the first few lines make me ask the next question.[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]
[/background][/font][color=#FFFFFF][font=Ubuntu]

[background=rgb(242, 246, 248)]After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you've done this click on OK. You're now ready to write an OpenGL Windows program.[/background][/font][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)][/QUOTE][/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]How can i link those while in Code::Blocks IDE?[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]I relly dont get into Visual C++ and feel very uncomfortable, is there a way to stay with Code::Blocks for those tutorials?[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]Thanks, im allmost there, this article seems very good.[/background][/font]

larspensjo
larspensjo

Ok thanks, i will try openGL, one more question please
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]So i was told about a good article [/background][/font][color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)] [/background][/font]http://nehe.gamedev.net/[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)], but the first few lines make me ask the next question.[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]
[/background][/font]After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries. In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you've done this click on OK. You're now ready to write an OpenGL Windows program.[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]

[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]How can i link those while in Code::Blocks IDE?[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]I relly dont get into Visual C++ and feel very uncomfortable, is there a way to stay with Code::Blocks for those tutorials?[/background][/font]
[color=#333333][font=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]

[background=rgb(241, 241, 241)]Thanks, im allmost there, this article seems very good.[/background][/font]
[/quote]
If you are using the legacy tutorials from Nehe, then you made a false start. Better look at Learning Modern 3D Graphics Programming.

I use Code::Blocks with the MinGW development environment, developing for OpenGL. But then you will use the MinGW libraries instead. These are almost the same as the Linux libraries. The advantage with the MinGW environment is that it is mostly compatible with the Linux environment. A program developed there will be easiy to port.

coffecat
coffecat
I read few tutorials of this page you linked, but as i am begginer, there isnt said how exactly to create a openGL project, what to include and how to start. NeHe kinda do that.
Does MinGW have those OpenGL32.lib GLu32.lib and GLaux.lib, If not how to include them, excuse me but i never used to set up something different than creating a simple C++ project?
Thanks for sharing time!
larspensjo
larspensjo
In the MinGW environment, you link with opengl32 and glaux. glu32 is not needed, it is a legacy library. I am using glew as name mangler, so I installed it and link with glew32.

Then, you may also be needing to link with the libraries: Ws2_32 ole32 comctl32 user32 gdi32 winspool comdlg32 advapi32 shell32 oleaut32 uuid odbc32 odbccp32. Don't just add them all, see what link errors you get, search the Internet to find which one to use.

I can also recommend glfw, which is a library that helps you setup a graphical context, as well as managing input devices in a portable way.

Remember that OpenGL is no easy thing. It is a big step, and it takes a while even for an experienced programmer to learn. Be prepared to search a lot on the Internet, because you will almost always find someone else that had a similar problem.
coffecat
coffecat
Okay thanks i will try, one more question.
Wich one is a Win32 Aplication in Code::Blocks?
coffecat
coffecat
Sorry for the double post, if someone know, please help.

Sorry again and thanks!
larspensjo
larspensjo
To be honest, I don't know what a "win32" application is. If you use MinGW and create an application, you will get something that can run on Windows. CodeBlocks uses the MinGW tool chain. You can configure CodeBlocks to use an external Makefile, or handle it by itself.
coffecat
coffecat
Can you be more specific please, im not very familiar how to do it step by step
larspensjo
larspensjo
To download and install MinGW: http://www.mingw.org/
To install Code::Blocks: http://wiki.codeblocks.org/index.php?title=Installing_the_latest_official_version_of_Code::Blocks_on_Windows

If you are uncertain, I would begin with a minimal OpenGL application, MinGW, and a makefile. When that works, you can start using CodeBlocks as an IDE and add more libraries as needed.
coffecat
coffecat
I have both, im trying to run a Win32 GUI project and i include this
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>

The Build log said:
D:\Programs\CodeBlocks\openGLtuts riangles\main.cpp:4:59: error: gl\glaux.h: No such file or directory

But if i make gl\glaux.h as a comment, the program is runing fine and i dont link any libraries, seems they are build inside the GUI template or something liek that.

Please help, im allmost there
coffecat
coffecat
But in NeHe tutorias i must include them?
larspensjo
larspensjo

But in NeHe tutorias i must include them?


Don't use the NeHe turorials. They are legacy. You can't use that knowledge to create a game, and you can't get a job from it.
SimonForsman
SimonForsman

[quote name='coffecat' timestamp='1341096759' post='4954393']
But in NeHe tutorias i must include them?


Don't use the NeHe turorials. They are legacy. You can't use that knowledge to create a game, and you can't get a job from it.
[/quote]

Actually you can use that knowledge to create a game, its just a fairly bad idea since the API version used in those tutorials is around 15 years old now and thus quite different from the more recent versions.
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!
coffecat
coffecat
Okay thanks all, i downloaded Blender to try out modeling, it got my attention
larspensjo
larspensjo

Okay thanks all, i downloaded Blender to try out modeling, it got my attention happy.png

If you haven't used tools similar to Blender, you will quickly find the user interface impenetrable. There are good tutorials in Youtube. I like the ones created by cgboorman (start from the beginning).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.