# Search:

Type: Posts; User: Qoheleth

1. ## Thread: Projection Planes and the Z-Axis

by Qoheleth
Replies
1
Views
844

### Projection Planes and the Z-Axis

VertexData data[ 18 ] = {
{ { 255, 0, 0, 255 }, { -0.5f, 0.0f, 0.5f, 1.f } }, // front
{ { 0, 255, 0, 255 }, { 0.5f, 0.0f, 0.5f, 1.f } },
{ { 0, 0, 255, 255 }, { 0.0f, 0.5f, ...
2. ## Thread: Splitting Pyramid Problem

by Qoheleth
Replies
1
Views
835

### I was able to figure out the problem. A beginner...

I was able to figure out the problem. A beginner mistake: I had not culled the back face.
3. ## Thread: Splitting Pyramid Problem

by Qoheleth
Replies
1
Views
835

### Splitting Pyramid Problem

Good for now: 934
Bad. One of the faces reappears down the middle: 933

I've have a pyramid on screen. I'm able to rotate it by 5 degrees on the y-axis, but at certain points one of the faces will...
4. ## Thread: GLSL & Matrix Math

by Qoheleth
Replies
4
Views
1,727

### thanks tonyo. I just wanted to do a rotation in...

thanks tonyo. I just wanted to do a rotation in an orthographic projection. I thought by default opengl does that automatically if a perspective projection is not specified. For example with just...
5. ## Thread: GLSL & Matrix Math

by Qoheleth
Replies
4
Views
1,727

### GLSL & Matrix Math

I'm new to 3-D math so I'm not sure if I'm doing this correctly.

I currently have a GLfloat[ 36 ] pyramid set to the buffer, and that data is sent to an vec4 Vertex in the shader.

...
6. ## Thread: Redbook 8th sample code?

by Qoheleth
Replies
9
Views
6,752

### @chuatroi123? Huh? Anyways, I was able to make...

@chuatroi123? Huh?

Anyways, I was able to make my own LoadShaders.h and it works! Just like in the book, I was able to get the triangles colored blue.

by Qoheleth
Replies
1
Views
804

### omg...I'm so stupid. Passed in GL_VERTEX_SHADER...

by Qoheleth
Replies
1
Views
804

This is more of a basic C/C++ question. I'm using ifstream to read from a text file the shader program. glShaderSource needs that shader code in the form of GLchar **. Is there anyway to get a const...
9. ## Thread: Redbook 8th sample code?

by Qoheleth
Replies
9
Views
6,752

### kantaki, I also registered with Safari Online....

kantaki, I also registered with Safari Online. It's a decent book so far. The best resource I've found yet. Everything on the web is either outdated, or not well explained.

Check back in a few...
Results 1 to 9 of 9