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

1 answer

vertex array objects in android opengl-es

I heard most of the android devices that are recently released support VAOs of opengl-es. I am trying to develop an app on a opengl-es 2.0 environment. However, I am wondering (Q1)Do most of the ...

2 answers

How to correctly render a texture orthogonally in OpenGL?

I'm trying to render a 2D texture in an orthogonal projection. Let me know what's wrong. width and height are 128, the view is 256px wide and tall, so I expect the texture to be scaled 2x. But all I ...

2 answers | 1 hour ago by Petruza on Stack Overflow stackoverflow.com
0 answers

OpenGL Not Detecting Link Errors (OR Wrong Triggers?)

I have written a little macro to detect shader compiler erros, and shader program link errors: #define OPEN_GL_FUN_SHADER_DEBUG_STATUS_REPORTER_SHADER_UTILITIES_CPP( WHAT_TO_GET, STATUS, ...

0 answers

Save an OpenGL mesh from the current viewing point

I have an OpenGL visualizer (using OpenTK). It's supposed to open a mesh file in the PLY format, and display it. The user is able to move around the object, rotate or scale it. At the end, the user ...

4 answers

C - Why compare constants with & instead of switch/if?

I am reading the OpenSL documentation for Android. Quoting the following document: http://mobilepearls.com/labs/native-android-api/ndk/docs/opensles/ "Callback handlers should be prepared to be ...

0 answers

how to show boundary lines of model in GLES?

This is the code in draw method: public void draw(GL10 gl) { // Set the face rotation gl.glFrontFace(GL10.GL_CCW); // Point to our buffers gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); ...

0 answers

Android video decoder not drawing to gles surface on lollipop only

Briefly, I'm combining two open source apps into a new VR app, so this only runs on the Note 4 and S6 using the GearVR headset. My app works on kitkat, but the video is black on lollipop. The two ...

1 answer

OpenGL - Water waves (with noise)

I am currently in the process of making water waves, so basically I am starting from the beginning. I have created a mesh which is basically a flat square and have animated it in the vertex shader ...

0 answers

OpenGL OGLDev SSAO Tutorial Implementation Fragment Shader yields Noise

TASK BACKGROUND I am trying to implement SSAO after OGLDev Tutorial 45, which is based on a Tutorial by John Chapman. The OGLDev Tutorial uses a highly simplified method which samples random points ...

3 answers

Error when trying to use VBO “array vertex_buffer_object must be disabled to call this method”

EDIT I have effectively rewritten this question in order to greatly improve its quality - see revision logs if you must I have narrowed down my problem to the initialisation phase of my program, ...

1 answer

error: expected value token when calling the GEP instruction

I'm playing with LLVM and have started with simple Hello World. Here's the code that I'm trying to run: test.s: ; Declare the string constant as a global constant. @.str = private ...

1 answers | 6 hours ago by Andrzej on Stack Overflow stackoverflow.com
2 answers

OpenGL 4 adoption

Having only recently started learning the 'new' OpenGL (programmable as opposed to fixed-function, I learned from the Nehe Tutorials), I'm wondering if learning OpenGL 3 is at all useful since OpenGL ...

0 answers

Shaders are recompiled on every uniform change

In my game I'm using shaders to change the color of objects depending on their health. I'm passing floats from my jME3 project to the shaders by using material.setFloat("UniformName", uniformValue). ...

1 answer

Building autotooled software to LLVM bitcode

I would like to compile software using the autotools build system to LLVM bitcode; that is, I would like the executables obtained at the end to be LLVM bitcode, not actual machine code. (The goal is ...

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

GLSurfaceView not appearing over MapView

My goal is to use OpenGL ES 2.0 with Google Maps. I would like to create an app that follows the user as they are traveling from point A to point B. I realize that this can be done using Google Maps ...

0 answers

OpenGL glBlitFramebuffer does not blit both color and depth buffer properly. Results verified from glReadPixel

I am struggled with OpenGL function glBlitFramebuffer. In the document, it says it supports blitting both color and depth buffer. However, in practice it does not. I am on Macbook AIR 13 inches, with ...

0 answers

Generate LLVM IR for httpd

I am trying to compile apache2 with LLVM, to generate final binaries in LLVM IR. I used flto option in compiling and linking and passed "also-emit-llvm" to the linker through clang. It seems to work ...

1 answer

How to compile LLVM against a custom glibc?

I'm using YouCompleteMe Vim plugin for text completion (installed through Vundle). YouCompleteMe uses Clang for text completion for C-family languages (C, C++, Objective-C, Objective-C++). However, ...

1 answers | 8 hours ago by nrz on Stack Overflow stackoverflow.com
0 answers

Normal mapping: TBN matrix different result in vertex shader compared to fragment shader

I'm working on a normal mapping implementation for a tutorial and for teaching purposes I'd like to pass the TBN matrix to the fragment shader (from the vertex shader) so I can transform normal ...

1 answer

Outline of plane slice of arbitrary object

How would you extract the outline of a shape from slicing a plane through an arbitrary object? Note: This is related to my Unity Answers question, but not exactly the same.

0 answers

Flash Icons do not show up with Android Lollipop

I am working on a few games based in Adobe Flash, and the Air Runtime. In Android KitKat and below, when doing local tests on devices,everything was perfectly fine. However, upon upgrading a testing ...

0 answers

Neon:vext and vreinterpretq querry

I want to implement below scalar logic : uint8_t s0[16] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; uint8_t s1[16] = {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}; uint32_t width = 6 ; ...

1 answer

llvm : detect if/else conditions in function pass

I'm trying to write an LLVM analysis pass (function pass) which detects loop and if/else conditions to indentify possibles function call sequences and impossibles ones. To detect loops i used ...

1 answers | 10 hours ago by islandia on Stack Overflow stackoverflow.com
1 answer

Android Game-Loop (rendering & logic removed, but still 'skipping frames')

Overview Guys really hopeing for some help here. My game loop is based on code from Fix Your Timestep!. I've read the article more than a few times, but I can't quite work out what exactly is ...

1 answer

How to DEBUG OpenGL a gray texture box?

I'm altering someone else's code. They used PNG's which are loaded via BufferedImage. I need to load a TGA instead, which is just simply a 18 byte header and BGR codes. I have the textures loaded and ...

1 answers | 11 hours ago by PLG on Stack Overflow stackoverflow.com
2 answers

Neon instruction, vsub_f32(a, b), is it a-b or b-a?

In this neon instruction (from here): float32x2_t vsub_f32(float32x2_t a, float32x2_t b); // VSUB.F32 d0,d0,d0 Does it return a - b or b - a? I cannot find it in the ARM documentation...

2 answers | 11 hours ago by Jan Rüegg on Stack Overflow stackoverflow.com
1 answer

Constant buffer not updating

I'm trying to rotate models independently of each other however I cannot for the life of my figure out how. I have gotten to the stage of writing this: std::vector<int>::size_type st = ...

1 answer

QT Creator, Command Line Android App

I have a pure NDK android app (just a jni folder). That cleanly compiles into a binary. This binary can be pushed to the device and run, no problem. I want to use QT not only as an editor but as a ...

1 answers | 12 hours ago by DarkZeros on Stack Overflow stackoverflow.com
2 answers

java.lang.UnsatisfieldlinkError: Native method not found

I am trying to build a demo app using jni (I am new to it). I have Googled and SO about the problem but nothing helped. Below is the code I am using: include $(CLEAR_VARS) LOCAL_MODULE := ...

1 answer

neon:multiply and accumulate for 64 bit as IP & OP

Is there any way to implement below logic in neon . As I did not find any multiply and accumulate instruction for 64 bit input and output value . int64x2_t result; int64x2_t num1; int64x2_t num2; ...

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