OpenGL Tutorial #1: Basic Shapes

  Рет қаралды 246,177

btrekkie

btrekkie

Күн бұрын

Пікірлер: 154
@donnie6680
@donnie6680 15 жыл бұрын
I do not care what anyone says for starters but I thank you for posting these videos may God bless you tremendously! Keep up the game design videos from this one I seen your doing great.
@TheCODTactics
@TheCODTactics 13 жыл бұрын
I am watching this in December 2011. I love you for this.
@benton202
@benton202 16 жыл бұрын
i'v been looking every where a openGL tutorial. finally....
@programmer1905
@programmer1905 14 жыл бұрын
wow i went to your website and i loved the tuts, thanks, simply amazing, i was feadin g the book opengl super bible and i dint get it, but with your tuts i really understand what i'm doing, thank you so much.
@Ryukachoo
@Ryukachoo 14 жыл бұрын
oh HELL yes i've been looking for something like this thank you for individually going through each aspect of the code and explaining the parameters and such, i really was not getting that from my professor.
@hexkwondo
@hexkwondo 16 жыл бұрын
Thanx mittrekkie! I have written my first 3-d program! Now I can finally take steps to flesh out my ASCII RPG!
@zapwow
@zapwow 17 жыл бұрын
I've used Dev-C++ for about a year... I found it easy to set up and get going with, but when I needed more powerful formatting, source management and debugging options Visual C++ was exactly what I needed.
@sonic2kk
@sonic2kk 11 жыл бұрын
I'm watching in 2013 and it's still awesome.
@drederprops
@drederprops 16 жыл бұрын
I am realy pleased by your work and teachings. THANK YOU.
@Fangornmmc
@Fangornmmc 12 жыл бұрын
@Ilikemustard Lol, so many thumbs up for a comment complaining about this video? Be glad he teaches us this for free in the first place! Also, some people like me just want to dive into opengl without prior C++ background knowledge, a remark like that is in that case very useful. Oh well... @mittrekkie thank you very much for the video, really helped!
@Zetaeta1618
@Zetaeta1618 12 жыл бұрын
It's an API written in C, for use in C and C++. There are many bindings for other languages so you can use OpenGL in them, including ones like JOGL and LWJGL (used for Minecraft) for Java. In general it is the same code, but obviously there are differences based on language syntax etc.
@Z3r0XoL
@Z3r0XoL 12 жыл бұрын
the image quality of this video is amazing
@rashidswanson
@rashidswanson 12 жыл бұрын
Great video dude you are helping me in my Devry Online class
@gribgrub
@gribgrub 15 жыл бұрын
@GamingJediPwns - actually you're wrong about that. The handleKeypress() function calls exit. The 'return 0' never gets called.
@ozone1979
@ozone1979 16 жыл бұрын
dude, u ROCK... I just bookmarked ur website.
@btrekkie
@btrekkie 17 жыл бұрын
The code in this program ought to work with any compiler, although you will have to get OpenGL and GLUT set up with Dev-C++ in order to compile and run the program.
@Fangornmmc
@Fangornmmc 12 жыл бұрын
Well, luckily I am familiar with assembly langauge, I have programmed in it several times and understand the most important concepts (stacks, registers, memory adressing etc). I'll just try openGL and if I am getting stuck ill probably do some research into C. When it comes to programming I just observe examples and learn from those. my goal is usually to get the big lines, the global idea of a language. I might someday really get into one langauge but now I am just trying to do as many as psbl.
@Fangornmmc
@Fangornmmc 12 жыл бұрын
@Ilikemustard No. In retrospect my comment may sound somewhat harsh towards you, I did not intend that. I was merely suprised that the remark was made. To answer your question better. No I don't have a C background but I do know quite a few other languages. I am mostly self taught but I know basic processor architecture, python ,php, java, visual basic, mysql. I know many languages a little...but I do have a general feel for programming languages.
@btrekkie
@btrekkie 17 жыл бұрын
Actually, according to the GLUT documentation, you're supposed to use unsigned chars and ints. OpenGL functions take GLint, GLubyte, and so on, but GLUT functions use the standard data types.
@delgadogorn
@delgadogorn 12 жыл бұрын
I'm new to programming, so does it matter whether you use OpenGL in java or c++? Or is it same code for both? Is it a programming language itself maybe?
@kludgedup
@kludgedup 13 жыл бұрын
I see you have a "From Linux" folder on your hard drive. Dual-boot setup?
@ramonet27101993
@ramonet27101993 11 жыл бұрын
IS THERE any function in opengl in order to do a hit test? so, fopr exemple, when a car thouches a rock, the car can't cross the rock.
@Hector-bj3ls
@Hector-bj3ls 11 жыл бұрын
No. OpenGL just does rendering. You either have to find a library to do that or write it yourself.
@Ratstail91
@Ratstail91 12 жыл бұрын
I've been using SDL for input, etc. with OpenGL, should I switch completely to glut?
@Spirrwell
@Spirrwell 13 жыл бұрын
@Ilikemustard True, if you want that, go to antiRTFM's C++ tutorials, but it is good to make sure people understand what it is they're doing if they don't know what they're even getting into, especially since OpenGL isn't a good beginner's start. I've been learning SDL OpenGL for the past few days and I want to make the full transition to OpenGL, I don't need the beginner's guide, but it's nice to have.
@Ilikemustard
@Ilikemustard 12 жыл бұрын
@Fangornmmc Do you have C background?
@zanshevar
@zanshevar 11 жыл бұрын
im watching this in 2013! u rock!
@GamingJediPwns
@GamingJediPwns 15 жыл бұрын
Thanks for making a opengl tutorial but the line return 0; will be reached when esc is pressed because that is how the program will know to return control back to windows. You could also use the macro EXIT_SUCCESS;
@xazzerr
@xazzerr 12 жыл бұрын
How do you get rid of the black console on the background on opengl?
@scarykidbryan
@scarykidbryan 14 жыл бұрын
Will this work with code blocks environment??
@EddieVanHalen1977
@EddieVanHalen1977 11 жыл бұрын
This is like eating a really nice meal.
@MultiGamingGod
@MultiGamingGod 13 жыл бұрын
@GenoSkill What should i use for OpenGL i am just starting out, but i am getting a lot of errors when compiling HELP!
@Vartrex5
@Vartrex5 11 жыл бұрын
Is visual C++ similar to PHP or Java Script?
@MultiGamingGod
@MultiGamingGod 13 жыл бұрын
@GenoSkill LINUX IT IS THEN but how would i make games with it? is opengl intergrated into linux?
@skysinbi
@skysinbi 12 жыл бұрын
can you tell me whats the difference betweeon using this and DevC?
@m0nsk1
@m0nsk1 17 жыл бұрын
I checked your site August 28, 2007. 7:30 PM (GMT +8) and it seems that the website is down. :)
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
I have question i know this open gl thing but why waste time type lines of codes just to make a simple square if you can made these easily on programs llike maya and 3ds max please enlighten me. is there a way to import the objects in programs like maya to use in c++???
@btrekkie
@btrekkie 17 жыл бұрын
Have you seen the video "OpenGL Tutorial #0a: Getting OpenGL Set Up on Windows"?
@dannieldefoe
@dannieldefoe 7 жыл бұрын
im watching this in 2017
@dogdogdogdogdog2546
@dogdogdogdogdog2546 7 жыл бұрын
Me :)
@btrekkie
@btrekkie 17 жыл бұрын
Yeah, that makes sense. I just figured that "int main" was more conventional.
@cr1901
@cr1901 12 жыл бұрын
Adding on to @Fangornmmc 's point, I definitely have a stronger grasp of C than I do C++, and I don't recall ever needing to deal with the namespace crap in C... in fact my C++ knowledge stops after basic data structures- I know little of virtual functions, polymorphism, or more advanced C++ topics (learned overloading/inheritance, forgot the syntax former). So for some of us, yes, the refresher is useful. (Note: I'm biased, and NOT a big OOP fan.)
@btrekkie
@btrekkie 16 жыл бұрын
What compiler error do you get? You may want to see my other video on how to get OpenGL set up on Windows.
@XxDahamonnahxX
@XxDahamonnahxX 13 жыл бұрын
opengl or directx? some people say that directx is better, is that true? and they say opengl doesn't have tesselation, i wanna which is better . plz reply im still a noob at c++ :P
@007speedcuber
@007speedcuber 12 жыл бұрын
ah, windows xp! you bring back memories!
@jeffery12108
@jeffery12108 14 жыл бұрын
@stingerhead666 Have you downloaded openGL on your computer yet?
@nexus1g
@nexus1g 12 жыл бұрын
Powerful special interest groups (e.g. Microsoft) who have the funds to push their digital crack beyond what an open source project is capable of doing. Ensuring that it is the primary API used means that's what students will focus on. This in turn ensures that studios will continue using DirectX over OpenGL. The wheel is turning, and it will never stop.
@danielnagy4940
@danielnagy4940 12 жыл бұрын
It's not worked :( Error: GL/glut.h: No such file or directory. What's the problem?
@delgadogorn
@delgadogorn 12 жыл бұрын
What does OpenGL do anyway?
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
@bananavice thanks for enlightening me your a big help.
@Vartrex5
@Vartrex5 11 жыл бұрын
Yes but its not like Java or Pascal right?
@MyStuff774
@MyStuff774 12 жыл бұрын
Nice tutorial
@Ilikemustard
@Ilikemustard 13 жыл бұрын
@DonOfTheInternet Meh, I manage to figure out anything I need to do with Win32 using Google and MSDN.
@radnyx_games
@radnyx_games 12 жыл бұрын
I am watching this in January 2013. I love you for commenting.
@alberteinsteinthejew
@alberteinsteinthejew 11 жыл бұрын
I'm watching this in July 2016. Just wanna let you know guys that KZbin is now a subsidiary of Toyota.
@man122190
@man122190 15 жыл бұрын
can someone give me the link to download the openGL file..thanks =)
@benton202
@benton202 16 жыл бұрын
this doesnt work for me. cant i jus run this without installing microsoft platform sdk??
@ghostxop2101
@ghostxop2101 16 жыл бұрын
visual studio 08 is free. its only a express but it has everything you need no extras, i still prefer 05 tho
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
@bananavice I see, but they didnt require me to learn open gl to make a game??
@benton202
@benton202 16 жыл бұрын
it gives me compiler error every time i try to compile a OpenGL thng. it sucks
@darkness9484
@darkness9484 15 жыл бұрын
no, u are not the only person. i'm also here ^^
@btrekkie
@btrekkie 16 жыл бұрын
I don't think so. Could you be more specific about what error you're getting?
@paulthecoolest
@paulthecoolest 11 жыл бұрын
MY college project : a 3d game made on OpenGl..I am simulatenously excited and super scared..Anyone has any experience any tips,any book choices,anything of help note : I have to do this within 2 months..I might get just a few weeks to actually do the programming
@ViProFL
@ViProFL 13 жыл бұрын
why i cant start debugging?
@kramer3d
@kramer3d 17 жыл бұрын
awesome, i love you man :)
@adikid89
@adikid89 14 жыл бұрын
"kinda lame.. but that's ok.. things will pick up"
@GsgamesNet
@GsgamesNet 11 жыл бұрын
You didn't put the files in right folders or you didn't use a VS compiler.
@ItsMrHowTo
@ItsMrHowTo 12 жыл бұрын
I'm a beginner in coding and I was wondering how I could learn coding cheap and fast... preferring C++ or javascript... without buying big books
@btrekkie
@btrekkie 16 жыл бұрын
Cool, good luck with that. :)
@Ilikemustard
@Ilikemustard 12 жыл бұрын
@Fangornmmc The comment was made because this is an OpenGL tutorial, not an introduction to C++. Honestly you should not attempt to "dive into" OpenGL without a strong grasp of C, otherwise you will be inflicting unnecessary headache upon yourself. All the languages you listed are very high level, C is very low level (and I specify C because OpenGL is written in C and doesn't use any C++).
@TheBodysome
@TheBodysome 11 жыл бұрын
umm should i start a 2013 or something?
@delgadogorn
@delgadogorn 13 жыл бұрын
whats " opengl"?
@renatocanhaify
@renatocanhaify 11 жыл бұрын
What you forget to mention is that Toyota now in 2016 is a Brazilian company
@benton202
@benton202 16 жыл бұрын
here is the error it gave me LINK : fatal error LNK1104: cannot open file 'winmm.lib'
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
@bananavice but i made simple games thru blender without knowing opengl
@benton202
@benton202 16 жыл бұрын
never mind this is jus to compicating, do anyone knw of a compiler that already comes with the opengl settings? doesnt have to be free.
@darkdevil905
@darkdevil905 13 жыл бұрын
@headchopperz Lol that true mate !
@anng95
@anng95 9 жыл бұрын
thanks :) you explain well
@btrekkie
@btrekkie 17 жыл бұрын
Hmm, must've been something with GoDaddy hosting. I know the site has been down at least once before because GoDaddy didn't feel like working. It should be working now.
@EddieKMusic
@EddieKMusic 12 жыл бұрын
OpenGL does 2D/3D graphics
@LemonadeCinema
@LemonadeCinema 11 жыл бұрын
No Java Script and PHP is usually website development.
@w9ahmed
@w9ahmed 14 жыл бұрын
Thank you :)
@marcusandguitar
@marcusandguitar 14 жыл бұрын
@MultiPivotmasterdx : Yep dude... You can download it from the Official site...
@rlf1989
@rlf1989 12 жыл бұрын
no stick with sdl, its much better or better yet look for SFML ;)
@iceshadow625
@iceshadow625 13 жыл бұрын
@MrVirtualCoder it's called learning. no one is just gonna know the basics, they have to learn the basics before they can move forward, simplifying it makes it easier to learn. And once you learn the basics, then you can learn the more difficult shit. You build up. Teachers in elementary don't just bust out with algebra and calculus, they start with basic adding and subtracting.. But I guess any 8 year old that doesn't understand the concept of algebra should just give up on basic math, right?
@srarlightballs6984
@srarlightballs6984 10 жыл бұрын
put void main not int main.you use void when a function returns nothing like main.
@wesofx8148
@wesofx8148 10 жыл бұрын
Sometimes you want main to return values for debugging purposes.
@SeanK-
@SeanK- 10 жыл бұрын
void main goes against the C++ specification. VC++ allows it, many other compilers do not. Generally, an application should return success or failure to the OS.
@ghostxop2101
@ghostxop2101 16 жыл бұрын
cool!
@ccricers
@ccricers 17 жыл бұрын
Dev C++ is not widely updated anymore. If you want a great free IDE that's quick to set up, get CodeBlocks. Dev C++ looks like a toy compared to CodeBlocks.
@EddieKMusic
@EddieKMusic 13 жыл бұрын
@headchopperz :DD
@sacredgeometry
@sacredgeometry 12 жыл бұрын
@CommentMaster12341 I am sure that the whole of the CG software industry would disagree with your comment that openGL was obsolete in 2007, out of date? Yeah sure but it got a severe overhaul in 2008 something you cant really fault the non-time traveling poster of this video. Hindsight is a beautiful thing but it doesn't excuse idiocy.
@jinjatube
@jinjatube 13 жыл бұрын
@DonOfTheInternet Yeah, cos u don't want to actually use the media possibilities of a computer to learn stuff about computer programming, cos that would be like using the tool your going to exploit to learn how to exploit it... which would be, like, er, crazzzy, yeah?
@roboneko77
@roboneko77 15 жыл бұрын
NOW YOU KNOW HOW IT FEELS!!!!
@TheCODTactics
@TheCODTactics 12 жыл бұрын
I wrote that comment 1 year ago. Wow, I have changed a lot since then :)
@floralpoboop
@floralpoboop 12 жыл бұрын
what are you talking about opengl is better than directx, and it has been for years. Its actually ahead by leaps and bounds with more supported functionality, more platforms supported, and stability.
@6dark6alex6
@6dark6alex6 11 жыл бұрын
I'm watching this in 3654 BC on the Mystical Waters of Ailon
@krenciak
@krenciak 4 жыл бұрын
I'm watching this in 2024!
@StelarCF
@StelarCF 15 жыл бұрын
O_O you don't like C++? whats the prob with it? And i remember Delphi is some kind of pascal(or not?) Anyway i like C++ :P
@uc-np7tu
@uc-np7tu 12 жыл бұрын
0:08 When that popupmessage apeared i wanted to close it O_o
@masterofpop
@masterofpop 15 жыл бұрын
yeah right it loaded so fast, this can't be windows that you are using.
@cypher1554R
@cypher1554R 17 жыл бұрын
Dev-C++ rules, just go ahead and use it, rather than Bill's crapy toys.. to get the packages, go to Tools -> Check for packages/updates.. and find what you need there.. as for openGL, you can find all the pieces you need: gl, glu and glut libraries..
@TeronGer
@TeronGer 17 жыл бұрын
I go with eclipse, much more usefull ^^
@Sam-yk5cg
@Sam-yk5cg 8 жыл бұрын
What gave this video so many views in 2013???
OpenGL Tutorial #2: Transformations and Timers, Part 1 of 2
6:58
OpenGL Tutorial #4: Lighting, Part 1 of 2
8:22
btrekkie
Рет қаралды 31 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 145 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
OpenGL Tutorial #2: Transformations and Timers, Part 2 of 2
6:35
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 119 М.
CUDA Simply Explained - GPU vs CPU Parallel Computing for Beginners
19:11
Python Simplified
Рет қаралды 273 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
19. OpenGL ES
55:26
Stanford
Рет қаралды 93 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
OpenGL game demo
3:22
detheli
Рет қаралды 50 М.
OpenGL Course - Create 3D and 2D Graphics With C++
1:46:24
freeCodeCamp.org
Рет қаралды 1,1 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 145 МЛН