# Search:

Type: Posts; User: ProgrammerX

Page 1 of 5 1

1. ## Thread: How do I attach a gun to a camera in OpenGL?

by ProgrammerX
Replies
1
Views
133

### I am a little bit too tired at the moment to...

I am a little bit too tired at the moment to figure out what is wrong with your code, but the question is how complicated/realistic your game/engine should be.

If you just want to have a gun...
2. ## Thread: Help with Stencil Test

by ProgrammerX
Replies
3
Views
128

### Glad I could help ;)

Glad I could help ;)
3. ## Thread: Help with Stencil Test

by ProgrammerX
Replies
3
Views
128

### Short answer: You probably got confused which...

Short answer: You probably got confused which value stand on which side during the comparison: https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glStencilFunc.xhtml

Have...
4. ## Thread: Plot a mathematical wave function in 3d

by ProgrammerX
Replies
6
Views
243

### Then you have to start working on some tutorials...

Then you have to start working on some tutorials to do the rendering yourself or try to use an existing library that already supports plotting.
5. ## Thread: vertice help

by ProgrammerX
Replies
5
Views
257

### https://learnopengl.com/

https://learnopengl.com/
6. ## Thread: Plot a mathematical wave function in 3d

by ProgrammerX
Replies
6
Views
243

### First of all I am not sure if OpenGL is really...

First of all I am not sure if OpenGL is really what you are looking for. OpenGL is a low level Graphics API. You can render/plot basically everything, at the cost of doing a lot of programming...
7. ## Thread: vertice help

by ProgrammerX
Replies
5
Views
257

### Sorry, but this is not a "Please do my homework...

Sorry, but this is not a "Please do my homework for me"-forum. You could at least have removed the comment section at the start to make it look less like a homework.

Learn how to draw a single...
8. ## Thread: Plot a mathematical wave function in 3d

by ProgrammerX
Replies
6
Views
243

### Then you have to search for tutorials that suit...

Then you have to search for tutorials that suit your needs. If you want to learn OpenGL, try learnopengl.com.
9. ## Thread: Texture not changed in the fragment shader.

by ProgrammerX
Replies
4
Views
270

### It might be in your code, that does not mean it...

It might be in your code, that does not mean it is in the shader. If you define a variable A and write something like that:

gl_FragColor = vec4(1,1,1, 1 - A*0);

A would never end up being...
10. ## Thread: Texture not changed in the fragment shader.

by ProgrammerX
Replies
4
Views
270

### It might be in your code, that does not mean it...

It might be in your code, that does not mean it is in the shader. If you define a variable A and write something like that:

gl_FragColor = vec4(1,1,1, 1 - A*0);

A would never end up being...
11. ## Thread: Lighting Problems

by ProgrammerX
Replies
3
Views
204

### Do the following: Set your clear color to red....

Do the following:

Set your clear color to red.

If you see any red inside the model...
... disable blending or set the 4.th parameter of the output fragment to 1. If that helps, check your...
12. ## Thread: Color/normal interpolation artifact with triangles

by ProgrammerX
Replies
2
Views
208

### You have a continuity problem based on the...

You have a continuity problem based on the triangle interpolation. The following statements are not necessarily true for all interpolation models, but should be for the basic linear interpolations...
13. ## Thread: opengl & widgets

by ProgrammerX
Replies
5
Views
260

### wxWidgets has its own OpenGL widget for rendering...

wxWidgets has its own OpenGL widget for rendering that you can attach to any other widget of your program. You can create your own widget that derives from it and put all your OpenGl related...
14. ## Thread: OpenGL shaders not properly rendering from buffers

by ProgrammerX
Replies
2
Views
158

### Not sure here if there isn't a default VAO but i...

Not sure here if there isn't a default VAO but i didn't see you generating one. Try adding one before buffer creation

GLuint VAO;
glCreateVertexArrays(1, &VAO);
glBindVertexArray(&VAO);
15. ## Thread: Texture Error

by ProgrammerX
Replies
4
Views
206

### What happens if you use color =...

What happens if you use
color = vec4(0,passUv.x,passUv.y,1); as output of the fragment shader?

You can also try to use a much larger texture. Just fill your array with the same values until you...
16. ## Thread: The rendering function is being called infinitely.

by ProgrammerX
Replies
3
Views
373

### Don' see a particular problem (delf calling of...

Don' see a particular problem (delf calling of the function) here at first glance. Were do you call it? You can just use a debug build, set a breakpoint and traverse the call stack to see which...
17. ## Thread: glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

by ProgrammerX
Replies
5
Views
362

### I have created the new issue:...

I have created the new issue: https://github.com/KhronosGroup/OpenGL-Refpages/issues/54

Saw that there are also
18. ## Thread: The rendering function is being called infinitely.

by ProgrammerX
Replies
3
Views
373

### Hard to give you an answer with so little...

Hard to give you an answer with so little information.

Which library do you use to create the window? GLUT? GLFW?
How does your Render function look like?
Were do you call your render function?
19. ## Thread: glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

by ProgrammerX
Replies
5
Views
362

### Yes I have a GitHub account and already...

Yes I have a GitHub account and already subscribed to your issue. I ll create the new issue later in the evening and post the link to it here. Thanks for your help :)
20. ## Thread: rotation after translation

by ProgrammerX
Replies
6
Views
412

### Glad you found a solution. ;)

Glad you found a solution. ;)
21. ## Thread: glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

by ProgrammerX
Replies
5
Views
362

### Maybe I was not specific enough about what I...

Maybe I was not specific enough about what I meant with messing up. I meant something like you have buffer and an attribute and you want to connect them at binding point 1 but for some reason the...
22. ## Thread: rotation after translation

by ProgrammerX
Replies
6
Views
412

### okay some operations can be done at once, but I...

okay some operations can be done at once, but I will write it down step by step.

You are in model space were your texture is a rectangle with bottom left corner at (0,0) and your top right corner...
23. ## Thread: rotation after translation

by ProgrammerX
Replies
6
Views
412

### Rotation matrices always rotate around the...

Rotation matrices always rotate around the coordinate origin (0,0,0). If you have a rectangle where the bottom left corner has the x/y-values (0,0) and you multiply a rotation matrix with it, it...
24. ## Thread: glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

by ProgrammerX
Replies
5
Views
362

### glGetVertexArrayIndexediv and GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING

Hi,

I am updating my OpenGL classes and I am currently working on the wrapper for the vertex array object. I am trying to use only direct state access functions. Since one can mess up the...
25. ## Thread: #include <glm/glm.hpp> causes compile errors

by ProgrammerX
Replies
3
Views
425

### IntelliSense is a auto code completion tool and...

IntelliSense is a auto code completion tool and not a compiler. It gets confused really fast (at least that was the case when I last used Visual Studio). As GClements wrote, we need some more lines...
Results 1 to 25 of 109
Page 1 of 5 1