LDraw.org Discussion Forums
1-16chrd, an interesting idea... - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html)
+--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html)
+--- Thread: 1-16chrd, an interesting idea... (/thread-14500.html)

Pages: 1 2 3 4 5 6


Re: 1-16chrd, an interesting idea... - Philippe Hurbain - 2014-11-09

You have a point, but this is not a viewer specific trick, but a feature specific one. Any program that performs primitive substitution should behave correctly.


Re: 1-16chrd, an interesting idea... - Santeri Piippo - 2014-11-09

I'd imagine any viewer with smooth shading would've also benefitted from the extra conditional lines too. I see where you are coming from though.


Re: 1-16chrd, an interesting idea... - Philippe Hurbain - 2014-11-09

Not exactly, that's a problem with LDView implementation, as explained here by Travis.


Re: 1-16chrd, an interesting idea... - Santeri Piippo - 2014-11-09

Ah, alright then. Thanks for clarifying, carry right on.


Re: 1-16chrd, an interesting idea... - Chris Dee - 2014-11-09

Hmm. If I open this in LDView (4.1) it is a little confused because the tree view shows:
3 16 0 0 0 0 0 0 0 0 0
3 16 0 0 0 0 0 0


Re: 1-16chrd, an interesting idea... - Steffen - 2014-11-22

can we construct a condline whose condition is always false?

this would be IMHO the least problematic way of getting rid of this problem,
because I fear that zero sized triangles, lines or quads always produce 1 dummy pixel and/or
a math crash in other programs (when these e.g. try to compute normals or similar).

if they are programmed without catching this special case, they can crash or make other undefined bad things.
of course, such flaws are comparable to MLCad's.

I'm not happy to see that we have to workaround a nearly trivial MLCad bug here which could be fixed with a single line of code...


Re: 1-16chrd, an interesting idea... - Steffen - 2014-11-28

is this maybe a solution? a conditional line which is never visible? isn't this one such?:
5 24 0 0 0 10 0 0 5 -10 0 5 10 0


Re: 1-16chrd, an interesting idea... - Philippe Hurbain - 2014-11-28

well, one problem is that it shows when all condlines are displayed. A bit nnoying for debug.


Re: 1-16chrd, an interesting idea... - Steffen - 2014-12-04

yeah, but I consider that a smaller issue than having a zero size triangle or line or quad because that always will show as 1 pixel.

the condline however will only be visible during debugging which is a special case.


Re: 1-16chrd, an interesting idea... - Philippe Hurbain - 2014-12-05

Yeah, seems workable. Your BIG condline does show prominently in MLCad (though it should not), but a very short one does not
Code:
5 24 0 0 0 0.0001 0 0 0.0001 -0.0001 0 0.0001 0.0001 0