ogre3d

Game Engine Scripting Languages

I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was wondering if there were one or two that were vetted and had a proper following. LUA and S...

Ogre3d Local reference string popping out of nowhere

I'm building an ogre3d tutorial based on this setup http://www.ogre3d.org/wiki/index.php/SettingUpAnApplication#XCode I've followed all steps as it says. It compiled perfectly. But on run this happened: *-*-* OGRE Initialising *-*-* Version 1.6.0 (Shoggoth) Creating resource group Bootstrap An exception has occurred: OGRE EXCEPTION(7:...

Strange Ogre Error and A Non-Existant FIle

I am getting this error, I have no clue where: OGRE EXCEPTION(2:InvalidParametersException): Header chunck didn't match either endian: Corrupted stream? in Serializer::determineEdianness at f:\codingextra\ogre\shoggoth_vc9\ogre\ogremain\src\ogreserializer.cpp (line 90) I am using Visual Studio 2008. I tried to gvim the file on th...

Asynchronous screen update to gameplay logic, C++

Hello. I am programming a game using Visual C++ 2008 Express and the Ogre3D sdk. My core gameplay logic is designed to run at 100 times/second. For simplicity, I'll say it's a method called 'gamelogic()'. It is not time-based, which means if I want to "advance" game time by 1 second, I have to call 'gamelogic()' 100 times. 'gamelogic()'...

Calculating how visible an object is in a 3D-scene for use in game logic/AI

I am starting a game project which will allow characters to hide in dark areas. Hiding in a dark corner should make it harder for other characters to see you. What I need is a way to calculate how the lighting conditions are where the character is located. The ideal would be to have a double getLightFactor(GameCharacter observer, Gam...

How to use 16bit heightmaps with Ogre3d and PhysX

I'm using Ogre3D and PhysX. When I load a terrain from an 8bit height map, it looks normal on Visual Debugger. Look at first image: http://img44.imageshack.us/gal.php?g=44927650.jpg But when I save the height map as a 16bit image, I get what you see on second image. Here's the code, thats works normal with 8bit PNG: mSceneMgr->s...

Missing file halts boy's first encounter with OGRE3D!

Hey! Say - anyone attempted to setup Ogre in Eclipse on Ubuntu? I'm attempting to run through this here tutorial, it refers to a file called bootstrap in the eclipse workspace/ogreproject/ directory. This so called bootstrap is severely absent and as such my attempt has been thwarted. ...

Integrate Custom Physics Classes with OGRE 3D?

I have to use OGRE3D for a university project however, we are not allowed to use any third party libraries for Physics or collision detection. This includes using OGRE's built in collision detection. I am having some difficulty with the correct way to approach adding my own custom physics routines to OGRE's built in entities. OGRE uses...

Detect Collision point between a mesh and a sphere?

I am writing a physics simulation using Ogre and MOC. I have a sphere that I shoot from the camera's position and it travels in the direction the camera is facing by using the camera's forward vector. I would like to know how I can detect the point of collision between my sphere and another mesh. How would I be able to check for a col...

API General Questions and Choices

I've decided to start making graphical games. My language of choice is C++ and the only game I've made so far was a text based game based on Hunt the Wumpus which taught me fundamentals of game loops and robust error handling. I now think I'm going to move onto a version of Tetris. Obviously moving from text-based to graphical programmi...

How to get an output console in an Ogre project under MacOSX?

Hello, I'm working on a project using Ogre3D. We recently ported our project to MacOSX but there are some things that were linked to the Windows API. In particular I don't know how this should be translated: #if defined( __WIN32__ ) || defined( _WIN32 ) AllocConsole(); #endif It would be nice to port the project under Linux someda...

Bullet Physics - Apply Torque Impulse in Body's Local Space

Hello, I'm currently evaluating the Bullet Physics Library for a 3D space game I'm writing using C++ and Ogre3D. I've gotten Ogre3D and Bullet integrated nicely by deriving from btMotionState and plugging in my SceneNodes, but now I'm having a lot of trouble calculating what values I should pass to btRigidBody::applyCentralImpulse and b...

'Difference' between two quaternions

I'm working in Ogre, but it's a general quaternion problem. I have an object, to which I apply a rotation quaternion Q1 initially. Later, I want to make it as if I initially rotated the object by a different quaternion Q2. How do I calculate the quaternion which will take the object, already rotated by Q1, and align it as if all I did ...

How to use SDL with OGRE?

When I go to use OGRE with SDL (as described in this article), I seem to be having trouble with a second window that appears behind my main render window. Basically, the code I'm using is this: SDL_init(SDL_INIT_VIDEO); SDL_Surface *screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL); Ogre::Root *root = new Ogre::Root(); root->restoreC...

Multi-monitor 3D Application

I've been challenged with a C++ 3D application project that will use 3 displays, each one rendering from a different camera. Recently I learned about Ogre3D but it's not clear if it supports output of different cameras to different displays/GPUs. Does anyone have any experience with a similar Setup and Ogre or another engine? ...

Ogre3D Basic Framework issue on Ubuntu

I have been trying to learn to use Ogre3D and have gotten to the stage where I want to start something more serious than the examples it comes with so I found and copied the Basic Ogre Framework I am using Ubuntu 9.10, but have compiled Ogre 1.7 from the Ogre3D website, I am using the Netbeans 6.8 IDE with the c++ plugin. The Basic Ogr...

Ogre3d restoreConfig causes app to hang on Ubuntu

Building an app for Ubuntu using Ogre3D, CEGUI, OIS which is now all compiling and running as expected. Having got the basic app running I decided to now build a custom config file which I can store both graphics settings (ie. resolution, fullscreen, etc) as well as other configurable settings I will need in the app down the track. As a...

C# OGRE exception (MOGRE 0.2.0)

I've been tasked with supporting a simulator which used MOGRE 0.2.0. One of the biggest issues with the simulator is that is spontaneously crashes and thousands of message boxes popup. Has anyone seen this message before? What could be causing this exception? I haven't been able to reproduce it on demand, it seems to crash randomly. Er...

Can't modify value returned by time.time() in Python code embedded in C++

Hi, I'm facing a very strange problem. The following code: import time target_time = time.time() + 30.0 doesn't work in Python code called from C++ (embedding)! target_time has the same value as time.time() and any attempt to modify it leaves the value unchanged in a pdb console... It happens after I've called root.initialise() ...

Integrating OGRE 1.7 in Qt

...