Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

1 answer

OpenGL: glReadPixels inaccurate for unprojection

I have my own unproject function for performing reverse projection of a screen point. The code is as follows (written in OpenTK): public static Vector3 UnProject(Point screenLocation, float depth) { ...

0 answers

Undefined reference to `glewExperimental`, `glewInit@0`, and `__glewGenBuffers`

My project fails to run and tells me that there are undefined references to many Glew things. Here is the CmakeLists.txt and main.cpp. Main.cpp I'm very new to C++, but I've tinkered around with ...

1 answer

Why are the debug symbols lost in the LLVM compile/link process?

I wrote an LLVM transformation that basically replaces mallocs by kind of guarded mallocs and some other stuff. I'm using clang (or llvm-gcc) for compiling a c file to get a bitcode file (using the ...

1 answers | 2 hours ago by Kevin Streit on Stack Overflow stackoverflow.com
1 answer

Android OpenGL and non premultiplied textures

As I understand it; by default all bitmaps will will get the alpha channel premultiplied in Android if loaded using BitmapFactory. My setup: I have a 32bit bitmap(.bmp) where the alpha channel has a ...

1 answer

Math/OpenGL ES: Draw 3D bezier curve of varying width

I've been working on a problem for several weeks and have reached a point that I'd like to make sure I'm not overcomplicating my approach. This is being done in OpenGL ES 2.0 on iOS, but the ...

1 answers | 4 hours ago by Javier Otero on Stack Overflow stackoverflow.com
4 answers

Order independent transparency in particle system

I'm writing a particle system and would like to find a trick to achieve proper alpha blending without sorting particles because: Each particle is a point sprite in a single mesh and I can't use ...

1 answer

Does fragment shader process all pixels from vertex shader?

If I have only the vertex shader and fragment shader in my pipeline, what I would like to know is does the fragment shader receive each individual processed vertex from the vertex shader or does it ...

1 answers | 4 hours ago by hop joppe5 on Stack Overflow stackoverflow.com
1 answer

How to work with static variables in clases with the Android NDK?

I'm just trying to compile with NDK a simple class (that works with GCC compilation): ShaderProgramManager.h: namespace Graphics { class ShaderProgramManager { public: ShaderProgramManager(); ...

1 answer

Getting Segmentation Fault in nvidia-340-updates

I was kinda doing learning SDL OpenGL for C++(my mistake),and I had to port it to C.Because C++ is kinda confusing for me (btw. Yes I can search the web for an function alternative). So running this ...

1 answers | 5 hours ago by nik123 on Stack Overflow stackoverflow.com
0 answers

Debugging a third party shared library using eclipse

I have an android eclipse project that uses third party shared library. I am building the library using make (not from inside eclipse) and using it as a prebuilt shared library in eclipse. I have ...

0 answers

glReadPixels without loss of precision (Android)

I'm having a lot of trouble converting unique integers (index numbers) into unique float colours that are interpretable by an RGB565 OpenGL surface. When I assign unique colours, more often than not ...

1 answer

In OpenGL one line disappears after drawing another

In OpenGL, I am trying to implement Bresenham's Line algorithm. At first, I am drawing two-axis lines. Then the given line would be drawn. But the horizontal axis is being disappeared after ...

1 answers | 6 hours ago by manetsus on Stack Overflow stackoverflow.com
1 answer

OpenGL how to implement free moving camera?

I am trying to implement a basic free moving camera in OpenGL. I want to understand the operations so I'm not using gluLookAt. I've tried a few things but it doesn't work as expected. This is my ...

2 answers

undefined reference to '_imp___glewGenBuffers'

I am having the following link errors regarding glew library when compiling an opengl 2.1 program on code blocks,mingw. obj\Debug\LUtil.o||In function `Z6renderv':| ...

0 answers

c++ - llvm and runtime jit

Context Linux 64 bits / osx 64 bits. C++ (gcc 5.1, llvm 3.6.1) Up to now, I always used gcc for my projects. The problem for the next thing I am creating is the licence. Hence, I decided to give ...

0 answers

Desktop Capture using LWJGL

I want to create an application using to capture desktop and save it to a file. I went through a few LWJGL codes for this. However it only captures OpenGL window. Here are the code snippets I used. ...

1 answer

How to render a vertex buffer in DirectX11 C++ (specifically with box2d's b2Draw)

I have all the DirectX11 devices etc setup and working with DirectXTK's SpriteBatch and currently attempting to implement a b2Draw class to draw my box2d physics worlds. I have little idea on how to ...

1 answer

Native crash programmatically

Is there an easy way to crash an app with a native crash, in order to test native crash reporting? note that I'm looking for a general solution for all devices, and not device specific. I thought ...

1 answer

GLSL Vertexshader works witch Qt but not plain OpenGL(SL)

I'm currently developing an OpenGL-Widget in Qt, based on the QOpenGLWidget. I followed some examples and used the GLSL-Wrapper for Demo purposes. But the application itself should be independent as ...

1 answers | 10 hours ago by Matze on Stack Overflow stackoverflow.com
2 answers

OpenGL ES, orthopgraphics projection and viewport

I want to make some simple 2D game on iOS to familiarize myself with OpenGL ES. I started with Ray Wenderlich tutorial (How To Create A Simple 2D iPhone Game with OpenGL ES 2.0 and GLKit). That ...

4 answers

Radius of projected Sphere

i want to refine a previous question: How do i project a sphere onto the screen? (2) gives a simple solution: approximate radius on screen[CLIP SPACE] = world radius * cot(fov / 2) / Z with: fov ...

4 answers | 11 hours ago by fho on Stack Overflow stackoverflow.com
2 answers

NDK support in AndroidStudio and choosing between Android Studio and Eclipse

I got to a 'race condition' choosing between Android studio and Eclipse: My project needs some C++ code to be linked with my app. Currently NDK is not supported (deprecated ?!) in Android Studio ...

0 answers

OpenSL Amplify signal

Passing PCM data (from Midi) to OpenSL-ES I am searching a way to amplify the PCM signal. In OpenSL-ES I see interfaces for Bass boosting and Equalization but not one for amplification (gain above max ...

3 answers

ICU library in Android NDK

I am trying to create a JNI wrapper for a C library that depends on the ICU libraries (libicuuc.so and libicui18n.so). I tried building ICU4C in my NDK (both standard and CrystaX versions, on a Mac ...

3 answers | 14 hours ago by kyyip on Stack Overflow stackoverflow.com
1 answer

Deleting EGL Opengles 2.0 properly

I've written a program that creates a window on WINCE and uses EGL to create the drawing surface and context. When this program quits, I have the following clean up routine: ...

0 answers

xxtea Algorithm in java doens't works, where do I wrong?

I find two different java implementation of xxtea algorithm. For example I found it : https://code.google.com/p/xxtea-algorithm/ Btea and xxtea is the samething right ? If not : Is possible to ...

1 answer

Huge increase in CPU usage in OpenGL ES on Android after 10s

I have a pretty simply OpenGL ES application running on Android - it just loads a texture atlas, then draws a load of tiles in predetermined positions It's based on this tutorial: ...

0 answers

Problems running hello-neon example in Android Studio

I am needing to check if the device has NEON capabilities. I was able to copy the contents of the hello-neon sample project into my project to make this check and it worked great, but I was using ...

1 answer

glVertexAttribPointer index for texture co-ordinates in OpenGL ES 3.0

Given this array in my example: private final float[] mVerticesData = { -0.5f, 0.5f, 0.0f, // Position 0 0.0f, 0.0f, // ...

1 answers | 16 hours ago by Sepoto on Stack Overflow stackoverflow.com
1 answer

Second pass in multipass effect is ignoring

I am trying to render my vertecies in 2 passes, but seems I am doing something wrong, because only one pass applying. I cannot make the second one work despite that second pass is applying. Here is ...

15 30 50 per page
1 2 3