Page 1 of 1

Ogre parse Exceptions

Posted: Wed Mar 26, 2008 8:46 pm
by 1337
Ogre.log reveals that there are 3 Exceptions while parsing the resources.

The first I could fix (added program folder and added 3 files in there since they're used in Examples.program)

The next two are of the same kind. Lines 30 and 50 in Orxonox.material

scene_blend 0.5 0.5 // --> invalid

valid arguments are: add, modulate, alpha_blend, colour_blend
(source: http://www.ogre3d.org/docs/manual/manual_16.html#SEC41)

I would've taken the alpha_blend since that's what's being used else in this file. But what could've possibly been meant with 0.5 0.5 ?

Posted: Wed Mar 26, 2008 9:59 pm
by beni
Must be some values or parameters for the blend. From whom is this file anyway? Maybe this is the cause for the problems with the media on some machines.

Posted: Wed Mar 26, 2008 10:07 pm
by 1337
Ogre seems to just 'throw away' such errors, but you never know...

about the author: I have no idea.

Posted: Wed Mar 26, 2008 10:37 pm
by beni
According to SVN the file was last changed at r790 and last edited at r661 both times by nico.

The changes on line 30 and 50 have been made at r588 by... me. Great :D.

Surely this is the stuff from Superegg for the HUD. We gotta ask him what this means.

Posted: Wed Mar 26, 2008 10:46 pm
by 1337
We could simply replace it with alpha_blend, or whatever seems to fit...

edit: I replaced the numbers with colour_blend for now.
That at least doesn't trigger any exceptions in Ogre.