How to Make a Simple 3D Modeling Program | OpenGL Tutorial

  Рет қаралды 137,658

3DSage

3DSage

Күн бұрын

Пікірлер: 212
@Cyranek
@Cyranek 4 жыл бұрын
I've never seen a more niche youtube channel that feels like it was made just for me.
@Atomhaz
@Atomhaz 4 жыл бұрын
seriously I was just thinking this!
@makkerfelix
@makkerfelix 4 жыл бұрын
what are you doing here
@erik9817
@erik9817 4 жыл бұрын
And me, except I was experimenting with Direct3D.
@joho0707
@joho0707 4 жыл бұрын
how did you get here
@farhanahaque4057
@farhanahaque4057 4 жыл бұрын
You are an unexpected guest
@gavinlew8273
@gavinlew8273 Жыл бұрын
Awesome tutorial, KZbin needs more tutorials like this. Guides on creating 3D models are plentiful .. not so much on creating 3D Modelling Programs. Great job!
@3DSage
@3DSage 5 жыл бұрын
I will be making a better more advanced tutorial soon so keep watching :)
@pajeetsingh
@pajeetsingh 4 жыл бұрын
Subscribed. I am making myself but finding it hard to think about? Is it something in this line of thinking?: Take user's cursor locations;cursor path etc, write to GL_COPY_WRITE_BUFFER buffer object in GPU RAM, draw on screen the primitives that fills the paths, write back to CPU RAM using GL_COPY_READ_BUFFER?
@zooidiotgaming5784
@zooidiotgaming5784 4 жыл бұрын
Can you make the second part because i want to make this but with camera movement and stuff thats in like blender like moving vertices or edges and stuff like that or maybe let the user see the vertex normal and stuff PLEASE make the second part
@zooidiotgaming5784
@zooidiotgaming5784 4 жыл бұрын
@Nem Gam Boi i cant idk how to code and his tuts are the only thing thats teaching me how to code and also i tried to download devc++, which is the IDE that 3d sage uses but failed. Theres a BIG probabylity that its not his fault so it just my laptop's fault
@zooidiotgaming5784
@zooidiotgaming5784 3 жыл бұрын
@Nem Gam Boi listen my friend i know im bad at it , ive been trying to learn how to code for about 4 years since i was 11 y/o im currently 15 y/o (in this year 2021 that is) and im just overall dumb and yes i know im lazy that is also why i cant do it, i have however found a solution on how to code , you see im currently am learning web development ive done some HTML and CSS, so im learning javascript which IS a programming language even if it have some limitation So dude Just dont judge a book by it cover
@phyllisginger1147
@phyllisginger1147 8 жыл бұрын
Excellent tutorial. I believe very strongly that tutorials should be kept as basic as possible. You did this very well. You get a lot done in reasonable amount of time, without going too fast. Also you don't get bogged down in programming issues. Question - shouldn't GLUT_DEPTH be included in the glutInitDisplayMode call? Suggestion - move the calls to glLineWidth and glColor3f out of the loop in the draw_Grid routine. Those calls do not have to be repeated for each line drawn.
@3DSage
@3DSage 8 жыл бұрын
+Phyllis Ginger true, I agree with your suggestions. Thank you for your comment. I'm glad to hear that people like it and can learn from it.
@gameginger5529
@gameginger5529 2 жыл бұрын
U r consistent for eleven years dude .hats off
@3DSage
@3DSage 2 жыл бұрын
Hey thank you! I hope to get better!
@suzianecundiff
@suzianecundiff 6 жыл бұрын
this was really amazing ^^
@3DSage
@3DSage 6 жыл бұрын
Hey thank you for saying that! I'm glad you liked it.
@ThaaReenas
@ThaaReenas 10 жыл бұрын
Great job man. Looking foward for your next one! :)
@3DSage
@3DSage 10 жыл бұрын
Thank you! :)
@sahilkukreja1194
@sahilkukreja1194 9 жыл бұрын
ur awesome man ur tutorial really helped m,e a lot in understanding the concepts of 3d modelling in open gl highly recommended video for all the beginners
@assamiyou
@assamiyou 8 жыл бұрын
I like your to-do list check :)
@3DSage
@3DSage 8 жыл бұрын
+Younes El Assami Thank you! That is how my brain thinks before I start programming.
@studiovfx6311
@studiovfx6311 8 жыл бұрын
for some reason i cant see the grid when the glTranslatef(-13,0,-45) but if i do say (-13,0,4) i can see like 4 peices that are huge
@user-mx2wq4zv4m
@user-mx2wq4zv4m 7 жыл бұрын
Guys, don't forget to add "init();" before "glutMainLoop();" in "main" function. I experimented with parameters for 30 minutes, then continued watching the video and discovered it.
@iceman2131
@iceman2131 6 жыл бұрын
Огромное спасибо!
@Rogo183
@Rogo183 7 жыл бұрын
your video is very helpful, especially the "What to do list". Help us understand what function we need.
@3DSage
@3DSage 7 жыл бұрын
Thank you. I personally make a list before every program I make. It always helps me so glad it helped you too.
@gilbertnepomuceno7070
@gilbertnepomuceno7070 8 жыл бұрын
Great content on your channel, it earned my subscription. You should continue the 3d engine series.
@3DSage
@3DSage 8 жыл бұрын
Thank you for subscribing! I will continue my 3d engine and more. :)
@shm3hTube
@shm3hTube 7 жыл бұрын
Thanks Can you please share the code
@doctard2990
@doctard2990 4 жыл бұрын
so you can steal it? he makes it right in front of your eyes
@shm3hTube
@shm3hTube 4 жыл бұрын
@@doctard2990 I am professional now :) No need to steal *_^
@tzl3468
@tzl3468 4 жыл бұрын
@@shm3hTube congratulations I think you are junior developer now.
@adocarpel7770
@adocarpel7770 4 жыл бұрын
Lo mejorcito que he visto. thanks!
@shivjoshi2025
@shivjoshi2025 4 жыл бұрын
superb work
@3DSage
@3DSage 4 жыл бұрын
I'm glad you like it!
@ricardomilos2674
@ricardomilos2674 6 жыл бұрын
Wow,you should make more video like this.i like it.
@3DSage
@3DSage 6 жыл бұрын
Yes I want to and will, thank you!
@huseyindinc1931
@huseyindinc1931 6 жыл бұрын
Can you make this with modern OpenGL with shaders? And rotating view with mousedrag.
@3DSage
@3DSage 6 жыл бұрын
@@huseyindinc1931 Yes that can be done!
@loszhor
@loszhor 4 жыл бұрын
Thank you for the information
@ewan-
@ewan- 10 жыл бұрын
Awesome :) Really looking forward to some others. Good job :D
@3DSage
@3DSage 10 жыл бұрын
Thank you! I look forward to making many more.
9 жыл бұрын
Congradulations!
@sudhirrao3683
@sudhirrao3683 4 жыл бұрын
very good one. In the same line can you pls explain the concept of camera, light effect, projection , texture like things. Thank you very much
@tails_the_god
@tails_the_god Жыл бұрын
So a matrix is what makes a group of vertices,faces, and edge's into a model object?
@AntonioAstorino
@AntonioAstorino 6 жыл бұрын
Hi! Beautiful tutorial. "Unfortunately," modern OpenGL requires the use of vertex array/buffer objects (as far as I understand). It would be amazing if you could make a similar tutorial in modern OpenGL.
@3DSage
@3DSage 6 жыл бұрын
Yes that would be a good idea.
@abdelhaksaouli8802
@abdelhaksaouli8802 2 жыл бұрын
just use GL_DRAW_DYNAMIC and write function that insert and remove point to your buffer, and rearrange your index buffer
@colepeterson5392
@colepeterson5392 7 жыл бұрын
Is this method outdated? Should I learn modern openGL with GLSL? This is by far the best damn tut iv'e seen. very straight forward.
@benw-l7k
@benw-l7k 4 жыл бұрын
Yeah you should, he used the fixed function pipleline here which is deprecated
@shankar4510
@shankar4510 2 жыл бұрын
hi can you tell me the version of opengl used in this ?
@kubragundogan538
@kubragundogan538 4 жыл бұрын
Hello! Thank you for sharing that! I have a question, Can we create a ceiling for that? And can we add some objects such as a car or desk?
@narcoticparadise2023
@narcoticparadise2023 5 жыл бұрын
hey man this is a greate tuto, i add a controll by mouse, to rotate and zoom. but i don't know how to save and load the shapes that i draw , can you help please ? thank you
@3DSage
@3DSage 5 жыл бұрын
I'm glad you like my tutorial! I would recommend watching more tutorials to learn how to expand on this with your cool ideas :)
@narcoticparadise2023
@narcoticparadise2023 5 жыл бұрын
@@3DSage can you recommend a specific tutorial ?
@rgux2301
@rgux2301 4 жыл бұрын
Could you by any chance still have the repository for the added function? Thanks!
@christopher6752
@christopher6752 4 жыл бұрын
outstanding videos thanks a lot you're awesome
@3DSage
@3DSage 4 жыл бұрын
Thank you for saying that! :)
@wellobush9022
@wellobush9022 4 жыл бұрын
trying to make a 3d animation software for my tablet so I'm looking at your channel for help
@starc0w
@starc0w 2 жыл бұрын
very cool! 👍Thank you very much!
@hungariannerd8445
@hungariannerd8445 Жыл бұрын
great video
@uasdoctoraltech
@uasdoctoraltech 3 жыл бұрын
Good Work.
@andrebif6979
@andrebif6979 7 жыл бұрын
Thank you so much for this tutorial, it was very useful! By the way, where did you learn OpenGL and what do you recommend for OpenGL learners?
@BracketProto
@BracketProto 4 жыл бұрын
really good! thx
@howtomy7025
@howtomy7025 6 жыл бұрын
nice tutorial video, however, i use codeblock to run it, but there is no grid were display, i dont know is it same as dev c++ or not?
@jamesconsole6531
@jamesconsole6531 2 жыл бұрын
This is a great video, but is there a more recent video on how to make a 3D modeling program ? if is in c# it will be even better for me. But any language will do.
@linuxuser1234
@linuxuser1234 4 жыл бұрын
Can you make a blender ui
@Duo08butCooler
@Duo08butCooler Жыл бұрын
Will your tutorial use opengl? If so, how can I put it on a gba?
@SpencerYonce
@SpencerYonce 3 жыл бұрын
I love this
@mycai1086
@mycai1086 3 жыл бұрын
nice to meet you
@Ariya1234gamer
@Ariya1234gamer 5 жыл бұрын
Pls upload part 2
@3DSage
@3DSage 5 жыл бұрын
Yes i plan to continue this series :)
@scottsturdevant9648
@scottsturdevant9648 4 жыл бұрын
amazing
@jamesmckubre5517
@jamesmckubre5517 9 жыл бұрын
My tanslate sends it of the screen In your game engine you have gui buttons what is the script for that. And i subbed. And more tutorials please one with gui would be cool.
@3DSage
@3DSage 9 жыл бұрын
***** I'm not sure why your translate would move it off screen. Maybe try reversing it with a negative value. And yes I was thinking of adding a tutorial on buttons and sliders.
@jamesmckubre5517
@jamesmckubre5517 9 жыл бұрын
k thanks will try soon be back with more info after tht
@boom5935
@boom5935 2 жыл бұрын
Where did u called the init() function?
@jaykayluo7145
@jaykayluo7145 8 жыл бұрын
nice!
@esben181
@esben181 7 жыл бұрын
You are awesome!
@3DSage
@3DSage 7 жыл бұрын
Thank you! I'm glad you liked the video.
@codingwithkaran1575
@codingwithkaran1575 4 жыл бұрын
Very easy language in tutorial 😍, any noob can learn from this 🤗, me too
@flaviohenriquedasilvagdf7597
@flaviohenriquedasilvagdf7597 5 жыл бұрын
hi you can share 3D Model Editor and others and VB6 source-codes? you hava a blog ? thanks
@zooidiotgaming5784
@zooidiotgaming5784 2 жыл бұрын
Can you make a modern version of this please ?
@aishwaryac7041
@aishwaryac7041 2 жыл бұрын
Please help me out actually my project got compiled I mean builded with no errors at run time it's displaying blank screen
@BracketProto
@BracketProto 4 жыл бұрын
can you make a tutorial on how to delete faces of a shape
@DodgeeSoftware
@DodgeeSoftware 9 жыл бұрын
Wow! Subbed :)
@RivenbladeS
@RivenbladeS 8 жыл бұрын
subbed from the first 10 seconds
@3DSage
@3DSage 8 жыл бұрын
+kostas petsis Im so glad to hear that. Your subscriptions mean a lot to me. I will try to make more opengl tutorials when i can.
@RivenbladeS
@RivenbladeS 8 жыл бұрын
thanks.i would love opengl and c++ for game engine and also for 3d modeling app:) thanks!!
@biffco2
@biffco2 10 жыл бұрын
Pretty nice glad I found this please keep it up, ok?
@3DSage
@3DSage 10 жыл бұрын
Thank you very much, im glad you like it. I will, and im also working on programming for my gameboy advance and i think ill post for that too. haha. It's fun.
@nandlalchoudhary2579
@nandlalchoudhary2579 4 жыл бұрын
hello sir really a great video but telling frankly i dont know anything about opengl but i want to learn the complete opengl from basic to advance and i thing you are the best person who can guide me. so sir can you please tell me what are the requirement of learning opengl (currently i am learning c is it useful in learning opengl)?? please sir help me out please .
@bluef7955
@bluef7955 2 жыл бұрын
is there a way to control it by mouse?
@noway2831
@noway2831 4 жыл бұрын
How do you install glut?
@3DSage
@3DSage 4 жыл бұрын
I show that in this video! kzbin.info/www/bejne/iIXOZ4psbMmsiJY
@Drmarcus9
@Drmarcus9 4 жыл бұрын
Bro thanks, I just made blender 2.0
@216V0
@216V0 10 жыл бұрын
could you do a tutorial on how to install devc++ and open gl? i never figured that out
@3DSage
@3DSage 10 жыл бұрын
Ok, I found a few good links online that walked me through the steps. Dev C++ is awesome so I hope you get it working.
@lookencykouadioseri8410
@lookencykouadioseri8410 5 жыл бұрын
Super merci !!!
@3DSage
@3DSage 5 жыл бұрын
:)
@lookencykouadioseri8410
@lookencykouadioseri8410 5 жыл бұрын
Je souhaite que tu en fasses plusieurs afin de nous apprendre à mieux faire les choses.
@3DSage
@3DSage 5 жыл бұрын
@@lookencykouadioseri8410 Je posterai plus de vidéos OpenGL!
@lookencykouadioseri8410
@lookencykouadioseri8410 5 жыл бұрын
@@3DSage Merci d'avance et sache que ce serait bien pour moi parce que je m'essaie à OpenGL et j'aimerais vraiment apprendre donc n’hésite pas, il y'a des personnes comme moi à qui ça servira.
@teamplus9362
@teamplus9362 5 жыл бұрын
how to install opengl on code blocks or dev c++?
@SlavicUnionGaming
@SlavicUnionGaming 4 жыл бұрын
That is some advanced shit, how do you even put 2 Squared in there...
@Diablo-xb9wc
@Diablo-xb9wc 8 жыл бұрын
Hey. I looked at your lessons, and I have everything turns out, but I have only one wall painting of blue color, while others simply do not risueyutsya what to do?
@3DSage
@3DSage 8 жыл бұрын
make sure that each wall has its own rgb set. and when you loop through to draw each wall, that you are looping through each color too.
@Diablo-xb9wc
@Diablo-xb9wc 8 жыл бұрын
Thanks for the answer, and will do. Will the new tutorials on creating Gamay Einzhine for Doom type?
@3DSage
@3DSage 8 жыл бұрын
I do like doom style games. I will continue to make beginner to intermediate game style tutorials.
@Diablo-xb9wc
@Diablo-xb9wc 8 жыл бұрын
Al right. I am wait
@jakesmeef0323
@jakesmeef0323 4 жыл бұрын
So I’ve done this in visual studio and there’s no error in the code but when I try to run it the window pops up but it never shows anything and if I go into task manager it says that it’s not responding, I don’t know what to do I need help
@zooidiotgaming5784
@zooidiotgaming5784 2 жыл бұрын
Can tell me how to use glut in visual studio also what version are you using?
@catSolutionss
@catSolutionss 2 жыл бұрын
I'm wondering you can download the source code from this project???
@lamgoctam
@lamgoctam 5 жыл бұрын
How can we delete the quad? can you give advice please?
@mr.awesome5109
@mr.awesome5109 3 жыл бұрын
You could make a undo command or something idk
@LuRybz
@LuRybz 7 жыл бұрын
could you share the code on pastebin? I am here about an hour trying to acomplish the final result but the compilation is pure black screen :(
@3DSage
@3DSage 7 жыл бұрын
Did you get any errors when compiling? Try watching to tutorial again and take it step by step to make sure everything is typed in correctly and you understand what each part is doing.
@nicholasnivarel2729
@nicholasnivarel2729 4 жыл бұрын
hi, can i have the source code please?
@chantelgaskins5630
@chantelgaskins5630 4 жыл бұрын
i got a error in line 2 and line 7
@karlmin8471
@karlmin8471 7 жыл бұрын
nice.
@mesutbilir3540
@mesutbilir3540 9 жыл бұрын
Can you share source code ? I'm currently doing a project, need to your code.
@zooidiotgaming5784
@zooidiotgaming5784 2 жыл бұрын
MOAR!!!!!!
@lorenzo42p
@lorenzo42p 3 жыл бұрын
I only get a black screen, not sure where I went wrong
@3DSage
@3DSage 3 жыл бұрын
Are you able to draw anything on the screen? Any error messages?
@lorenzo42p
@lorenzo42p 3 жыл бұрын
@@3DSage I tried following your video to write this code, with some changes needed due to newer libraries. it compiles and runs without errors, but I only see a black screen. I suspect maybe it's rendering out of view, or maybe there's a new call that's needed someplace? I'd look deeper into it myself but I'm not sure what is the cause, what direction to go with troubleshooting. do you see anything obvious? pastebin.com/T0j3zDqs (hope I can link here)
@bayonettbayonett3700
@bayonettbayonett3700 3 жыл бұрын
@@lorenzo42p Perhaps it's: glMatrixMode(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST); vs glMatrixMode(GL_MODELVIEW); glEnable(GL_DEPTH_TEST);
@reynaalmonzo6718
@reynaalmonzo6718 6 жыл бұрын
Is anyone else having trouble drawing the quads? Edit: its drawing the quads, but resetting the square in the corner of the screen.
@mr.awesome5109
@mr.awesome5109 3 жыл бұрын
yes I am did you end up fixing it? if you even do have the file anymore can you tell me how to fix it?
@FrostGamingHype
@FrostGamingHype 3 жыл бұрын
how to save?and load
@aswin2pranav
@aswin2pranav 8 жыл бұрын
Still using glBegin() and glEnd()?
@3DSage
@3DSage 8 жыл бұрын
I dont know what is wrong that using that. What alternatives are there?
@twoleggedcat_cs2
@twoleggedcat_cs2 8 жыл бұрын
Its a beginner tut also man he is trying to teach in away where people can understand and if you are an expert than why are you on a beginner tut
@gergomuresan4945
@gergomuresan4945 6 жыл бұрын
what this in void addQuad()? I can't read.
@3DSage
@3DSage 6 жыл бұрын
Sorry about that. Try increasing the youtube resolution and full screen it.
@gergomuresan4945
@gergomuresan4945 6 жыл бұрын
@@3DSage ok. thanks
@rachitard
@rachitard 9 жыл бұрын
If we want to delete a quad , how to do it ? What code we need to use?
@3DSage
@3DSage 9 жыл бұрын
Rachita Rd Since each quad is stored in an array, you cycle through all the array elements and stop on the one you want deleted, and transfer the data of all the following array elements back one. And subtract one from the total amount. There should be some good help online about removing an element from an array. I'm glad you are adding to the program. Good luck!
@simina96
@simina96 7 жыл бұрын
Did you manage to delete a Quad? If so, could you share the code with us?
@FrostGamingHype
@FrostGamingHype 3 жыл бұрын
thats so cool my compiler dosent support openGL im sad
@zooidiotgaming5784
@zooidiotgaming5784 4 жыл бұрын
Please get back to this project and add camera i dont use glut so i dont know how to use it
@vitalmurashev1852
@vitalmurashev1852 5 жыл бұрын
Can you please share the code?
@showallmemes6268
@showallmemes6268 7 жыл бұрын
how do you install glut
@3DSage
@3DSage 7 жыл бұрын
I made an easy to follow video to install c and opengl. :) kzbin.info/www/bejne/iIXOZ4psbMmsiJY
@syntaxed2
@syntaxed2 7 жыл бұрын
Dont use GLUT - Its rather old, un-maintained. GLFW is a better choice, theres also SDL. Also, the openGL commands used in this video are deprecated/obsolete, they are like 2003 standard - Its called the fixed pipeline and only exists for backwards compatibility.
@alexanderstohr4198
@alexanderstohr4198 4 жыл бұрын
nice, but i fear with my keyboard i have the 'y' in position where you have a 'z'. easy to fix. ;-)
@noppapadi6177
@noppapadi6177 6 жыл бұрын
Hmm... I can't create the shapes...
@3DSage
@3DSage 6 жыл бұрын
Are you able to see the grid? Try watching the video again and see if you missed something. When it comes to code, even the smallest error can ruin everything haha.
@noppapadi6177
@noppapadi6177 6 жыл бұрын
Ok
@mohyminulshisier9160
@mohyminulshisier9160 7 жыл бұрын
The source code link please
@nerlanoliveira2264
@nerlanoliveira2264 2 жыл бұрын
Eu queria o código
@mahmoudahmed-ii6jc
@mahmoudahmed-ii6jc 9 жыл бұрын
i want code this program please
@funs1m260
@funs1m260 10 ай бұрын
Чел харош
@lhy95
@lhy95 5 жыл бұрын
please share the code!!!
@twoleggedcat_cs2
@twoleggedcat_cs2 8 жыл бұрын
My color isnt changing
@3DSage
@3DSage 8 жыл бұрын
Just make sure that the global variable changes with the each key you press and each quad stores the color when created and drawn. Good luck, i hope you get it working.
@twoleggedcat_cs2
@twoleggedcat_cs2 8 жыл бұрын
thanks man its fixed. hey it would be cool to see like a raycasting game tutorial
@3DSage
@3DSage 8 жыл бұрын
Im working on it. :)
@twoleggedcat_cs2
@twoleggedcat_cs2 8 жыл бұрын
thats awasome man. can't wait
@GTA4mecago
@GTA4mecago 10 жыл бұрын
my screen stay white....
@3DSage
@3DSage 10 жыл бұрын
hm.. I'm not sure why. I suggest following it again and using the values I use in the video and it should work. If not, you might not have opengl linked correctly. Sorry about that, I hope you get it working.
@Knopfabmeganot
@Knopfabmeganot 6 жыл бұрын
C++ ? Please Tag .
@3DSage
@3DSage 6 жыл бұрын
Yes it can work for c++ too. I thought I did have that in the tags
@PrinterPaper255
@PrinterPaper255 4 жыл бұрын
your good at totorialing bec you actually say what the code is doing
@studiovfx6311
@studiovfx6311 8 жыл бұрын
why can't i see the grid i retyped this and it still wont work #include #include using namespace std; void theCube() { glColor3f(1,1,1); glutSolidCube(0.4); } void drawGrid() { int i; for(i=0;i= 20) { glTranslatef(i-20,0,0); glRotatef(-90,0,1,0); } glBegin(GL_LINES); glColor3f(1,1,1); glLineWidth(1); glVertex3f(0,-0.1,0); glVertex3f(19,-0.1,0); glEnd(); } } void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(-13,0,-45); glRotatef(40,1,1,0); drawGrid(); theCube(); glutSwapBuffers(); } void init() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(35,1.0f,0.1f,1000); glMatrixMode(GL_MODELVIEW); glEnable(GL_DEPTH_TEST); glClearColor(0.1,0.1,0.1,1); } int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE); glutInitWindowSize(800,600); glutCreateWindow(""); glutDisplayFunc(display); glutMainLoop(); return 0; }
@studiovfx6311
@studiovfx6311 8 жыл бұрын
nvm fuck it tried tu update dev cpp now glut doesnt work and cant find the version i had previous
@3DSage
@3DSage 8 жыл бұрын
I think i see the problem. If you have a glpushmatrix, you have to have a glpopmatrix. Add a glpopmatrix at the end like you can see at 3:00.
@studiovfx6311
@studiovfx6311 8 жыл бұрын
yo man thanks im a little salty though because i switched versions of c++ now when i goto packages manager and i download glut it still says i dont have the library
@studiovfx6311
@studiovfx6311 8 жыл бұрын
still wont work i fixed gl btw by following your tut thanks for that btw its weird though idk why it wont work
@juanalbertoarenaschoque7354
@juanalbertoarenaschoque7354 Жыл бұрын
can you pass me the code please?
@Pedro_ZKS
@Pedro_ZKS 5 жыл бұрын
Simple only to use, but to make...
@mr.awesome5109
@mr.awesome5109 3 жыл бұрын
Hey does anyone know why whenever I press space or in my case Enter (because I changed it) it always resets the position of the cube? Here's my code: Edit: Also is there a way to convert the actually scenes made with this to something that can be played onto the GBA #include #include using namespace std; int cx=0; int cy=0; int cz=0; int cn; struct Quads { int x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4; float r,g,b; int state; int total; }; Quads Q[100]; void addQuad() { Q[0].state++; if(Q[0].state>4){ Q[0].state=1;} int st=Q[0].state; if(st==1){ Q[0].total++; cn =Q[0].total;} if(st==1){ Q[cn].x1=cy; Q[cn].z1=cz;} if(st==1 | st==2){ Q[cn].x1=cy; Q[cn].z1=cz;} if(st==1 | st==2 | st==3){ Q[cn].x1=cy; Q[cn].z1=cz;} if(st==1 | st==2 | st==3 | st==4){ Q[cn].x1=cy; Q[cn].z1=cz;} } void drawQuads() { int i; for(i=1;i
@thugger-m2g
@thugger-m2g 5 жыл бұрын
black screen here
@3DSage
@3DSage 5 жыл бұрын
Try following my opengl install video. And google any errors you get to find solutions. I hope you get it working!
@They0ungTravler
@They0ungTravler 8 жыл бұрын
My Cube doesn't pop up, this is my code #include #include void Cube() { glColor3f(1, 1, 1); glutSolidCube(0.4); } void display() { glClearColor(0, 0, 0, 1); glClear(GL_COLOR_BUFFER_BIT); glRotatef(40, 1, 1, 0); glBegin(GL_QUADS); glEnd(); Cube(); glFlush(); glutSwapBuffers(); } void Init() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(35, 1.0f, 0.1f, 1000); glMatrixMode(GL_MODELVIEW); glEnable(GL_DEPTH_TEST); } int main(int argc, char* argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE); glutInitWindowSize(800, 600); glutCreateWindow("3D"); Init(); glutDisplayFunc(display); glutMainLoop(); return 0; }
@3DSage
@3DSage 8 жыл бұрын
Your display function looks different. Try following the video again and pause to make sure it matches.
@They0ungTravler
@They0ungTravler 8 жыл бұрын
Thank you!
@studiovfx6311
@studiovfx6311 8 жыл бұрын
this is my code so far ive been looking over it for days and i cant find the problem #include #include using namespace std; void theCube() { glColor3f(1,1,1); glutSolidCube(0.4); } void drawGrid() { int i; for(i=0; i= 20) { glTranslatef(i-20,0,0); glRotatef(-90,0,1,0); } glBegin(GL_LINES); glColor3f(1,1,1); glLineWidth(1); glVertex3f(0,-0.1,0); glVertex3f(19,-0.1,0); glEnd(); glPopMatrix(); } } void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(-13,0,-45); glRotatef(40,1,1,0); drawGrid(); theCube(); glutSwapBuffers(); } void init() { glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(35,1.0f,0.1f,1000); glMatrixMode(GL_MODELVIEW); glEnable(GL_DEPTH_TEST); glClearColor(0.1,0.1,0.1,1); } int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE); glutInitWindowSize(800,600); glutCreateWindow(""); glutDisplayFunc(display); glutMainLoop(); return 0; }
@3DSage
@3DSage 8 жыл бұрын
I found it. your init function is not called. Add it in the main function under glCreateWindow(""); init();
@miguelm9216
@miguelm9216 6 жыл бұрын
This tutorial is good, but better in Spanish
@3DSage
@3DSage 6 жыл бұрын
Gracias!
Let's Program Doom - Part 1
25:13
3DSage
Рет қаралды 459 М.
Make Your Own Raycaster Part 1
16:52
3DSage
Рет қаралды 442 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 100 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Basic Shadow Mapping // OpenGL Tutorial #35
16:54
OGLDEV
Рет қаралды 24 М.
How to Make 3D using only 2D | OpenGL Tutorial
5:12
3DSage
Рет қаралды 13 М.
I tried coding my own graphics engine
4:23
Garbaj
Рет қаралды 215 М.
Making a Game with Java with No Experience
8:41
Goodgis
Рет қаралды 664 М.
User Clip Planes // OpenGL Tutorial #44
12:45
OGLDEV
Рет қаралды 3 М.
I Made a Graphics Engine
6:42
Zyger
Рет қаралды 262 М.
Designing a Physics Engine in 5 minutes
7:37
Winterdev
Рет қаралды 157 М.
I Made a 32-bit Computer Inside Terraria
15:26
From Scratch
Рет қаралды 4,1 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 100 МЛН