OpenGL and C# Tutorial | The OpenTK Library | Part -6 | Lighting

  Рет қаралды 10,621

The Pentamollis Project

The Pentamollis Project

Күн бұрын

Пікірлер: 12
@TheVoxxification
@TheVoxxification 7 жыл бұрын
quick note, the vertex's in the description for drawing the cube do not match the order the faces are labeled in the demonstration, so if you copied the code from there you're going to need to also figure out which face it is and reassign your normals. if you copied and you are getting lighting errors around 10:16 you should assign them in this order: GL.Normal3(-1.0, 0.0, 0.0); GL.Normal3(1.0, 0.0, 0.0); GL.Normal3(0.0, -1.0, 0.0); GL.Normal3(0.0, 1.0, 0.0); GL.Normal3(0.0, 0.0, -1.0); GL.Normal3(0.0, 0.0, 1.0);
@ThePentamollisProject
@ThePentamollisProject 7 жыл бұрын
the vertex's in the description ? you mean the previous part ? Yes, i guess the geometry is a bit different than this part, but you need to figure out the normals yourself according to the geometry you are using. I am not asking you to use the code exactly as it is shown in the tutorial.
@p529.
@p529. 5 жыл бұрын
@MrDixioner Entitled much? He is explaining everything just fine and he even said that you should define the points yourself. Dont take everything for granted wtf. Do some work yourself
@davidpike766
@davidpike766 5 жыл бұрын
These really are the best videos I have seen on this subject, well done and thank you.
@christiansadykbayev3486
@christiansadykbayev3486 5 жыл бұрын
Why are you still using immediate mode in OpenGL. Why not teach something more optimized and less cpu intensive tutorial. One that uses vertex buffers and index buffers
@JarppaGuru
@JarppaGuru 3 жыл бұрын
7:38 19:14 funny it should be redish is same angle
@kyrnix1432
@kyrnix1432 7 жыл бұрын
How would I go about making a light class so I can have it as an independent object instead of doing it this way?
@ThePentamollisProject
@ThePentamollisProject 7 жыл бұрын
Well thats really up to you. I can't give a detailed explanation as this is way out of the scope of this tutorial. Although I can help you with a few things. Create your lighting class and add variables(float/double arrays actually) like the light_diffuse, light_position , light_ambient etc. and create the setter functions for them. Create a function to enable or disable the light , another function to initialise or set the light parameters according to the values of the member variables. You can add much more functionality to the class like the way you want. If you have a good experience in the Object Oriented Programming world, trust me , you'll be able to make it just fine. Regards.
@proferorz3778
@proferorz3778 7 жыл бұрын
Could you make an objloader, please?
@ThePentamollisProject
@ThePentamollisProject 7 жыл бұрын
I'm working on it currently. since C# does not have any support for loading .obj files ( some sort of parser) so it has to be done manually. I'm currently working on it. I might come up with a video about it when its ready.
@chris_burrows
@chris_burrows 7 жыл бұрын
Nice man. So what are your plans for the series? Can you give us an outline?
@ThePentamollisProject
@ThePentamollisProject 7 жыл бұрын
I have not planned all of the upcoming videos , but i am certain that the next video will be about texture mapping. This series will be long , although i dont know how much ..... yet.
OpenGL and C# Tutorial | The OpenTK Library | Part -7 | Texture Mapping
26:15
The Pentamollis Project
Рет қаралды 12 М.
OpenGL Tutorial - 3 | Animation | OpenGL in C++ with the GLUT library
19:59
The Pentamollis Project
Рет қаралды 78 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 759 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 159 М.
USA strikes Russia / Zelensky's statement on negotiations
15:12
NEXTA Live
Рет қаралды 841 М.
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 17 МЛН
you will never ask about pointers again after watching this video
8:03
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН