scene

OpenGL game development - scenes that span far into view

I am working on a 2d game. Imagine a XY plane and you are a character. As your character walks, the rest of the scene comes into view. Imagine that the XY plane is quite large and there are other characters outside of your current view. Here is my question, with opengl, if those objects aren't rendered outside of the current view, do...

QGraphicsItem unselect redraw problem

Very simple Qt GUI application: On the scene I have multiple circles implemented as QGraphicsItem boundingRect returns square around this circle. Method 'shape' is not overridden. The problem appears when in paint() method I've added: if (isSelected()) { painter->drawRect(re); } Selection is drawn well, but unselection doesn'...

Cocos2d adding a background image to a layer?

Hello, I just finished reading some of the cocos2d documentation, and as far as I understand to add a background image to a layer you have to do something like: Sprite * bg = [Sprite spriteWithFile:@"Background.png"]; [layer addChild:bg z:0]; Allthough as far as my testing goes you can just directly add the sprite to the scene like t...

Scene Management - Physics library

I use a 3rd party library called physx in our engine and one of the problems I've run into is correctly settings the SolverIterationCount for actors in the scene. The SolverIterationCount is used to increase the number of iterations it take for joints to correct the error between two actors they're connected to. Because of this, you can...

Why when I render a scene with a revolving camera objects that you'd expect to appear behind others don't do that? OPENGL Objective-c

Hello, I am rendering a scene in which I have two spheres. I am revolving a camera around one of them. What happens is counter-intuitive. When the camera goes around the sphere the other gets in front of it when you'd expect it to be behind. So it appears as though the spheres aren't revolving around each other and the one the should go ...

Does anyone know of a simple yet flexible 2d scene graph in c++?

I'm searching a simple 2d scene graph written in c++, possibly on top of OpenGL but that's not mandatory: the perfect thing would be the Cocos2d/Cocos2d-iphone scenegraph in c++. Do you know of any existing implementations? ...

How to get the FPS from a JavaFX scene?

I am currently writing a small graphical performance test benchmark for JavaFX. Thus, I need to get the current FPS at which the JavaFX scene is being refreshed. So far, I haven't found a solution how to accomplish this. Does anyone know if there is some kind of event that I could use in order to get the FPS? ...

Flash CS4 Switching Scenes is not working

hi everyone I have 3 scenes and I created buttons so they would switch scenes. the bottons work. everything works correctly but my first scene stays ontop of every other scene i go to. CAN I please have help thank you ...

iphone sdk 4.1 memory leackage: may be scene replace problem (cocos2d)

I have used scheduler to return from a scene to the main menu. There is nothing in the scene page except menu. But scenes are not deallocating and memory leakage increasing as i navigate through the scenes. So application is not closing(kept running in background when close using iphone/ipod button) but crashing. Hope some of you faced ...