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

1 answer

can the llvm interpreter handle the c++ exception?

My source code is like this: test.cpp: void func(){ throw "abc"; } int main(){ try{ func(); } catch(...){ } } I compiled the code with clang clang -S -emit-llvm test.cpp then excuted it ...

0 answers

use glutEnterGameMode, GLEW can't find GL version

Here's my code: glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); glutInitWindowSize(WINDOW_WIDTH, WINDOW_HEIGHT); glutInitWindowPosition(100, 100); glutCreateWindow("Tutorial ...

0 answers

how to use opengl view matrxi to set camera.worldtocameramatrix in Unity

I am trying to build a PTAM plugin for Unity3D for AR(argumented reality), PTAM use opengl for rendering AR like: (don't be surprise, I have stereo camera and make rendering stereo-like) PTAM ...

0 answers

How to link against GLFW on Windows

I am looking to learn how to use OpenGL with C++, and I am following the tutorial at open.gl. I am at this part in the tutorial, and I am using GLFW. I tried following the instructions to build GLFW, ...

1 answer

How to use ndk-stack in Android Studio 1.3

I keep getting the fatal signal 11 error in my app. I've been trying to debug this error by calling the ndk-stack tool from the terminal window in Android Studio 1.3 but to no avail. I've downloaded ...

1 answers | 51 mins ago by Rajat Jaswal on Stack Overflow stackoverflow.com
0 answers

dewarping panoramic lens video with opengl

I'm trying to dewarp camera stream from panoramic lens in Android. I know this will be solved by polar to cartesian conversion In Image processing. But since I'm using OpenglES 2.0 for the camera ...

0 answers

Creating a large grid of similar objects using SceneKit

I'm currently testing the feasibility of using SceneKit for a game I would like to make but having trouble figuring out how best to create a grid of many similar geometrical objects in SceneKit while ...

1 answer

NDK Integration in Android Studio Error

I am using Android studio version 1.3.1 and try to integrate the NDK by going to local.proprties and writing ndk.dir= and I got this error Error:Execution failed for task ...

0 answers

NDK + Eclipse on Mac OS X: ERROR: Unknown host operating system:

Since I updated my NDK version to r10e (and deleted r9b which I've used consistently before), I get the following in Eclipse: /Applications/android-ndk-r10e/ndk-build all ERROR: Unknown host ...

1 answer

Cube Map is not showing a texture (OpenGL ES)

I am trying to make a skimp with cube mapping. And I have the cube "painted" already, but there is no texture. I don't know if the problem is, when I am loading my texture, like it is not loading any ...

1 answer

Exporting Eclipse project causes incorrect texturing and crashes,

I have got a game, which when ran from the IDE looks like this: However, when I export it from Eclipse with these settings, The texturing is completely incorrect. The textures are still loaded, ...

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

How many indexes can I give the GLES20.glDrawElements function?

I want to draw an more complex object with opengl in android Studio. I have a mesh. All vertices normals and indexes are correct. But when I come to this function GLES20.glDrawElements(mode, count, ...

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

OpenGL terrain light issue

I have some issue with lighting. I have created terrain from height map , calculate normals and stored it in VBO. Then I add light to my scene with glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); If I ...

1 answer

How can I link files compiled with clang -flto using lld?

I am trying to use llvm-lld to link an object that has been compiled with -flto. I have the ld in the path call lld with all the arguments provided. I created a simple C++ program, which I compile ...

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

OpenGL ES 2.0 + Cairo HUD

I have posted this on StackOverflow before finding this Q&A so please excuse the double post but I think there will be more experts in terms of OpenGL around here. I am trying to render a HUD ...

1 answer

Why is my Box2D Body only colliding with one type of Object after a new level has been built?

So developing for an android mobile game, using Android Studio and developing for the API 17, with Box2D implemented. FIRST LEVEL For some reason, one the first level everything is running okay: ...

0 answers

OpenGL ES 2.0 + Cairo: HUD

I am trying to render a HUD over an OpenGL ES 2.0 application written in C on an ARM Linux platform. I am currently using 2 triangles positioned close to the near clipping plane and tiling the ...

0 answers

How to setup a transparent OpenGL NativeActivity?

I have been trying to setup a transparent OpenGL NativeActivity with no success at all. Here is the style I am using for your consideration: <?xml version="1.0" encoding="utf-8"?> ...

1 answer

Why has my refractive water shader become reflective

So I was making a water shader in unity and well it looked fine in the scene view but as soon as I went into the game view the refraction texture basically flipped up 180 degrees and made it look like ...

1 answer

Why can I have an OpenGL shader class, but not a VAO class?

I have been fiddling around with making a game/rendering engine, and I have found that I can have a class for a shader object, but if I wrap a VAO in a class, it won't render. The shaders return no ...

1 answers | 4 hours ago by Nunzio Tocci on Stack Overflow stackoverflow.com
0 answers

How to solve the compile dependency in Android NDK using MakeFiles?

I want to compile two static libraries by android ndk: static1.a and static2.a But static2.a will depend on static1.a, how to solve the compile dependency ? In other words, static1.a has a method ...

1 answer

Fedora 21 with clang, without gcc

Can you (reasonably) get Fedora 21 to where it only has llvm/clang/libc++/libc++abi? (I found some things suggesting no, but they were all about 3 years old, and llvm/clang has come a long way since ...

1 answers | 7 hours ago by user1902689 on Stack Overflow stackoverflow.com
2 answers

GPU optimization question: pre-computed or procedural?

I'm learning shader program and need some general direction. I want to add noise to my laser beam. Which is the best way to handle it? I could pre-compute an image and pass it to the shader. I ...

2 answers | 7 hours ago by Jay on Game Development gamedev.stackexchange.com
0 answers

android simple cube rendering using native code

I am writing a small rendering engine in cpp using native development. I simply took hellogl example code from JNI samples, and using its surfaceView implementation as my rendering surface(I guess the ...

0 answers

opengl normal calculation on object files

I have an opengl program that imports object files. I am attempting to calculate normals for any given object file imported. I have the normals calculating for generated shapes such as a sphere, but I ...

1 answer

NDK <Utils/Log.h> no such file or directory

Ok so I want to compile an FM Radio app i picked up on Github, I have never tried making a Low level language app before this is my first attempt, so I though of first compiling an already working ...

0 answers

jssc.jar causing UnsatisfiedLinkError: Native method not found

I'm currently developing an app for a custom Android KitKat board, the BeagleBone Black (distro name = BBBAndroid). I have to read/write CAN messages using a USB module (USBtin) which provides a ...

0 answers

GLSL Shader: Mapping Bars in Polar-Coordinates

I'd like to create a polar representation of this shader: https://www.shadertoy.com/view/4sfSDN So that it looks like in this screenshot: http://postimg.org/image/uwc34jxxz/ I know the basics of the ...

1 answer

Atmospheric Scattering

I'm trying to implement atmospheric scattering based on Sean O`Neil algorithm that was published in GPU Gems 2. But I have some trouble getting the shader to work. I've downloaded sample code of ...

0 answers

What does c = ((((i&0x8)==0)^((j&0x8))==0))*255; mean in C?

I am looking at a opengl code in C and there is this line c = ((((i&0x8)==0)^((j&0x8))==0))*255; Can someone please explain what does it mean? Part of the code is: #define ...

15 30 50 per page
1 2 3