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);
@ThePentamollisProject7 жыл бұрын
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.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
@davidpike7665 жыл бұрын
These really are the best videos I have seen on this subject, well done and thank you.
@christiansadykbayev34865 жыл бұрын
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
@JarppaGuru3 жыл бұрын
7:38 19:14 funny it should be redish is same angle
@kyrnix14327 жыл бұрын
How would I go about making a light class so I can have it as an independent object instead of doing it this way?
@ThePentamollisProject7 жыл бұрын
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.
@proferorz37787 жыл бұрын
Could you make an objloader, please?
@ThePentamollisProject7 жыл бұрын
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_burrows7 жыл бұрын
Nice man. So what are your plans for the series? Can you give us an outline?
@ThePentamollisProject7 жыл бұрын
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.