Questions tagged as 'opengl'

1
answer

Draw triangles with OpenGL ES 2.0

I'm learning OpenGL ES 2.0 for Android, and after some familiarization with the programming order I'm trying to draw 2 triangles on the screen, from 2 different objects. It's very simple, but it's not working, only my "triangle2" is drawn on the...
asked by 09.03.2014 / 15:35
1
answer

Difference between glFlush and glFinish

What is the practical difference between the glFlush and glFinish commands in the context of OpenGL ES 2.0? I have already read the documentation for the two functions glFlush and glFinish , and I have not yet been able to determine when to...
asked by 21.12.2014 / 00:26
1
answer

Depth Test is not working correctly in OpenGL

I'm having a problem with Depth Test . I have a scene where it contains three objects. A plan a cube and a cylinder. In my Render I'm doing for when rendering the cube it should disable the Depth Test. With this the cube (in orange) should...
asked by 04.02.2018 / 18:43
1
answer

How to find the vector corresponding to the 3-dimensional angle?

Hello, I'm doing a 3D game and I'm having trouble making 3D raycasting. In case, I want to do to the camera, to know if there is no object between the camera and the player. For this I need to find a vertex that represents the angle and check on...
asked by 06.08.2015 / 18:14
0
answers

Performance while drawing an image

I currently use the DrawImage method of the Graphics class. However, the drawing speed in the components is very slow. How can I optimize its use? Can libraries like MonoGame or OpenTK perform better on this? Here is an example of code in...
asked by 07.07.2015 / 14:51
0
answers

Game development - OpenGl, Directx

I'm starting to study APIs for graphic development and I'm having a pertinent question. When games are developed, APIs are necessarily used. My question is regarding the development of the same game with different APIs, in order to increase the...
asked by 13.03.2015 / 03:18
2
answers

How to calculate the Xmin, Xmax, Ymin, Ymax of an object?

I'm doing a simple " space invaders" game in OpenGl and in the part of the collisions I need to calculate the minimum and maximum X and Y values, but I still can not figure out how to do this. This is the code I use to create an enemy ship:...
asked by 17.01.2017 / 16:07
1
answer

How to solve the problem of accentuation in the terminal?

I'm writing some strings on the screen using the Opengl library and some of the stored words are accented words, for example: república checa , where the output ends up being: repblica checa can solve this problem without using exte...
asked by 30.04.2016 / 01:03
3
answers

Problem with fscanf using code :: blocks and OpenGL

Does anyone know if there is any restriction on using fscanf in projects that use GLUT (OpenGL)? I'm trying to do something simple ... read a cloud of points (x, y, z) from a text file, but fscanf does not get the values correctly...
asked by 03.02.2015 / 22:21
2
answers

Capture a 3D click in openGL

I'm doing a job in openGL. I wanted to click on a window and a drawing appears where it was clicked. Since the 3D eh scenario wanted to know how I can get the coordinate value in Z. Could someone tell you a step-by-step how to do? =)     
asked by 03.06.2016 / 18:32