OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Linux Material Scripts Parsing
View page
Source of version: 4
(current)
If you're running Ogre on a linux platform, you may see the following error messages when loading ''*.{LEX()}material{LEX}'' scripts : {CODE(wrap="1")}Compiler error: invalid parameters in WoodBall.material(8): ambient requires 3 or 4 colour arguments, or a "vertexcolour" directive Compiler error: invalid parameters in WoodBall.material(9): diffuse requires 3 or 4 colour arguments, or a "vertexcolour" directive Compiler error: invalid parameters in WoodBall.material(10): specular must have first 3 arguments be a valid colour Compiler error: invalid parameters in WoodBall.material(11): emissive requires 3 or 4 colour arguments, or a "vertexcolour" directive{CODE} The reason is that the parsing of ''*.material'' files depends on some environment variables related to the locale settings. Your LC_ALL variable may be defined with the value of your locale. You just have to unset LC_ALL, to set LC_NUMERIC to C and the other ones with your locale settings. Here is an example for a french programmer (fr_FR) who uses the UTF8 charset : {CODE(wrap="1", colors="bash")}$ env | grep -E "(LANG|LC)" LC_NUMERIC=C LC_ALL=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8 LC_COLLATE=C LANG=fr_FR.utf8 LANGUAGE=fr_FR $ unset LC_ALL $ env | grep -E "(LANG|LC)" LC_NUMERIC=C LC_ALL=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8 LC_COLLATE=C LANG=fr_FR.utf8 LANGUAGE=fr_FR $ running/your/program/is/now/ok{CODE}
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
124 online users