OpenGL Tutorial #1: Basic Shapes

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

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.
@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.
@drederprops
@drederprops 16 жыл бұрын
I am realy pleased by your work and teachings. THANK YOU.
@Z3r0XoL
@Z3r0XoL 12 жыл бұрын
the image quality of this video is amazing
@sonic2kk
@sonic2kk 11 жыл бұрын
I'm watching in 2013 and it's still awesome.
@gribgrub
@gribgrub 15 жыл бұрын
@GamingJediPwns - actually you're wrong about that. The handleKeypress() function calls exit. The 'return 0' never gets called.
@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!
@rashidswanson
@rashidswanson 12 жыл бұрын
Great video dude you are helping me in my Devry Online class
@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.
@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.
@ozone1979
@ozone1979 16 жыл бұрын
dude, u ROCK... I just bookmarked ur website.
@Ratstail91
@Ratstail91 12 жыл бұрын
I've been using SDL for input, etc. with OpenGL, should I switch completely to glut?
@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?
@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;
@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.
@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.
@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++???
@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!
@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??
@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.
@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.
@skysinbi
@skysinbi 12 жыл бұрын
can you tell me whats the difference betweeon using this and DevC?
@EddieVanHalen1977
@EddieVanHalen1977 11 жыл бұрын
This is like eating a really nice meal.
@kludgedup
@kludgedup 13 жыл бұрын
I see you have a "From Linux" folder on your hard drive. Dual-boot setup?
@dannieldefoe
@dannieldefoe 7 жыл бұрын
im watching this in 2017
@dogdogdogdogdog2546
@dogdogdogdogdog2546 7 жыл бұрын
Me :)
@Vartrex5
@Vartrex5 11 жыл бұрын
Is visual C++ similar to PHP or Java Script?
@Ilikemustard
@Ilikemustard 12 жыл бұрын
@Fangornmmc Do you have C background?
@MultiGamingGod
@MultiGamingGod 13 жыл бұрын
@GenoSkill LINUX IT IS THEN but how would i make games with it? is opengl intergrated into linux?
@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.
@m0nsk1
@m0nsk1 17 жыл бұрын
I checked your site August 28, 2007. 7:30 PM (GMT +8) and it seems that the website is down. :)
@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
@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?
@btrekkie
@btrekkie 17 жыл бұрын
Have you seen the video "OpenGL Tutorial #0a: Getting OpenGL Set Up on Windows"?
@Vartrex5
@Vartrex5 11 жыл бұрын
Yes but its not like Java or Pascal right?
@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.
@btrekkie
@btrekkie 16 жыл бұрын
I don't think so. Could you be more specific about what error you're getting?
@benton202
@benton202 16 жыл бұрын
this doesnt work for me. cant i jus run this without installing microsoft platform sdk??
@Ilikemustard
@Ilikemustard 13 жыл бұрын
@DonOfTheInternet Meh, I manage to figure out anything I need to do with Win32 using Google and MSDN.
@benton202
@benton202 16 жыл бұрын
it gives me compiler error every time i try to compile a OpenGL thng. it sucks
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
@bananavice I see, but they didnt require me to learn open gl to make a game??
@ViProFL
@ViProFL 13 жыл бұрын
why i cant start debugging?
@GsgamesNet
@GsgamesNet 11 жыл бұрын
You didn't put the files in right folders or you didn't use a VS compiler.
@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
@zanshevar
@zanshevar 11 жыл бұрын
im watching this in 2013! u rock!
@man122190
@man122190 15 жыл бұрын
can someone give me the link to download the openGL file..thanks =)
@radnyx_games
@radnyx_games 12 жыл бұрын
I am watching this in January 2013. I love you for commenting.
@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++).
@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
@TheBodysome
@TheBodysome 11 жыл бұрын
umm should i start a 2013 or something?
@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
@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.)
@alberteinsteinthejew
@alberteinsteinthejew 11 жыл бұрын
I'm watching this in July 2016. Just wanna let you know guys that KZbin is now a subsidiary of Toyota.
@007speedcuber
@007speedcuber 12 жыл бұрын
ah, windows xp! you bring back memories!
@delgadogorn
@delgadogorn 13 жыл бұрын
whats " opengl"?
@btrekkie
@btrekkie 17 жыл бұрын
Yeah, that makes sense. I just figured that "int main" was more conventional.
@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
@4Got10Shadow
@4Got10Shadow 13 жыл бұрын
@bananavice thanks for enlightening me your a big help.
@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.
@renatocanhaify
@renatocanhaify 11 жыл бұрын
What you forget to mention is that Toyota now in 2016 is a Brazilian company
@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.
@MyStuff774
@MyStuff774 12 жыл бұрын
Nice tutorial
@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.
@rlf1989
@rlf1989 12 жыл бұрын
no stick with sdl, its much better or better yet look for SFML ;)
@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.
@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.
@krenciak
@krenciak 4 жыл бұрын
I'm watching this in 2024!
@darkness9484
@darkness9484 15 жыл бұрын
no, u are not the only person. i'm also here ^^
@EddieKMusic
@EddieKMusic 12 жыл бұрын
OpenGL does 2D/3D graphics
@LemonadeCinema
@LemonadeCinema 11 жыл бұрын
No Java Script and PHP is usually website development.
@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?
@marcusandguitar
@marcusandguitar 14 жыл бұрын
@MultiPivotmasterdx : Yep dude... You can download it from the Official site...
@anng95
@anng95 9 жыл бұрын
thanks :) you explain well
@kramer3d
@kramer3d 17 жыл бұрын
awesome, i love you man :)
@btrekkie
@btrekkie 16 жыл бұрын
Cool, good luck with that. :)
@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.
@adikid89
@adikid89 14 жыл бұрын
"kinda lame.. but that's ok.. things will pick up"
@darkdevil905
@darkdevil905 13 жыл бұрын
@headchopperz Lol that true mate !
@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
@w9ahmed
@w9ahmed 14 жыл бұрын
Thank you :)
@masterofpop
@masterofpop 15 жыл бұрын
yeah right it loaded so fast, this can't be windows that you are using.
@6dark6alex6
@6dark6alex6 11 жыл бұрын
I'm watching this in 3654 BC on the Mystical Waters of Ailon
@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 :)
@nepaliInUS
@nepaliInUS Жыл бұрын
getting youtube recommendations out of the blue.
@ghostxop2101
@ghostxop2101 16 жыл бұрын
cool!
@Sam-yk5cg
@Sam-yk5cg 8 жыл бұрын
What gave this video so many views in 2013???
@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..
@floralpoboop
@floralpoboop 12 жыл бұрын
Um how? I hit the point directly on the nail. Maybe you don't even know what your arguement is. You claimed that opengl is out of date. I pointed out it is not nor has been for many years. Now you are attempting to say I am a troll because you are mad that anyone would ever say opengl is better than directx, even when they use evidence.
@EddieKMusic
@EddieKMusic 13 жыл бұрын
@headchopperz :DD
OpenGL Tutorial #2: Transformations and Timers, Part 1 of 2
6:58
C++ OpenGL #1 - Some basic GLUT
19:41
Oskar Veerhoek
Рет қаралды 251 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1,2 МЛН
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 573 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 770 М.
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 2,3 МЛН
OpenGL Tutorial 6 - Textures
9:31
Victor Gordan
Рет қаралды 76 М.
Why has Black & White Been Abandoned? - Noclip Greatest Hits
28:44
Noclip - Video Game Documentaries
Рет қаралды 731 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН