OpenGL Compiling GLSL Shaders

preview_player
Показать описание
Shows creating shader objects, compiling, and linking them. Demonstrates glCreateShader(), glShaderSource(), glCompileShader(). Also creates a program using glCreateProgram(), glAttachShader(), glLinkProgram(), and glUseProgram().
Рекомендации по теме
Комментарии
Автор

6:15 I don't understand why do you need the adapter? Isn't it simpler to get the address of the pointer by using '&' operator?

SiwakSerg
Автор

Is this video series relevant in 2018? Still all active or anything changed since?

DariuszMakowski
Автор

Likewise the triangles remained white. I'm not sure if there are different versions now, considering this video is 2 years old and I'm not getting the effect desired. I was wondering how one checks the version ?

Demonalecks
Автор

Even am able to find the issue. Triangle is not getting colored . It is always white. tried changing the verion to 420 or 330 core also. PLz some one help me out.

ankitpandey
Автор

So how did the original triangle get drawn without the shader installed?

HairyPixels
Автор

Hi Jamie,

as I am watching these video tutorials about engines and learning, I came to question, which I wanna ask, do you do all this from head?
I mean, initialize engine, render stuff to screen, make shaders etc. ? I mean every function and every parameter. 

I want to ask, because I don`t know whether this is a bare minimum to know from head, how this stuff works what are the OpenGL function parameters, what each of them exactly do etc. So if most of the people are writing this engines from scratch, or for tutorials, if they have everything pre-prepared, googled, and are just "copying" from it into the tutorials let`s say.

Thanks.

wrymen
Автор

Hello, I just had a strange (maybe?) question. Can we build a beautiful 3D object (bunny, dragon) without shaders. By beautiful, I do not mean a color but it should be just a normal 3D object(visible). I am asking it because I was forced to believe that there is no a good 3D object without shaders.

KadiNamamato
Автор

thaks so much for what are you doing jamie

temipro
Автор

Hello! :) i am following this tutorial and its amazing, but i have a problem, i did every single step of this part of the tutorial (shaders) at the end it draws the triangles white still, :/ i have checked a lot of times, what can it be?

rodolfojosemiquilarenagonz
Автор

I was struggling with white triangles until I realised I'm not calling the installShaders function anywhere in my code..

NotQuiteMelvin
Автор

I'm having the same problem (triangles are still white), however trying to use glfragcolor didn't help me. Here's my code:

It seems like both shaders aren't working as I;ve tried messing with the numbers of the vertex shader and it doesn't work... makes me thing that the problem is in InstallShaders.

TheNoWarLord
Автор

Hm I'm also getting white triangles. Classic typo.

TheGruselmops
Автор

EDIT: I figured out how to get errors, and i get the following error:
ERROR: 0:2: 'location' : syntax error syntax error
I google a bit and found out that i needed to bind position to the attribute location 0 with (before linking) glBindAttribLocation(programID, 0, "position");

miguelsepulveda
Автор

I thought java was verbose but at least it can pass strings arounds without needing 3 extra lines ;)

cas