yes/no in .material and on/off in .particle

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
cdleonard
Goblin
Posts: 266
Joined: Thu May 31, 2007 9:45 am

yes/no in .material and on/off in .particle

Post by cdleonard »

I've discovered today that particle scripts accept yes/no and true/false for booleans; while materials accept on/off and true/false. Furthermore in a .particle script something like "point_rendering on" is not recognized and silently converted to false.

This is very very confusing. A limitation to true/false would be ideal but it would break older scripts. I suggest supporting the full range yes/no true/false on/off everywhere. This would eliminate a very unpleasant detail.

This should be a very easy fix and I'm willing to make patch. What do you think?
User avatar
Frenetic
Bugbear
Posts: 806
Joined: Fri Feb 03, 2006 7:08 am

Post by Frenetic »

Perhaps 0 / 1 should be supported as well?
User avatar
Praetor
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3335
Joined: Tue Jun 21, 2005 8:26 pm
Location: Rochester, New York, US
x 3
Contact:

Post by Praetor »

In the new compilers truth values support what you suggest: yes/no, on/off, and true/false in all scripts.
Game Development, Engine Development, Porting
http://www.darkwindmedia.com
User avatar
cdleonard
Goblin
Posts: 266
Joined: Thu May 31, 2007 9:45 am

Post by cdleonard »

By new compilers you mean what will be released in ogre 1.6? That would be great.
User avatar
Praetor
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3335
Joined: Tue Jun 21, 2005 8:26 pm
Location: Rochester, New York, US
x 3
Contact:

Post by Praetor »

The plan is to release them with 1.6 yes.
Game Development, Engine Development, Porting
http://www.darkwindmedia.com
Post Reply