resource.cfg runtime errors

DemonGithara

28-07-2010 15:10:15

The OgreBullet Tutorial 1 says:
NOTE: If you want to Compile/Run the OgreBullet demos supplied with OgreBullet and it can't find resources.cfg don't wonder. This tutorial is not about these demos but I think you can solve it yourself. There are some problems with paths :-)

I have tried repeatedly as a new Ogre user to setup OgreBullet with Ogre and Bullet, and had to move a lot of media files around, search through the code for references to resource groups, search through google for user error reports or help inquires, and had to edited my resource.cfg so that it would not crash when executing the Dynamics Demos "OgreBulletDemos.exe." I needed to make several edits; having problems with it not finding "target.material" and so on. Now I do not get crashes at runtime anymore, but the resource.cfg problems are not resolved entirely. I cannot see any of the textures, only gray / glitchy forms of geometry, but I do see the physics happenings, and the gui displaying helpful messages. This is because of the path problems, but I am having significant trouble figuring it out. I also needed to download a "OgreCore.zip" and add that through the path, because of compatibility of depreciated files, and that was certainly not obvious from my standpoint.

I would like any suggestions or instructions that would lead to me solving the runtime errors with OgreBulletDemos.exe, thanks

DemonGithara

28-07-2010 17:56:49

This thread had eluded my searches:

Help Getting Started
http://www.ogre3d.org/addonforums/viewtopic.php?f=12&t=12653


[Bootstrap]
Zip=/media/sda7/Libraries/OGRE/ogre-v1-6-4/Samples/Media/packs/OgreCore.zip

[Bullet]
FileSystem=../Demos/Media/materials/programs
FileSystem=../Demos/Media/materials/scripts
FileSystem=../Demos/Media
FileSystem=../Demos/Media/fonts
FileSystem=../Demos/Media/textures
FileSystem=../Demos/Media/materials
FileSystem=../Demos/Media/models
FileSystem=../Demos/Media/overlays

[OgreBulletCollisions]
FileSystem=../Demos/Media/gui


I guess that is a clue to get some sleep :roll:

The textures are now displaying with some of the demos with the more complete [Bullet] resource group, but not all of them and I get weird graphic artifacts, which looks like z-fighting. I get to see the cool buggy textured, but the terrain isn't displaying its textures on 2 of the demos so far.
The article does mention this though:
The terrain demo won't run without the media from Ogre1.6.x.

So I will get those media files and see if that helps. If anyone may like to offer any further support info on getting the demos started it would be appreciated, thanks.

DemonGithara

28-07-2010 18:59:27

Okay so that didn't help much at all. The terrain demo does display textures on the terrain and buggy, but the ramps and shoot-able blocks display with the z-fighting. Looks cool anyway. The ragdoll demo shows nothing except gui and a black screen, the first and second demos have weird texture glitches on every object making them too glitched to demonstrate physics. The vehicle demo looks like the terrain demo, except the terrain doesn't display textures. The Constraint demo only shows a black screen and gui like the ragdoll demo, but also show green lines after clicking around, and pressing the WASD keys makes the green lines move around a bit.

I suppose a lot of this code is salvageable with the way the project files are set up now,, but I'd still like some help on getting it to work 100% so I can experiment with the code.

dermont

28-07-2010 19:32:40

Okay so that didn't help much at all. The terrain demo does display textures on the terrain and buggy, but the ramps and shoot-able blocks display with the z-fighting. Looks cool anyway. The ragdoll demo shows nothing except gui and a black screen, the first and second demos have weird texture glitches on every object making them too glitched to demonstrate physics. The vehicle demo looks like the terrain demo, except the terrain doesn't display textures. One of them, (I forget which one), only shows a black screen and gui like the ragdoll demo, but also show green lines after clicking around, and pressing the WASD keys makes the green lines move around a bit.

I suppose a lot of this code is salvageable with the way the project files are set up now,, but I'd still like some help on getting it to work 100% so I can experiment with the code.


For one of the demos you could try updating the material file.
viewtopic.php?f=12&t=12197

From memory I'm think the other glitches you reported were resolved by similar updates to the relevant material files or by commenting out the following code in OgreBulletListener.cpp.


/******************* CREATESHADOWS ***************************/
#ifndef _DEBUG
..
#endif // _DEBUG


The ragdoll demo just doesn't work.

DemonGithara

28-07-2010 19:35:14

Thanks Dermont XD, I will have a look at this and see what can be done.

*EDIT: After editing OgreBulletListener.cpp the TriMesh demo works well, except for the throwable primitives, which display the z-fighting, but no big deal. The editing of the .material files by including "lighting off" didn't seem to change anything, even after including it every pass and in all of them. Regardless, It is very helpful to have these working, so thanks again XD

Fish

29-07-2010 04:21:15

If someone could post a patch to the tracker I'll make sure it gets updated.

- Fish