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

0 answers

Using the function of brush to help select the region

I am trying an app with the brush function. The final texture, used for rendering to the screen, has been prepared already. Before the output texture will be shown on the screen, I need to touch …

7 mins ago
1 answer

libjpeg-turbo for Android: how to organize runtime selection of NEON / non-NEON code?

I'm using a libjpeg-turbo port for Android. It's not much different from the base jpeg-turbo in terms of source code: ...

1 answer

Linear 1D audio balance with OpenAL

I've already asked this question on the OpenTK forums but there doesn't seem to be anyone able to respond. (http://www.opentk.com/node/3638) In OpenTK, I'm trying to get a balance value of -1 to 1 …

3 hours ago
0 answers

Android: How to find the position the mouse pointer hit on the object in 3d space

I have trouble of finding the hitpoint on the 3d space. I currently have viewport data which is the screen size, the depth from camera to the object (object is = plane parallel with the screen), and …

1 answer

Method in inner class stripped away by proguard

I'm currently working on an Android project, in which I'm doing some calculation in C, using Android NDK. My application works fine as long as I do not run proguard, but when I do, a method ...

2 answers

Updating non-static members in a static function in C++

I am trying to update my camera's parameters based on my mouse movement in OpenGL. I am using GLFW. There is an predefined event handler in GLFW glfwSetCursorPosCallback(window, mouseMoveCallback); …

5 hours ago
0 answers

When Texture Coordinates are outside the range 0..1, they glitch, why?

I'm learning opengl for the android platform, everything was fine until I messed up with my texture coordinates and they end up lower than zero, I realized that they got a little distorted and tried …

1 answer

setLookAtM not working or missing

I am following a simple tutorial to draw using OpenGL ES2.0 and I am setting up my own transformation matrix. However, the function Matrix.setLookAtM() does not work. Eclipse gives me The method ...

0 answers

undefined reference to 'typeinfo for testing::Test' with Google Test on Android NDK

I'm trying to use Google Test with the Android NDK. Following the NDK README example here, I've set up my Android.mk and a single test as below, but I'm getting this error: ...

4 answers

In OpenGL, can I draw a pixel that exactly at the coordinates (5, 5)?

By (5, 5) I mean exactly the fifth row and fifth column. I found it very hard to draw things using screen coordinates, all the coordinates in OpenGL is relative, and usually ranging from -1.0 to 1.0. …

7 hours ago
3 answers

OpenGL - Indexed Draws with glDrawElements

I have a couple questions about how OpenGL handles these drawing operations. So lets say I pass OpenGL the pointer to my vertex array. Then I can call glDrawElements with an array of indexes. It ...

8 hours ago
2 answers

how to get inverse of modelview matrix?

I transformed a vector by multiplying it with the Model View matrix. glGetDoublev( GL_MODELVIEW_MATRIX, cam ); newX=cam[0]*tx+cam[1]*ty+cam[2]*tz+cam[3]; newY=cam[4]*tx+cam[5]*ty+cam[6]*tz+cam[7]; …

8 hours ago
0 answers

Simple blur on LWJGL/OpenGL?

Is there a way for using BLUR without shaders? I really don't want to use shaders on my game, and I need to apply blur on-render (like, I'm not going to blurry the images ALWAYS, only sometimes, so …

8 hours ago
1 answer

How do I render a 3d .obj file with OpenGL and GLUT? (Mac OS X, XCode 4)

How do I render a .obj file (in 3d)? And how do I add color to that? I'm on an OS X, and using XCode 4. Here's my little 'test lab'. #include <GLUT/glut.h> #include <iostream> void ...

8 hours ago
1 answer

Floating point allocations with USAGE_GRAPHICS_TEXTURE

I am designing an implementation of an algorithm with Renderscript. The algorithm can be computed using OpenGL ES shaders, but the results have to be in floating point, or at least half-float. Mapping …

1 answer

Ambigious OpenGL Default Camera position

in my Opengl programs (before i apply perspective projection matrix) whenever i draw some object I draw it at the origin of the world coordinate system, however almost all of the Opengl tutorials ...

1 answer

Camera roll has no effect

Consider my following (abstracted) C# w/ SharpDX code: class Game { Camera _camera = new Camera(); private void Window_KeyDown(object sender, KeyEventArgs e) { // Roll if …

10 hours ago
1 answer

Texture partially off screen - performance difference

On the picture is an example of two situations, where a textured polygon is being rendered. All done by Opengl ES2. A) the polygon is partially off the viewport B) the polygon is completely inside …

0 answers

Debugging cocos2dx in eclipse Android NDK

I'm starting to use cocos2dx in my personal computer with Windows 7. It was a pain in the ass configuring all the environment with Eclipse and its CDT plugin, and Android NDK, but finally, I could run …

3 answers

What is the proper parameter for glOrtho to make a Top View?

I try to learn OpenGL by creating some sort of 3D Modeler application using Visual C++. The screen will be divied into three window : perspective, front and top (isometric). And I almost give up try …

10 hours ago
1 answer

Changing data source for same attribute not possible ? (in WebGL/OpenGL ES 2.0)

I happen to have multiple parts in drawing for each frame that could use the same shader/program but need different data passed to vertexShader as attributes. That data is stored in different buffers, …

11 hours ago
2 answers

How do I use Android OpenCORE codecs using JNI?

I want to use the codecs in Android from my application. For now I just want to use the H.264 codec for testing, unless the mp3 or aac codecs provide functions for sending the audio to the device's …

11 hours ago
1 answer

Android JNI Lens blur

I want to add a blur feature to my Android photo editor app. So far, I've made the following code in Cpp to improve speed and efficiency. class JniBitmap { public: uint32_t* ...

12 hours ago
1 answer

How to draw multiple objects by GLM/OpenGL?

I found a lot cases to create multiple objects by one single vertices array. And then through transform to get different ones, such as Draw 2 cubes in OpenGL using GLM and Cant draw multiple objects …

12 hours ago
1 answer

Normal Map Issues

I'm experiencing a very strange result in my very simple normal map implementation on iOS 7 - OpenGL ES 2.0. I'm only using the bare parameters necessary and I'm also skipping on all the tangent and …

1 answer

glDrawRangeElements of GL_TRIANGLE_STRIP not working properly (using glMapBuffer)

I am trying to render points from a VBO and a Element Buffer Object with glDrawRangeElements. The VBO and EBO are instanciated like this: glGenBuffers(1, &vertex_buffer); ...

13 hours ago
0 answers

OpenGL: Drawing lines with varying width

I am looking for a way to draw 3D lines with varying width. I know that i can create triangles, as in the following tutorial: ...

0 answers

android: opengl es2.0 How to map mouse click to 3D world

I have a code like below using gluUnProject, the value return me NaN.. float[] values = new float[] {0,0,0,0}; int[] viewport = new int[4]; // Where The Viewport Values …

1 answer

Storing FP16 values in a RGBA8 texture

Is it possible to store FP16 values in a RGBA8 texture, stored across RG and BA, like in this image? How would it be achieved in OpenGL 3.3+ with render textures and FBOs?

14 hours ago
1 answer

Does CMAKE support Python 3?

I'm attempting to build Clang on Windows 7 using CMAKE. I've performed the following steps; as specified in this guide. The guide is wrong in one aspect: Python is required and without it, cmake ...

14 hours ago
15 30 50 per page
1 2 3