Keet
Advanced Member
Netherlands
Joined: Apr 8, 2022
Post Count: 1248
Status:
Offline
|
|
Re: A dash [-] in material names is invalid
|
Maybe I was too severe and I should accept dashes too? Anyway, note that from version 4.0, it's possible to use spaces in material names. I usually use underscores, it was a coincidence that I used a dash and ran into the problem. What I really don't like is spaces in material names. I will never use it.
The problem is retaining compatibility with other programs that export/import OBJ/MTL files. For full compatibility you are almost forced to implement the full capabilities according to the specifications. The given advise would still remain but import from a different source would not cause problems in Sweet Home 3D.
Some good practice rules for users that create their own models (personal preference, YMMV): 1. Follow the naming advise for using only "a-z,0-9,underscores(,dashes), particularly, never use accentuated characters. 2. Always name objects and materials in English, by default. English also has the advantage that it uses few to none accentuated characters. In a furniture library you can add translation files for other languages. It keeps your models more accessible for users that don't understand your language. This also helps with using accentuated letters, the translation is only used for display in the user interface so there is no problem with using accentuated letters. 3. Keep names as short as possible while they remain descriptive. If necessary a longer name is better than a name that makes no sense. 4. Even if allowed, never use spaces in names. 5. Use (upper) Camel Casing (Pascal Casing) for names: the first letter of each word as a capital: "BodyColor", "LeftHandSide". In many cases this avoids having to use underscores, dashes, or spaces which keeps the name shorter. 6. Don't use material names that are too specific. "Red" only makes sense for a material if the material will always be the color red. For the hot/cold colors on a faucet you can use "Red" and "Blue", for the body of a car not. 7. If you have multiple object or material names with an increasing number make sure that all numbers are equal in length if they go beyond 9: pad-left with a 0. This will ensure that the display in the catalog and materials list follows the correct number order. Without the left-padding the order will look like 1, 11, 12, ..., 2, 21, 22. Optionally use an underscore to separate the number from the word(s).
----------------------------------------
Dodecagon.nl 950+ 3D models, manuals, and projects
|
[Jun 6, 2024, 1:21:59 PM]
|
|
[Link]
|
|