(2017-05-02, 19:46)Roland Melkert Wrote: Sounds interesting, is there an overview of the (sub) commands or is it only the 'OBI_BLACK' one for now?
Also: is this another 'take it as is or leave it' deal like it was with the texmap spec?
And how does this play with LPub(3d) as that is by far the most actual used bom spec.
The commands are:
0 !OBI SET <token>
0 !OBI UNSET <token>
0 !OBI NEXT <color> [IFSET <token>|IFNSET <token>]
0 !OBI START <color> [IFSET <token>|IFNSET <token>]
0 !OBI END
In the modified library that Joshua created, <color> is "OBI_BLACK", which needs to be present in LDConfig.ldr in order to work right in LDView. OBI_BLACK is set to true black, but could be set to other colors. When an OBI color is active, it overrides the standard color that would normally be used instead in that location. The next/start/end syntax is similar to !TEXMAP, meaning that OBI color override either happens for one single 1/2/3/4 linetype line (next), or between the begin and end.
<token> is used to allow a particular piece of OBI shading to be conditional. For example, stud.dat uses IFNSET obi_stud_cancel around the part turning the sides of the stud black. Apparently Joshua found at least one place where stud.dat was used in a situation where black sides would be wrong. (Not sure what that instance was.)
I don't think this is a "take it or leave it" deal, but changes would need rather pressing justification. Also, Joshua's modified parts library obviously uses this syntax. Unfortunately, his modified library modifies a lot more parts files than one would expect or like (~350). See here:
https://forums.ldraw.org/archive/index.p...10907.html
That 350 modified part files number also shows that this is a lot more involved than I had hoped. But it seems like a useful thing.