C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

learn more… | top users | synonyms

1
vote
0answers
208 views

Radiosity using a hemisphere

I'm working on a radiosity processor. I'm projecting scene geometry onto a hemisphere at a high order of tessellation during a visibility pass onto a 1024x1024 render target. The problem is that the ...
1
vote
0answers
829 views

How do I mix 3D skeletal animations?

I'm trying to create a 3D-model skeletal animation system for C++/Open GL. I would like to be able to mix animations by allowing animations to only affect specific bones. My game has ride-able ...
1
vote
0answers
548 views

Bullet Physics Simulation Running Slow

I'm in the process of converting my game engine from java which used the LWJGL and JBullet to c++. However, when I was implementing Bullet physics my simple simulation of a box dropping from specified ...
1
vote
0answers
288 views

Rotate a point in 3D space with sine and cosine

I got my camera controlled by the mouse. Now I want a sphere to be always in the center of my view(just for testing). I tried that by assigning the sine of the Y rotation of the camera times 10 as the ...
1
vote
0answers
220 views

Box Zoom - Fit to rectangle

I want to box select a section of my screen and then zoom in that selection. So I have four corner points (my rectangle which I can drag with the mouse) in pixel coordinates. I have a perspective ...
1
vote
0answers
1k views

Creating a new GLFW window and re-using the old context causes crash

I am using GLFW 3.0.2 and when I want to switch the application to fullscreen, I create a new window and intend to use the OpenGL context of the old window so I don't have to reload all the meshes, ...
1
vote
0answers
298 views

GLX/X11 Changing the rendering resolution

I have made a simple application that creates a window with an OpenGL 4.2 context and takes user input. I have implemented making the window go fullscreen with XRandR and can change the display ...
1
vote
0answers
429 views

2D Camera transformation sidescroller

i am currently trying to dive into 2D programming with DirectX, especially bulding a tile based sidescroller. I have worked with some chapters from a book (Advanced 2D Game Development) but always ...
1
vote
0answers
193 views

OpenSceneGraph, multiple instances of a model

Im working on my first project using OpenSceneGraph. The project is a model flight simulator for one of my university courses, I want to be able to load airplanes (consisting of multiple models) and ...
1
vote
0answers
385 views

Why is my XInput gamepad press stamp not working?

I'm trying to add basic gamepad input to my c++ DirectX game but i'm having some trouble creating a press stamp (registers the press only the first time it's pressed if button held down). The entire ...
1
vote
0answers
195 views

Masking a CCLayer

I have a CCLayer (itemLayer) that has a bunch of CCMenuItemImage (itemButton) objects in it placed vertically in a column. These itemButton objects go way past the bounds of the screen and the ...
1
vote
0answers
175 views

IwGame (Marmalade): Does CIwGameSprite support SVG? How?

I have a small question about Marmalade IwGame engine. Does the CIwGameSprite support SVG (I've read that yes it does) If it does support SVG, how does it handle it, Does it convert that Vector ...
1
vote
0answers
369 views

Sketchy results from ray-plane intersection code

I've set up a demo with simple first-person controls using C++ and OpenGL, and it seems to work reasonably well. My goal is this: when the player looks at a plane and clicks the left mouse button, ...
1
vote
0answers
244 views

Help with Windows RawInput

I am having some trouble to receive and interpret mouse movement data from RawInput. Generally mouse input seems to work, I can query mouse buttons and receive updates of mouse movement. The problem ...
1
vote
0answers
263 views

UDK and Protocol Buffers

Actually two questions: Can I use TCP sockets in UDK to implement my own networking protocol? (I guess TCPLink is an answer) Is there any way I can user Protocol Buffers inside UDK? Or anything like ...
1
vote
0answers
670 views

Algorithm for potential fields

Rather than computing potential fields in a grid and performing a lookup for them, I've decided to query the potential fields at a given point in 3D space by simply querying all the objects in a ...
1
vote
0answers
618 views

Joint constraints in PhysX

I'm trying to use PhysX for my physics engine. I'd like to use spherical joints, but I'm having trouble with the constraints. All of the examples that I've found refer to SDK v2.8. I'd like to ...
0
votes
0answers
17 views

Cocos2d - update() cannot acces child object

I'm writing simple game in c++ using cocos2d. I created 2 objects of class Physicist in my HelloWorld class and I added them as child nodes. In update() function of HelloWorld class I'm trying access ...
0
votes
0answers
21 views

Bullet Physics: 2dArray into Collisionshape

I'm fairly new to bullet physics and I am wondering how to make a collisionshape out of an 2dArray(x,y) with height informations. I figured out I have to use either btBvhTriangleMeshShape or ...
0
votes
0answers
18 views

rendering moving terrain using midpoint displacement algorithm in sdl

This is in addition to the question I asked over here. midpoint displacement algorithm in sdl. The answer there helped me but I am facing another problem regarding the moving part. The terrain ...
0
votes
0answers
48 views

Resolving 2D AABB collision problem

I'm adapting the collision resolution code from learnopengl.com for my own engine and since this my first time doing this, I have a problem with how the player position is being modified by the ...
0
votes
0answers
36 views

sphere to sphere interpolation

I am at the moment trying to come up with an scheme that interpolats between a current state and a desired state. Each state consist of an 3d coordinate and a rotation matrix, orienting an camera ...
0
votes
0answers
91 views

Problem with a TinyOBJLoader Renderer

I was working on implementing a renderer for SYOYO's tiny obj loader and when it came to testing time, it failed to render. Here is an image of the result: I believe that i have made the error with ...
0
votes
0answers
19 views

cocos2d c++ Collision between edge physics bodies

I'm working on a game with cocos2d, need to detect collision between two PhysicsEdgeBody. I've created an EventListener for contact and added it to the layer i'm working on, PhysicsContact and ...
0
votes
0answers
12 views

Update constraint pivot position in world space in Bullet Physics

The task is: we have N rigid bodies connected with each other by point-to-point constraint. In every frame we have new position of point where first rigid should be attached in world space. How to ...
0
votes
0answers
34 views

Box2D + SDL - Weird body positions

I'm having a problem where either my sprite, or my body position is off. Here's a picture so you can see exactly what's going on : (The box has stopped on the picture, probably because it's colliding ...
0
votes
0answers
41 views

3d rotation of a cube using DirectX

I can't solve an apparently simple problem: i have a cube, similar to the one in the following picture I've tried to write a small demo where i can rotate the cube by dragging the mouse, but i can'...
0
votes
0answers
33 views

Defining camera/view space

Im working on expanding my camera class, but having trouble defining camera/view space in the manner of this diagram: What Im trying to achieve is to define the camera as a true object much like a ...
0
votes
0answers
61 views

Weird Collisions in ODE

I'm trying to get a basic OBB/OBB Collision System working. For this I use ODE. My problem is: Whenever I use the dSpaceCollide and pass in my Space and my Callback, my Callback shows me, that a ...
0
votes
0answers
14 views

Config SFML in QTCreator with file.pro

I know that are a method with cmake , but i wouldlike config my project in Qtcreator usinig qmake and my doubt is what my file .pro must have for work it ?. I will run in windows , maybe later linux . ...
0
votes
0answers
28 views

OBB Collision Intersection Problem

I'm trying to create OBB's around objects and then collide them using DirectX 11 and C++. It all works fine until I rotate one (or more) of the boxes and then the collision detection returns true too ...
0
votes
0answers
42 views

OBB/OBB Test in OZCollide

I want to know if anybody, who tried OZCollide (http://www.tsarevitch.org/ozcollide/), knows whether OBB vs. OBB Tests are possible or not. I know there is a AABB vs. OBB function but I can't find one ...
0
votes
0answers
15 views

Unreal Engine Physics creation is slower in Editor

I just figured out that when UPrimitiveComponent::CreatePhysicsState() is called, it calculates the mass, but only in editor, also when i build for non-editor it is faster (standalone) this is not ...
0
votes
0answers
55 views

vertex shader doesn't work properly

Linux, OPenGL 3.0, GLSL 130 (Intel card) I'm learning OpenGL and successfully rendered a triangle, but as soon as I create the matrix of projection I get an error. The shader compiles and works ...
0
votes
0answers
17 views

Fbx Importer/exporter groups

I want to create Groups (empty transforms in a Scene Graph) but i find no documentation on how to go about it, to create a fbx loader which can create groups or show the different objects in that ...
0
votes
0answers
23 views

Box2d capsule stumbles on ground

I am working on a game with box2d and sdl. I Created a character and some boxes as ground, but faced the problem where the character would run a few meters, and stumble on one of the boxes' edge. I ...
0
votes
0answers
31 views

Jumping to tiles in y coordinate before displaying all tiles in x?

I am learning how to load in tile maps and I have successfully done so, sort of. The problem is that the program is jumping to the tiles in the y coordinate before displaying all the tiles in the x. ...
0
votes
0answers
80 views

Boost vs cereal for Serialization

I am preparing to make a simple 3D game with OpenGL and one thing that came up pretty quickly was storing the required data. If I recall correctly, Java has a class called "ObjectWriter" which ...
0
votes
0answers
34 views

Non-real time simulation of overlapping repulsive balls

I want to make a non-real time simulation of overlapping repulsive balls, initially in 2D and later in 3D. With "non-real" I mean that rendering is not needed after each time step. First of all, ...
0
votes
0answers
41 views

C++ render Umlaute with Spritefont

I have a SpriteFont-Class and with that I render text to my game. Now my problem is, that it doesn't render Umlaute like ä, ü, ö, ß... Because I am German it is very important, that I can render these ...
0
votes
0answers
32 views

Methods to load .fbx using FBX SDK in binary data chunk

I am trying to acquire model information from .fbx in binary data chunk to see if loading time can be faster than regular accessing. For this purpose, I found a sample called "My Own Reader/Writer" ...
0
votes
0answers
27 views

Why does Intel Graphics Monitor crash after I set a depth stencil state in my Direct3D 11 application?

I'm programming a managed Direct3D 11 application with SlimDX. I want to use Intel Graphics Monitor to capture draw calls for a single frame. When I try to set a depth stencil state my application ...
0
votes
0answers
17 views

Cocos2dx : Lua with C++: lua_pcall closing my app

I'll try to explain what is happening with my current project: I want to make some custom scripts myself without using the lua script engine from cocos2dx, so I linked lua51.lib on Linker->Input, and ...
0
votes
0answers
64 views

Doing camera shake together with culling isometric tiles

Following this question, I've tried to do camera shake together with culling the tiles to no avail. The base code for camera shake is from this question. This is the code that I tried but failed ...
0
votes
0answers
34 views

Screen Size 2D Gameboard Background

I am trying to get the screen size of the current monitor and then render the game board to match the screen orientation but currently I am scaling the game board to a larger size which not the best ...
0
votes
0answers
45 views

Why won't my object go 3D DirectX11?

I am trying to make a 3d mesh within my code. For some reason it looks deformed, which makes no sense because I specified the vertices correctly I am pretty sure. Also sorry that I am posting loads of ...
0
votes
0answers
22 views

Pleats and folding

We have a C++ module that produces mesh dynamically and simulates it with a physics engine. We want pleats on the surface of our mesh, pleats that remain sharp and folded during simulation while ...
0
votes
0answers
88 views

C++ timer for game loop(consistency across machines)

sorry I have been searching for ages and can't seem to get a good answer that I can understand, I am trying to make a game in my universities TL engine, and I can create a timer class fine, but I'm ...
0
votes
0answers
30 views

Open gl blending problem c++

im creating project from nearly scratch in c++.. i created skybox and terrain . the result is catastrophic ! the terrain goes away and the ground also goes away,i dont know why ! i tried to disable ...
0
votes
0answers
85 views

How can I improve my ray casting algorithm

So I finished coding this ray casting algorithm in C++ and I feel like it could be improve, despite that, I believe that it is really good since it is coded using SFML. Here is the algorithm in C++ ...