LDraw.org Discussion Forums
0 !NOSUBSTITUTE Meta Command - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html)
+--- Thread: 0 !NOSUBSTITUTE Meta Command (/thread-26714.html)



0 !NOSUBSTITUTE Meta Command - Max Murtazin - 2022-10-01

I have noticed that in some cases parts might fall apart when primitives being substituted in those with high-resolution versions. For preventing that from happening, I suggest including a meta command "NOSUBSTITUTE". What I intend, is that when put it before primitive of standard resolution, it would force that primitive to always be rendered as the standard resolution one, no matter the settings, similar to how 8\ and 48\ primitives behave, ensuring that part would appear normal no matter the settings. 

This command would be useful because it works with sphere primitices in a fine way, unlike ndis, which would only close mesh gaps, not make shape flow properly


RE: 0 !NOSUBSTITUTE Meta Command - N. W. Perry - 2022-10-02

(2022-10-01, 21:55)Max Murtazin Wrote: I have noticed that in some cases parts might fall apart when primitives being substituted in those with high-resolution versions. For preventing that from happening, I suggest including a meta command "NOSUBSTITUTE". What I intend, is that when put it before primitive of standard resolution, it would force that primitive to always be rendered as the standard resolution one, no matter the settings, similar to how 8\ and 48\ primitives behave, ensuring that part would appear normal no matter the settings. 

This command would be useful because it works with sphere primitices in a fine way, unlike ndis, which would only close mesh gaps, not make shape flow properly

I like the idea, as it would prevent the most egregious example of this problem, where flat minifig faces don't match the curve of the head subfile.

At the same time, I would also love to see a movement toward eliminating the problem altogether, by defining any geometry as either flat or curved and letting the displayed curve resolution be determined either automatically by the software tool, or manually by the end user.

But of course, that's a little more than you asked. Wink


RE: 0 !NOSUBSTITUTE Meta Command - Roland Melkert - 2022-10-02

(2022-10-01, 21:55)Max Murtazin Wrote: I have noticed that in some cases parts might fall apart when primitives being substituted in those with high-resolution versions. For preventing that from happening, I suggest including a meta command "NOSUBSTITUTE". What I intend, is that when put it before primitive of standard resolution, it would force that primitive to always be rendered as the standard resolution one, no matter the settings, similar to how 8\ and 48\ primitives behave, ensuring that part would appear normal no matter the settings. 

This command would be useful because it works with sphere primitices in a fine way, unlike ndis, which would only close mesh gaps, not make shape flow properly

Instead of adding a specific meta for this, I would suggest introducing a general hint system instead.

For example:

0 !HINTS NOSUBSTITUTE

I use something something similar in LDCad (shadows), namely:

0 !LDCAD HINTS [binOri=-1 0 0 0 1 0 0 0 -1] [fakeSeam=no]


RE: 0 !NOSUBSTITUTE Meta Command - Max Murtazin - 2022-10-02

(2022-10-02, 19:30)Roland Melkert Wrote: Instead of adding a specific meta for this, I would suggest introducing a general hint system instead.

For example:

0 !HINTS NOSUBSTITUTE

I use something something similar in LDCad (shadows), namely:

0 !LDCAD HINTS [binOri=-1 0 0 0 1 0 0 0 -1] [fakeSeam=no]

So, what could be other useful hints?