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

0 answers

Apply CIFilter with OpenGL context

i have been applying the CIAreaAverage filter with a non GPU CIContext, and it works as expected. But when i changed it to a OpenGL context it didn't work, the code is as follows: let openGLContext = ...

1 answer

rotation is flipped in landscape mode

Im using android rotation sensor with opengl when I switch to landscape mode and rotate the phone , rotating left and right rotates it up and down. and vice versa. I did change in the manifest to ...

0 answers

How to render images in WebGL from ArrayBuffer

I am having a image that I am reading in server side and pushing to web browser via AJAX call. I have a requirement where I have to render them line by line using WebGL. For Example : Image is ...

1 answer

Screen point to world space conversion

I have a 3D cube that can be rotated with the mouse to show any side of the sphere.I want to be able to click a point on the cube and draw a circle around that point at a fixed height(so i dont need ...

1 answers | 53 mins ago by introVertice on Game Development gamedev.stackexchange.com
0 answers

Few problems with BRDF using Beckmann and GGX/Trowbridge-Reitz distribution for comparison

I have been trying to wrap my head around physical based rendering these last 2.5 weeks and so far I managed to learn a lot, ask a lot of questions, and have some results, although I still have few ...

0 answers

Store/restore opengl full state

I need to store the full opengl state set by some client code, do my stuff and reset it. I need to do it for opengl 2.0, opengl 3.2+, opengl es 2.0 and opengl es 3.0 opengl 2.0: I think I can use ...

1 answer

Interpolating/blending reflection and shinines in fragment shader

I am trying to implement a Blinn-Phong, Cool-Torrance, and GGX light models. I have implemented the first 2 light models but now I trying to fix and figure out how to do interpolation between diffuse ...

0 answers

Is there any way to view transforms/OpenGL to turn a panaromic image into Oculus Rift compatible dual image in iOS?

I want a panoramic image to convert into Oculus rift compatible dual image using OpenGL in iOS. I want to achieve this - ? I have tried it using unity but i want to do it using OpenGL in iOS ...

0 answers

clipping the mesh against user defined region

I am implementing clipping algorithm for a mesh where clipping region is a rectangle in normalized space.[-1 , 1]. So my algorithm is as follows: create bounding box of a region to be used for a ...

3 answers

Unity Application.LoadLevel freezes the game on Android device

I'm developing a game using Unity. The game has a single level and after the player wins/loses, I simply want to reload the same scene. Here's the code I'm using: private void OnLevelFailed() { ...

1 answer

Easiest way for offscreen rendering with QOpenGLWidget

I have a hidden QOpenGLWidget (Qt 5.4.2, NOT QGLWidget) and I want to basically continually do grab() or grabFramebuffer() to get its content (and write it to disk). The widget renders fine when ...

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

Select Particular Texture opengl

Am developing ios opengl application. I could load mulitple layers on top of base image using opengl es2.0 blending. If I touch on any part of the image that layer will be active and I will apply ...

0 answers

GLFW's glviewport size not change at the first time

I'm just learning with GLFW demos,however the codes below seem have some problem, when I run it, the rectangle will be at the lower left corner as the picture below, just like the ...

0 answers

Android OpenGL ES 2.0 Only Limited To 16 Textures In Memory?

Basically while I was working on an app in Android Studio using OpenGL ES 2.0, I ran into a big problem that I can't wrap my head around, and it's been bugging me for about a week. So, anytime I ...

4 answers

How to make Visual Studio 2015 installer know that I already have Android SDK?

When I am installing Visual Studio 2015 I realized that it says Java SE Development Kit is already exists on the computer. I think installer knew it because of environment variables. That's why I set ...

1 answer

Reading back generated vertices and fragment OpenGL

Is there any way to read back from server space vertices and fragments generated from vertex and fragment shaders back to client space? Is there specific functions to do this or some method by which ...

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

.so file not working in ARM- NExus 5 phone - API 22

I am able to bring my app in my Nexus 5 phone but my audio player (which is a part of .so library) does not play and it gives me null pointer exception. Websites I checked: ...

2 answers

Drawing a quarter circle in c++ using openGL

// baseballField glColor3f(0.22, 0.36, 0.20); GLUquadricObj *myobject; myobject = gluNewQuadric(); glTranslatef(120.0, 655.0, 0.0); gluDisk(myobject, 0.0, 40.0, 60, 4); I'm trying to simulate the ...

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

opengl calculate normal for face

I am attempting to load models exported from Blender into OpenGL. Particularly, I followed the source code from this tutorial to help me get started. Because the loader is fairly simple, it only read ...

1 answers | 6 hours ago by goh on Stack Overflow stackoverflow.com
0 answers

Clang - difference between Windows snapshot build and release 3.7.1

What's the difference between LLVM toolchain from there http://llvm.org/builds/ (Windows snapshot build, 32 and 64-bit) and there http://llvm.org/releases/download.html#3.7.1 (Clang for Windows 3.7.1, ...

2 answers

Can i break up an image and draw it to three or four separate 2d primitives in OpenGL

Basically my OpenGL code reads from a 2d texture 256 * 256 image and writes from its data to a 2d generated triangle on screen my question is what actually happens to the data that was not drawn or ...

2 answers | 9 hours ago by hopjopper on Stack Overflow stackoverflow.com
0 answers

Minecraft Forge Eclipe Error

I was coding with JavaScript On Eclipse... and something happened.... I have been trying to add Crafting Recipes Forever! I keep on getting thing error message: -- System Details -- Details: ...

2 answers

OpenGL Display list blocks glEnable(GL_COLOR_MATERIAL)

I have the following code: glDisable(GL_COLOR_MATERIAL); cout<<(int)glIsEnabled(GL_COLOR_MATERIAL)<<endl; glEnable(GL_COLOR_MATERIAL); ...

2 answers

OpenGL/GLM - Calculating frustum problems

I am trying to calculate my frustum to do some simple bounding box tests. Here is my function: void CFrustum::calculateFrustum(glm::mat4* mat) { // Calculate the LEFT side m_Frustum[LEFT][A] ...

1 answer

Segmentation error with OpenGL code

I am on the understanding that a segmentation error occurs when I have tried to access memory which has not been accounted for. I can not seem to find the error. I have tested the procedure that fills ...

1 answers | 9 hours ago by HMPARTICLE on Stack Overflow stackoverflow.com
1 answer

GLUT Warning and GLUT Fatal Error in a Python code that runs in another machine

I have to make some modifications in the following code as homework, however the professor shown the code running in class, but even after installing the packages it didn't run on my Mac machine, the ...

1 answers | 10 hours ago by William Studart on Stack Overflow stackoverflow.com
0 answers

Cannot read GL_DEPTH_COMPONENT using QOpenGLWidget

I am implementing a simple click selection for 3D objects inside a QOpenGLWidget. To do this I need to transform 2D mouse coordinates into 3D worldspace. I had previously implemented the whole thing ...

1 answer

Keeping the sun in the same position

I am drawing a circle in OpenGL using a simple circle drawing shader that draws a circle around a point passed in. The point needs to be in screen space coordinates i,e, 1 to -1 in the x and y. The ...

1 answers | 10 hours ago by Student123 on Stack Overflow stackoverflow.com
0 answers

Sampling in the Compute Shader not working

I'm trying to sample a image in the compute shader. My code is [numthreads(1, N, 1)] void VertBlurCS(int3 groupThreadID : SV_GroupThreadID, int3 dispatchThreadID : ...

1 answer

my SDL / OpenGL program works only on my computer

I created a game with SDL2-2.0.4 and OpenGL but the program works only on my desktop (64 bit, Windows 8.1, Visual Studio 2013 SP4) for some reason. (I compiled it in release mode) According to OpenGL ...

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