Questions tagged as 'opengl'

1
answer

Change vertices of a plane by rotating

I have a plan on the screen and I want to rotate it by 5 degrees, without using glRotate , I have the code: #include <GL/glut.h> #include <math.h> #include <stdio.h> #define HEIGHT 500 #define WIDTH 500 #define POINTS...
asked by 26.11.2016 / 23:37
1
answer

How to fix rigid "bodies" using PhysX

How can I fix two hard or dynamic "bodies" in a way that where one goes the other goes as close as possible to PhysX . I'm using the PxFixedJoint class but it did not please me. Asyoucanseeintheprintabove,thereisa"belly" curve in t...
asked by 31.07.2014 / 19:59
1
answer

OpenGL reflection in C?

Hello, I have a Computer Graphics project from college and I need help. I'm trying to create a rectangle that works like a mirror, for the objects of my OpenGL scene in C. I found some tutorials that draw the scene twice to fit the reflection...
asked by 23.11.2015 / 01:17
1
answer

How to apply / search for global / local transformations in OpenGL

I'm programming a simple Game Engine using the OpenGL graphics API. But I have a problem that I can not solve. The problem is that the transformations in the world (world) do not work correctly. The scale transformations are normal, but the...
asked by 20.04.2014 / 15:00
1
answer

Android Performance Comparison: Canvas vs OpenGL ES

Is there a benchmark for performance, or some listing with rules / guidelines, to tell me which time to use OpenGL ES on Android instead of the Canvas + Activity pair configured as hardwareAccelerated="true" to make constant drawings , fo...
asked by 03.05.2014 / 22:30
0
answers

How to move the object to where I click the mouse? [closed]

My problem is this: I have an OpenGl program with Java. I made an animation for the drawing to move, increase and decrease in size, so far so good. When I was creating a function where when clicking the mouse, my drawing moves to where I c...
asked by 03.09.2017 / 23:44
1
answer

Send two triangles to a vertex shader. OpenGL, C ++, GLSL

I'm learning in college graphics processing with OpenGL in C ++. We are using the GLFW and GLEW libraries. My program consists of creating two triangles in different parts of the window. I created an array with the coordinates of the triangle, a...
asked by 06.05.2018 / 04:01
1
answer

Slope of a Crane in Opengl

I have implemented all the commands of a crane, it just lacked its inclination around its axis on top, but I can not reproduce this inclination, as it seems that I have to do translation effects and scale at the same time to adjust, however does...
asked by 12.12.2015 / 02:12
1
answer

What is the difference and advantages of OpenGL, and DirectX in relation to each other and when to use?

I have entered some websites and some speak well of OpenGL for being multiplatform, others defending the use of directx due to being from microsoft and said to be easier to use, others speak to instead of directly using OpenGL to use SDL . I'm s...
asked by 03.07.2014 / 18:19
2
answers

How to move, rotate or scale an object on its local axis in OpenGL?

Hello, I have a HTransform class that stores an array, position, orientation, and scale for each object, this class is the base class of each object or entity. I made a function to move the objects and another to update the array when the...
asked by 02.04.2014 / 01:22