ogre3d

How to get a windowless application in Ogre?

Hello, I'm trying to create a windowless Ogre application, but it seems that the method RenderWindow::setVisible(false) is completely ignored by the application. Is there a way to accomplish that? Thank you Tommaso ...

3D game engine for networked world simulation / AI sandbox

More than 5 years ago I was playing with DirectSound and Direct3D and I found it really exciting although it took much time to get some good results with C++. I was a college student then. Now I have mostly enterprise development experience in C# and PHP, and I do it for living. There is really no chance to earn money with serious game ...

Enabling Direct3D-specific features (transparency AA)

Hello. I am trying to enable transparency antialiasing in my Ogre-Direct3D application, but it just won't work. HRESULT hres = d3dSystem->getDevice()->SetRenderState(D3DRS_ADAPTIVETESS_Y, (D3DFORMAT)MAKEFOURCC('S', 'S', 'A', 'A')); /// returned value : hres == S_OK ! This method is taken from NVidia's technical report. I can enable t...

3D World to Local transformation

Hello. I am having a real headache trying to set a node's local position to match a given world position. I was given a solution but, AFAICS, it only takes into account orientation and position but NOT scaling : node_new_local_position = node_parent.derivedOrientation().Inverse() * ( world_position_to_match - node_parent.derivedPositio...

Create an grid array...

Okay so I am looking to create a grided array in OGRE3D game engine but the array is generic my array skills are pretty basic and need work so I am posting this just to be sure I am doing this correctly. #define GRIDWIDTH 10 #define GRIDHEIGHT 10 int myGrid [HEIGHT][WIDTH]; int n,m; int main () { for (n=0;n<HEIGHT;n++) for (m=0;...

Is Ogre's use of Exceptions a good way of using them?

I've managed to get through my C++ game programming career so far virtually never touching exceptions but recently I've been working on a project with the Ogre engine and I'm trying to learn properly. I've found a lot of good questions and answers here on the general usage of C++ exceptions but I'd like to get some outside opinions from ...

Is there a way of combining Ogre3d's Hikari and BlazeDS?

I am trying to load a swf into an Ogre3d/Hikari application and that swf uses BlazeDS to communicate with a Tomcat server. The swf is from another project that is used in a browser environment. So, the swf is served from Tomcat to the client's browswer. It seems like there are two main issues. The first is a sandbox issue with using ...

How best to deal with warning c4305 when type could change?

I'm using both Ogre and NxOgre, which both have a Real typedef that is either float or double depending on a compiler flag. This has resulted in most of our compiler warnings now being: warning C4305: 'argument' : truncation from 'double' to 'Ogre::Real' When initialising variables with 0.1 for example. Normally I would use 0.1f but t...

Ogre3D strange behavior

I compiled Ogre on my Lubuntu 10.04 with LXDE environment, and when I try to start ./SampleBrowser_d from /bin i have incomplete window...it haven't got background, I can't click on accept and i can't choose OpenGL from avaible list..Anybody know what's it and how fix it ? Here's some screenshots: link text Any suggestions? ...

Using a 3D texture slice as a 2D texture input.

Hello, I am trying to do something with Ogre using 3D textures. I would like to update a 3D-texture by going through it slice-by-slice and recalculating the color values. However, in each step I also need to access the previous slice somehow to read the values. Setting up a slice as a render target is easy, but is it possible to feed su...

Compiling a DLL which includes Ogre3D gives an assertion error when used

Hi, I have a framework that I am building and is being compiled into a static library to be used by other projects. The library works perfectly without issues. The problem is that the link time is very long for the projects that use the library so I thought I will make a DLL project of the same framework. I started with baby steps and ...

Except OOP, what is making C++ better than C

Well that may sound like a troll question, but since C++ seems hard to fully master (and I never really knew STL was actually "part" of it), I wanted to know what are the disadvantages to use C instead of C++ when not relying much on OOP. C++ can have a very much sophisticated syntax sometimes, which is kinda confusing me while trying t...

Exception thrown when exiting program (Ogre3d)

I am getting a weird exception when I exit the program. This has started since today morning and I am ready to pull my hair out. As soon as I exit the program, visual studio gives an exception and stops at line 731 in the file crt0dat.c (see attached screenshot) I know this is very little to go on. I have tried several different things:...

How does the program flow look

Hi there, I am used to XNA like structures: LoadContent Update Draw Now based on these 3 main methods my game objects inherit from them. In XNA I as non-professional and non-game-programmer was badly forced to think in these blocks. Well add a Sprite baseClass, inherit from DrawableGameComponent. Now create the WarriorSprite class f...

Visual Leak Detector Crash

Hi, I am using Visual Leak Detector to detect memory leaks in my program. When the program has finished running, I get an assertion triggered by the following code in utility.cpp. When Visual Leak Detector's header is excluded from the program, the program runs and exits without incident. // Get the *real* address of the import. If we...

Minimum DirectX 9.0c version and how to check for it

Dear all, Our Windows C++ Ogre-based game is nearing completion. Before we publicly release it, we have to solve this matter : Ogre crashes on many test-computers if they are not updated to the latest Dx9.0c version. All these computers already had 9.0c installed, but that must have been an older OS-pre-installed sub-version, hence the...

Ogre3D engine based open source game?

I'm planning to use Ogre3d for 3d rendering to make a game prototype. Wanted to see how people use it. Does anybody know open source engine based on Ogre3d that is worth looking at? I have tried to search at sourceforge, but couldn't anything good. Thanks ...

Mesh from heightmap in Ogre3D

Hi! Using the Ogre3D engine (C++), I would like to generate a mesh from a grayscale heightmap. I know that the Terrain tools can do that but I just want a simple mesh. What would be the best way to do that? This sounds pretty basic but I can't find my way in the Ogre3d doc. Thanks! ...

Mouse disappears on code break

I am using Ogre3D and sometimes when there is a break (or an exception) and it breaks into visual studio, my mouse cursor fails to appear. This is very annoying as most of the time I have to restart the game because I cannot watch any variables when it breaks. Everything else works, just the mouse disappears and stays that way until I pr...

3d rendering of a surface from a depthmap

Hi, Using stereovision, I am producing depthmaps representing the 3d environment as viewed from a camera. There is one depthmap per "keyframe" associated with a camera position. The goal is to translate those 2d depthmaps into the 3d space (and later merge them to reconstruct the whole environment). What would be the best (efficient) w...