opengl-3 Questions
1
So, I am trying to implement the picking through id. This means with every drawArray a different unique id will be set as uniform and saved in the red component on a texture.
16 bits are more than...
2
Solved
I'm experimenting with the new SDL2 beta and an OpenGL3 context, and I'm having a weird problem:
If I run the SDL initialization code in my main() function, it works fine, but I want to have this ...
1
Solved
I have implemented the basic shadow mapping algorithm but it works correctly with only one light.
I want to render a scene with two following point lights :
Light_1 - position : vec3(-8.0f, 5.0f...
Crissycrist asked 23/12, 2013 at 16:17
1
Solved
I'm trying to wrap my GL calls in external functions and classes. So, this brings up a question for setting uniforms for my shaders: is glGetUniformLocation a slow operation? If so, will using an s...
1
Solved
I'm new to OpenGL3 and now I'm considering moving to OpenGL3 and port my old code. I started reading the few tutorials I found on the web just yesterday. I already have experience with the old Open...
1
I have reimplemented OpenCSG for modern OpenGL version.
PixelFormatAttributes:
NSOpenGLPFAColorSize , 24 ,
NSOpenGLPFAAlphaSize , 8 ,
NSOpenGLPFADepthSize , 32 ,
NSOpenGLPFAStencilSize , 8 ,
NSOp...
Risotto asked 25/11, 2013 at 17:1
1
Solved
For memory-efficient realtime embedded graphics I have traditionally used DDS images encoded using GL_LUMINANCE when I need lossless grayscale images (or GL_LUMINANCE_ALPHA when there is alpha need...
5
Solved
I'm trying to read some OpenGL tutorials on the net. the problem is that I found some old ones that use gluPerspective(). gluPerspective was deprecated in OpenGL 3.0 and removed in 3.1.
What funct...
Ante asked 10/3, 2010 at 14:39
1
Solved
Following some OpenGL tutorials for OpenGL 3+, Right out of the gate, I've run into some discrepancies, here is the code I managed to get, but right out of the gate, I'm getting this massive slew o...
3
Solved
I am confused with the point in generating/creating a Vertex Array Object (VAO) with:
glGenVertexArrays(GLsizei n, GLuint *arrays);
and
glBindVertexArray(GLuint);
Because I can still create a...
2
I am using an FBO+RBO, and instead of regular double buffering on the default framebuffer, I am drawing to the RBO and then blit directly on the GL_FRONT buffer of the default FBO (0) in a single b...
2
Solved
Okay, so I already know why I need GLEW, but only up to a point.
If I am using modern OpenGL stuff, probably from version 3.0 onwards, and/or am using the Core Profile, then GLEW is required as wi...
3
Solved
I'm writing a mac application that draws some of its UI on NSOpenGLView using OpenGL with legacy profile.
My app is targeted to OS X 10.7 and later.
If I migrate to OpenGL 3.2, would it prevent s...
2
When do I use the STD140 for uniform blocks in OpenGL?
Although I am not a 100% sure, I believe there is an alternative to it which can achieve the same thing, called "Shared".
Is it just prefere...
1
Solved
I am using OpenGL3.2 Core Profile on OSX.
And I want to do instanced drawing (glDrawArraysInstanced), where I pass a matrix for each instance.
My vertex shader builds just fine:
#version 150
in m...
3
Solved
EDIT + BETTER SOLUTION:
In case anyone happens to run into the problem I was running into, there are two solutions. One is the solution accepted, but that only applies if you are doing things how ...
1
Solved
I'm writing a GLSL shader to #version 130 (OpenGL 3.0)
It gives a warning that "global function texture1D is deprecated after version 120"
I've googled but can't find much. If it's deprecated, th...
1
Solved
I came across a nasty problem in my program when i tried to use the same texture unit (number 0) for different texture types (i.e. a normal 2D texture and a cube map) in my shader. It appeared so t...
2
Solved
Lets say I have 2 species such as humans and ponies. They have different skeletal systems so the uniform bone array will have to be different for each species. Do I have to implement two separate s...
2
Solved
So this one is a doozie;
I've got a pretty large OpenGL solution, written in version 3.2 core with GLSL 1.5 in Windows 7. I am using GLEW and GLM as helper libraries. When I create a window, I am u...
1
Solved
Bullet has an implementation of the btIDebugDraw interface in older OpenGL which is used to draw the physics world for debugging. The interface is like this :
class GLDebugDrawer : public btIDebug...
Mcbee asked 23/12, 2012 at 3:4
1
Solved
I know that glVertexAttribDivisor can be used to modify the rate at which generic vertex attributes advance during instanced rendering, but I was wondering if there was any way to advance attribute...
1
Solved
I am trying to look for scenarios where Sync Objects can be used in OpenGL. My understanding is that a sync object once put in GL command stream ( using glFenceSync() ) will be signaled after all t...
Unison asked 28/2, 2013 at 13:40
2
Solved
I've managed to implement OpenGL Debug Contexts (awesome, finally!) and most things seem all good and well, but I'm seeing a performance warning that I'm unable to find good information on.
[ 0.03...
3
Solved
I am using OpenGL without the deprecated features and my light calculation is done on fragment shader. So, I am doing smooth shading.
My problem, is that when I am drawing a cube, I need flat norm...
© 2022 - 2024 — McMap. All rights reserved.