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

1 answer

old JOGL, order of transformation

I have to solve a problem and I realize it is a bit oldschool code.. I need to write down the order of transformations from 1 to 4 and the result for pruple vertex. Would someone help me check ...

2 answers

Android NDK in ADT and Mac OS (10.8): Cannot run program “/ndk-build”: Unknown reason Error: Program “/ndk-build” is not found in PATH

The error while building is /ndk-build Cannot run program "/ndk-build": Unknown reason Error: Program "/ndk-build" is not found in PATH PATH=[/usr/bin:/bin:/usr/sbin:/sbin] I am trying to build ...

0 answers

Matrix and transform issue in OpenGL game engine

I'm trying to develope an OpenGL game engine/framework that I can use when I want to create a 3D game (or 3D-application of some sort) and I have some serious issues with the matrix part of my engine. ...

1 answer

JOGL check extension availability before creating any GLCanvas

To check extension availability, I need to use GL.isExtensionAvailable. In order to get the GL object, I need to create some GLCanvas and get the GL instance in init() or display(). Is there a way to ...

1 answers | 1 hour ago by icando on Stack Overflow stackoverflow.com
1 answer

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...

1 answer

OpenGL - vertex shader color not being passed to fragment shader

I'm trying to work on a school project using OpenGL, however, I've hit a wall that I can't seem to get around. I'm trying to simply pass a color from the vertex shader to the fragment shader and set ...

1 answers | 2 hours ago by user3709119 on Stack Overflow stackoverflow.com
0 answers

How to fix UnsatisfiedLinkError when loading a NDK-generated library in an Eclipse-based Android project?

I've got an Android project set up for Eclipse (Juno). The project relies on a native library called synth, which is generated via ndk-build on the command line, which creates the various ...

0 answers

Android (ART) crash with error JNI DETECTED ERROR IN APPLICATION: jarray is an invalid stack indirect reference table or invalid reference

I am writing an Android application that processes a picture from the native C (NDK r10d). The code was working well until recent ART introduction that is more strict with JNI. So the code is working ...

1 answer

Window blinking with OpenGL rendering on NVIDIA graphics card

In my project I use SDL2 + OpenGL. There is simple code. Function VPreRender() is called when I want to clear buffer and start to draw in it. After that, when I want to show this buffer on the screen, ...

1 answer

How to draw red lines if I used a fragment shader for texture?

I am writing a simple video player using opengl. I used Qt and followed its basic texture examples. The vertex and fragment shaders are here: QOpenGLShader *vshader = new ...

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

DXGI EnumOutputs - no DXGI_OUTPUT_DESC and empty display modes array

Just encountered strange problem when trying to get available display modes. Let me explain... At first, I enumerate available adapters and push then to std::vector and this works fine: for(UINT i = ...

1 answers | 3 hours ago by Patryk Lipski on Stack Overflow stackoverflow.com
0 answers

Multi-layered tilemap

I need to be able to efficiently render a tilemap which can be constructed this way: There is one non-transparent base layer Then there can be 3 partially-transparent layers on top of it. Each tile ...

1 answer

Proper normal vector transformations in normal mapping

Hello! This question is about transforming normal vectors from normal maps properly. I have tried methods from over five sources, still can't get it to work, and I'm really desperate. Included are ...

1 answer

Is it valid to initialize global llvm values from outside the execution engine by writing to its address?

I want to make a more or less complex calculation engine. To do this, I want to try out LLVM and its ExecutionEngine. I need to pass state (e.g. function pointers to external C functions or ...

1 answers | 7 hours ago by Tobias Langner on Stack Overflow stackoverflow.com
0 answers

How to buid ffmpeg with android-ndk-r10d in windows

In my application user can selects several images and create movie(mp4) with those images, For this reason i want to use ffmpeg library. i have searched more than 2 days but did not find a good ...

0 answers

Buffer binding using OpenGL and GLSL

I wonder if there is a way to bind a Texture Buffer (TBO) Object directly on a certain range of data like it's possible to do using Uniform Buffer object (UBO -> glBindBufferRange). Actually, I store ...

2 answers

OpenGL deferred rendering: point light implementation

I'm trying to write a deferred renderer using C# and OpenGL (with OpenTK). But don't understand how should I implement the normal calculation for a point light. The point light fragment shader: ...

1 answer

Parameter type UnsafePointer<Void> in glDrawElements

I am trying to get my context (EAGLContext) to render in Swift; but for days I haven't been able to the function glDrawElements to work. I have read a couple of similar questions here on ...

1 answers | 13 hours ago by Unheilig on Stack Overflow stackoverflow.com
0 answers

How to Add ScrollView to GLSurfaceview in Opengl ES2.0 in Android

I am developing an Auto-cad App in OpenGLES2.0 in Android. I want to add the panning functionality. That's how I achieve this pan function: [Pan Functionality -- just drag the GLSurfaceview to top, ...

0 answers

Android jni JNI_OnLoad error

apiaccess.h #include <jni.h> #ifndef APIACCESS_H #define APIACCESS_H void init_data(JNIEnv* env); void toast(char* msg); #endif hello-jni.c #include <string.h> #include <jni.h> ...

1 answer

Glew does not init

I am using the following code to check for any error: glfwInit(); glewExperimental = GL_TRUE; if (glewInit() != 0) { std::cout << "Failed to initialize GLEW" << std::endl; return ...

0 answers

Collision counter in bullet physics

I am doing a project in openGL bullet physics.I am currently working on the demos of BulletPhysics which are present in gitHub. It consists of a number of demos such as BasicDemo,ForkLIft ...

1 answer

Cannot open file glu32.lib

I created a new project in my Qt 5.4.1 opengl 64 bit. When i tried to build and run my project, I get LINK 1104: cannot open file glu32.lib. I searched my entire pc but i couldn't find glu32.lib file ...

1 answers | 16 hours ago by Jason on Stack Overflow stackoverflow.com
0 answers

Mulitple Fragment Outputs in GLSL 300 es

While writing unit tests for a simple NDK Opengl ES 3.0 demo, I encountered an issue in using multiple render targets. Consider this simple Fragment shader with two outputs, declared in a C++11 ...

1 answer

Android OpenGL ES 2 Random Model Deformation

I've ported a desktop OpenGL application to Android NDK (under OpenGL ES 2), and there seems to be a random deformation of my mesh. On most application runs, it looks 100% perfect, but sometimes it ...

2 answers

SCEV printing in llvm opt

I'd like to analyze Scalar Evolution (SCEV) representation of several values in my IR. Can I display SCEV without writing an auxiliary tool? I mean run opt (or other existing tool) on my IR and ...

2 answers | 17 hours ago by meldo on Stack Overflow stackoverflow.com
1 answer

very large background textures

For a game I'm developing I must use large background images. These images are around 5000x3000. When attempting to display that as a single texture I would get black boxes in GWT and Android. I ...

0 answers

LLVM tutorial 3.6 linker error when trying to compile output from chapter 8

I am working through the llvm tutorial: http://llvm.org/releases/3.6.0/docs/tutorial/index.html The code from chapter 8 compiles just fine and emits the IR however I am unable to compile the emitted ...

1 answer

Drawing large text with GLUT?

I have created a tic-tac-toe game for school, and I am basically finished. The only thing I have left is that when someone wins, I want a box to pop up on the screen and to say in big text "X Wins" or ...

1 answers | 18 hours ago by byurocks23 on Stack Overflow stackoverflow.com
1 answer

PyopenGL glReadPixels

I tried to use the glReadPixels method to color code a simple triangle in the screen, just without any secondary render functions, etc. but it didn't give the good result. Code: import pygame as pg ...

1 answers | 19 hours ago by Sasszem on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3