Questions tagged as 'opengl'

1
answer

Error using OpenGL GLM GTX library

I am trying to compile in Ubuntu Linux a project that uses the quaternions to rotate 3D objects in the glui library, when I compile the code the system reports the following error: The Code says that the error has something to do with the GLM...
asked by 05.06.2018 / 22:59
1
answer

OpenGL: what the basic "package" of shaders to create elements of a 3D scene

At the moment, I'm beginning to work with the Shaders concept of the most current versions of OpenGL. My basic reference is the open.gl site tutorials. After having seen all the texts, and tested the sample source code available, my question...
asked by 15.08.2015 / 01:07
1
answer

How to draw a cube using openGL?

How do I design a cube using OpenGL on Android?     
asked by 03.05.2015 / 17:30
1
answer

Keyboard function does not work PyOpenGL

I have the following code, I wanted to make a simple event to close the application but my keyboard function does not work, I looked elsewhere and I found similar versions. If you can help me, thank you. from OpenGL.GL import * from OpenGL.GLU...
asked by 07.06.2015 / 22:51
1
answer

Able to see through cubes - opengl - pyopengl

Context: I'm using using pyopengl 3.0.2 and python 2.7 to do 3ds drawings in opengl, ubuntu 14.04 as OS and intel hd 3000 as video card. Problem: When running any cube in opengl the cube becomes transparent even without using the alpha. I...
asked by 04.02.2015 / 01:42
0
answers

3D cylinder with 2D lines in OpenGL

How to calculate an array of 3D points that form a 3D cylinder and draw the cylinder using 2D lines (connecting the points of the matrix and forming a mesh of the representation of the 3D object)? Cylinder::Cylinder(int r, int h, Point *...
asked by 17.06.2018 / 01:41
1
answer

Thread - Shared Memory Access Violation

I use a library to retrieve data from an Image (in unsigned char *), and I use it to allocate in an OpenGL Buffer. Because the image can be large, OpenGL by default creates another thread to perform this activity. But I realize free of that i...
asked by 09.03.2018 / 21:10
0
answers

How to correctly use the glVertexAttribPointer () function for repeated attributes

Hello! I am trying to render a cube all red , but I did not want to specify the color for all the vertices in order to save space. For example, we would do this in the traditional way: GLfloat vertices[] = { // Position // Norma...
asked by 08.08.2017 / 16:06
0
answers

C ++ library for instantiating 3D primitives with OpenGL Core Mode

I need a C ++ library that provides abstract data types for 3D primitives (cubes, spheres, pyramids, etc.) and works in OpenGL Core mode. A fictitious example of what I'm looking for is the following: int num_segments = 32; float radius = 5.0f...
asked by 25.07.2017 / 17:47
0
answers

Why in OpenGL do we need to transform all objects to render them?

I'm a beginner in OpengGL and I'm having some difficulty assimilating some concepts. I'm reading the book Mathematics for 3D Game Programming and Computer Graphics 3rd Ed. , in which the author explains the various coordinate systems that OpenG...
asked by 19.04.2017 / 19:18