-3
votes
0answers
46 views

How to multiply mouse coordinates by view matrix?

I'm working on mouse coordinates to convert them from window to openGL. I'm multiplying the mouse vector with x,y coordinates by the glm::lookAt matrix to rotate mouse vector. I start with 90deg. and ...
2
votes
1answer
66 views

smooth shading vs flat shading, what's the difference in the models?

I'm loading the exact same model with Assimp, except one is exported from Blender, shaded smoothly, and the other was exported from Blender, shaded flatly. Here is my results from loading both into my ...
1
vote
1answer
45 views

Get the address of a matrix in GLM library

Is there a way to get the address of a matrix from a GLM matrix? I'm using opengl 4 and glm library though I can't seem to find anything, which might help.
0
votes
0answers
47 views

Default material properties and assimp

I am using assimp to import 3d models and I have a question on the default properties on materials, more specifically on the diffuse, ambient and specular material colors. In assimp, if the model ...
2
votes
1answer
50 views

How to rotate camera around some point?

I have screen with dimensions: 800x600. The object that I want to rotate around is located at (400,300, -50) - center of the screen. Orthogonal projection: Near plan - 0.1f, far plane - 1000.0f left - ...
7
votes
0answers
154 views

Which is the best LOD method for planet rendering?

I'm currently working on my thesis, it is an engine to render terrains of planetary size. I'm still finishing my research and I have encountered a lot of stuff about this subject, the problem is that ...
1
vote
0answers
39 views

Separating rendering and logic thread in GLFW? [closed]

I want to separate my rendering thread (the main thread) and my logic thread in my GLFW game. I'm new to the concept of threading inside games. How would this be done? GLFW isn't thread safe so it ...
-5
votes
0answers
115 views

Best game engine design? [closed]

So I'm creating a 3D game. It is a simulation style game similar to Roller Coaster Tycoon 3....you create your own theme park and manage it. Therefore I'm going to need things like AI, animation, ...
-4
votes
0answers
69 views

OpenGL parsing normals from obj gets shading wrong [closed]

I have written a simple OBJ file parser for my game engine and it renders everything correctly, but, when I try and use the normals to do lighting it gets shaded all wrong! I draw using an index ...
4
votes
1answer
70 views

How to skip the sky in lighting shaders?

I recently implemented a sky in my deferred rendered game. It is a procedurally calculated sphere with a texture applied to it. Unfortunately all lighting shaders (light sources, ambient occlusion) ...
-2
votes
2answers
66 views

Using Win32 and OpenGL in game loop? [closed]

I'm making a Java game library (too many problems with the existing ones) and I'm building the win64 native right now. In the native I need to handle the window, OpenGL contexts, and advanced ...
-1
votes
0answers
136 views

Loading .obj file with my own parser; textures aren't mapped correctly

I have written a simple .obj parser for my OpenGL game engine that reads vertices, uv's and normals; but when I get to drawing the model in the texture isn't mapped correctly. I have tried uv.y = ...
-1
votes
1answer
43 views

Trouble using position and colour vertex data in single Array Buffer [closed]

Answer: a simple typo. Of course. Can't close until tomorrow due to reputation. I'm currently learning OpenGL from the new 4.3 guide, and I'm having trouble using position and colour data stored in a ...
-1
votes
0answers
118 views

c++ game programming course [closed]

Does some one know some good C++ Game programming course? I've tried lots of tutorial of OpenGL (3.3+). I've done simple games using opengl and glsl... but... game programming is another thing. ...
1
vote
1answer
97 views

glBufferSubData and offset alignment?

I'm having trouble rendering some of my meshes; some display just fine, some are drawn wrong or not at all. While troubleshooting I was looking at the openGL docs ...
10
votes
0answers
229 views

My game seems to be incompatible with recording software. What could be causing this?

I've just finished a little Game-Dev project for university and I need to record a video to accompany my submission (just in case they can't get my source to work). Basically my game doesn't work at ...
0
votes
1answer
90 views

How to seamlessly texture a cube in OpenGL

I have been following this site as an intro to OpenGL. After going through the model obj loading tutorial, I wanted to create my own .obj (a cube) as well as my own texture. Following this blender ...
0
votes
0answers
21 views

Size of an image imported with FreeImage

I'm having abit of a brainfart and I can't quite grasp what I'm doing wrong. It's quite simple, I am importing an image with FreeImage (http://freeimage.sourceforge.net/) which has a method ...
-2
votes
0answers
56 views

Setting up Assimp Library for C++/OpenGl [closed]

I am trying to load 3d objects in C++/OpenGl using ASSIMP library. I am trying to figure out how to install ASSIMP. I tried to follow the instructions on ...
0
votes
0answers
51 views

textures and bouncing balls inside a cube [closed]

i have a cube with texture but when i add 3 balls so that they bounce on the walls of the cubes everything seemed to be wrong,the balls are not bouncing in the right directions, i want them to bounce ...
-1
votes
1answer
124 views

Why does OpenGL doesn't draw anything to the screen? [closed]

So, I was following the tutorial by Swiftless for openGL 4.x. The program that I created by following his tutorials doesn't output anything. I've tried checking shaders for errors - I don't seen any ...
1
vote
1answer
87 views

FBX Importer - Texture Name

I have a problem with the FBX SDK. I read in the data for the vertex position and the uv coordinates. It works fine, but now I want to read for each polygon to which texture it belongs, so that I can ...
-1
votes
1answer
113 views

OpenGL/SDL2 window stopped rendering [closed]

I have been working on a game engine for a couple of days now and I've had it rendering a colourful cube and playing sounds in OGG format, but, after refactoring my code-base to make things easier; it ...
-1
votes
1answer
89 views

SDL Access Violation

I've created a SDL game project and this window popped up while trying to compile: First-chance exception at 0x00000000 in SDL_Game.exe: 0xC0000005: Access violation executing location 0x00000000. ...
3
votes
2answers
172 views

Grids and vertices

I have no idea what this is even called or even to start searching how to solve this problem. So figured I would post here for any information at all. Specially looking for already known solutions to ...
3
votes
1answer
131 views

variable number of lights in a glsl shader?

I want to render an arbitrary number of lights in my fragment shader. I do not understand how you can properly pass them into the shader though. For example, I want something like this: uniform int ...
0
votes
0answers
173 views

Optimal OpenGL 2D Sprite Batching (Best Practice)

I am working on simple 2D engine using OpenGL (3.3+) for rendering and was wondering what the optimal method of sprite batching would be. I plan to put all sprites into one (or fewer) texture atlases. ...
0
votes
1answer
127 views

Ogre3d or OpenGl or other [closed]

I want to learn Graphics for games or use a game engine. I don't know whether to use ogre3d, I know its a rendering engine however android isn't really supported, Boost is used for multithreaded when ...
1
vote
1answer
376 views

How to implement a basic arcball camera in OpenGL with GLM

I only just started learning OpenGL and even things like vector maths etc a couple of days ago, so I am having a bit of trouble figuring out exactly what to do to implement an arcball camera system. ...
4
votes
2answers
169 views

generating animations in runtime

i am creating my 3d game engine using Opengl. this question might sound stupid to you but i am still in the process of learning, i have a 3d animated girl that slaps guys of different talls on the ...
0
votes
2answers
112 views

Proper opengl learning curve + tools [closed]

My first post here, so at first i would like to say HI to everyone! Had a course of computer graphics at my uni and got interested with opengl. Unfortunatelly we used it with java + jogl + some funky ...
0
votes
0answers
37 views

How do you make a “game loop” when your making a game with freeglut [duplicate]

Ok so I'm trying to make a game using freeglut, and I understand that you create the display loop by using glutdisplayfunc(), but I've heard a lot about not puttin the game code (like collision ...
1
vote
1answer
86 views

Delta Time in Videos

When playing a Video in my OpenGL Game (e.g. startup video), I want to sync it with my delta time. What is the delta time and how to use here. Do I need to sync with the delta time (and how?) or is ...
-5
votes
1answer
116 views

multiplayer game in openGL [closed]

what is the easiest way how to make network communication in openGL/glut? Does anybody know any good tutorial for beginners? thanks (or is there any simpler way then openGL?)
2
votes
1answer
154 views

Physics engine for Billiard game [closed]

I need to write a simple 3D billiard game using OpenGL. Which physics engine is simple and best to use in this case? Or it's better to write physics by myself?
0
votes
1answer
153 views

How do I implement my old OpenGL-based gfx_render_triangle_list using DX11?

I am working at a game that has lots of procedural content. I had built a game engine using OpenGL that handles everything needed for creating a basic 2D game, sprites, primitives, blending, polygons ...
7
votes
1answer
342 views

How wise is this multithreading architecture?

I'm rewriting a game engine I wrote in an attempt to parallelize as much as possible. I'm considering making properties which may be accessed from multiple threads all use accessors which use boost ...
-1
votes
3answers
107 views

Directional light and matrix issues

I'm trying to implement basic directional lightning in OpenGL 3.3 by emulating the logic shown in this guide: http://www.arcsynthesis.org/gltut/Illumination/Tutorial%2009.html I do not understand ...
0
votes
2answers
75 views

Translate camera position toward camera orientation

I have a camera position (Vec3) and camera horizontal/vertical angle. Now I want to translate my camera position toward the current camera orientation - what is the best way to do that? I am sure it's ...
-1
votes
2answers
96 views

lemniscate of Bernoulli [closed]

I am trying to learn and teach myself openGL and I wanted to draw a figure 8 in a 3D setting but I'm having a problem. Please forgive me, I am very new at this but I'll attempt to explain what I have ...
0
votes
0answers
264 views

How to do collision detection in 3D using bounding boxes?

I am using c++ in visual studio 2010 with opengl. I am trying to make a programme that has 2 boxes that are able to be stacked on top of each other but I am having some trouble with the collision ...
3
votes
1answer
144 views

When do I use VBO?

My drawing code currently draws by calling glVertex3f(x, y, z) for each of my object's vertexes, and I've been suggested to use VBO as it'd enhance the performance of my drawing code. After checking ...
0
votes
0answers
261 views

Loading and displaying a BMP file C++/Opengl

When I run the following code, it just shows a plain color, like Pink or Orange. The picture which I'm trying to load is a 24-bit BMP which should work 100%. (Size 256x256) BmpLoader.h #ifndef ...
0
votes
1answer
112 views

Exit() redefinition while using Opengl

I am using Visual C++ 2010 and I get the following errors: 1>d:\visual c++\vc\include\stdlib.h(353): error C2381: 'exit' : redefinition; __declspec(noreturn) differs ...
1
vote
1answer
235 views

Obj Blender Export Recommendation for OpenGL C++

I have been modelling some objects inside blender, like a light bulb. I finished the light bulb, and I got a question at the time of export it. I want to export the light bulb in the wavefront format ...
4
votes
2answers
192 views

Defining an OpenGL unit

I have read that you can define your OpenGL unit by using glViewport. As far as I understood if you use something like glViewport(0,0,600,600) then 1 OpenGL unit = 600 pixels. Now my problem is what ...
0
votes
1answer
62 views

Problems projecting a point to screen [closed]

In my game I'm trying to implement an equivalent of gluProject, my problem is that the code only seems to work if the camera has no rotation. Even turning left and right affects the vertical position ...
3
votes
1answer
404 views

creating a UI menu in c++

Im currently working on a 2D Game where the users can interact with specific nodes and are able to edit certain bits of information and I also plan for the users to be able to click buttons to set ...
1
vote
1answer
65 views

Finding Surface of Inner Voulme mesh

I am working on the generation of Hexhedral mesh generation using octree based discretization. what I want I have volume mesh (Hexhedrals), Now using isomorphism I need project the outter most surface ...
4
votes
2answers
293 views

C++/OpenGL Game - How to Make it Compatible with Screen Recorders?

I'm developing a 3D tower defense-like game in C++/OpenGL on Windows. The problem I'm having isn't about the game itself (the game runs fine), but it's about using screen recording software to record ...

1 2 3 4 5 6