[split] Teemu's Part Checker


[split] Teemu's Part Checker
#1
(2019-06-16, 9:06)Steffen Wrote: yes please.

we have brought the BFC-problematic files to nearly 0 now.

just a small handful of "weird relicts" are remaining:
https://www.ldraw.org/cgi-bin/ptbfcstatus.cgi

I suggest to delete all of them from the PT:
- one is a "minifig torso + head" physical shortcut assembly which - if we would add these combinations to the library - would make the library size explode due to the possible combination
- the others are mockups which have no visual resemblence with the parts they mimick and are waiting unfinished for years now on the PT.

All now deleted.
Chris (LDraw Parts Library Admin)
Reply
RE: What requires a HOLD vote on the Parts Tracker
#2
(2019-06-16, 4:31)Chris Dee Wrote: Go ahead. Could the non-BFC column be removed, as we expect everything tpo be BFC these days?

I have removed the non-BFC column, but not checked for compatibility with the new agreement.
Chris (LDraw Parts Library Admin)
Reply
RE: What requires a HOLD vote on the Parts Tracker
#3
(2019-06-24, 7:34)Santeri Piippo Wrote: "Filename ending does not match declared LDRAW_ORG file type.": what does this mean? How do filename endings correlate with LDRAW_ORG file type? I guess subfiles have 's01' and so on but other than that I don't really get it.
"Filename ending does not match declared LDRAW_ORG part type qualifier." likewise...?
I think this means the file is .ldr instead of .dat when LDRAW_ORG indicates it's a part.


(2019-06-24, 7:34)Santeri Piippo Wrote: "Wrong BFC command found." What is a wrong BFC command?
Illegal combination of meta keywords.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#4
(2019-06-24, 7:34)Santeri Piippo Wrote: "T-Junction detected." T-junction detection can be very difficult to implement and only a small minority of T-junctions are actual problems. Do we really want to automate this?
T-Junctions can cause seams during rendering so I would prefer them gone Smile

Detecting them could be done by checking if vertices are near triangle/quad side lines without being part of that polygon.

This might need to include full recursive mesh data so it can check on the assembled part level.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#5
(2019-06-24, 17:39)Roland Melkert Wrote: T-Junctions can cause seams during rendering so I would prefer them gone Smile
May I say I don't agree (at all!!!)? Most so called T-junctions never produce artifacts and can significantly reduce the number of faces to render!!!
Reply
RE: What requires a HOLD vote on the Parts Tracker
#6
(2019-06-24, 7:34)Santeri Piippo Wrote: "HELP entry length":

 It should trigger a warning because of readability. If this text would end up in just one line it get's harder reading it

w.
LEGO ergo sum
Reply
RE: What requires a HOLD vote on the Parts Tracker
#7
(2019-06-25, 6:45)Philippe Hurbain Wrote: May I say I don't agree (at all!!!)? Most so called T-junctions never produce artifacts and can significantly reduce the number of faces to render!!!

It partly depends on the size of the polygons but it can really cause seams due to rounding errors.

This because the rasterizer doesn't guarantee the calculated final position of the projected vertex is (still) exactly on the companion polygon's side. This can cause a single pixel offset resulting in a seam.

See also:
https://computergraphics.stackexchange.c...-in-cracks

It can also upset normal calculations, because weird jumps in smoothness could occur if the two t-juncted polygons aren't on the same plane.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#8
(2019-06-25, 17:24)Roland Melkert Wrote: It partly depends on the size of the polygons but it can really cause seams due to rounding errors.

This because the rasterizer doesn't guarantee the calculated final position of the projected vertex is (still) exactly on the companion polygon's side. This can cause a single pixel offset resulting in a seam.

See also:
https://computergraphics.stackexchange.c...-in-cracks

It can also upset normal calculations, because weird jumps in smoothness could occur if the two t-juncted polygons aren't on the same plane.

Ok, but take this part for example:

https://www.ldraw.org/cgi-bin/ptdetail.c...004p0d.dat

If I got rid of T-Junctions, there would a huge amount of small, thin triangles around the border.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#9
(2019-06-25, 17:55)Orion Pobursky Wrote: Ok, but take this part for example:

https://www.ldraw.org/cgi-bin/ptdetail.c...004p0d.dat

If I got rid of T-Junctions, there would a huge amount of small, thin triangles around the border.

That part doesn't seem to suffer from the problem indeed, but it has only 4 quads introducing t-junctions (the side frame).

So it would only need 14+14+4+4=36 extra quads to be completely t-junction free.

But in the end it's all on a very small surface so you might be right about it not be 'worth' it for such parts.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#10
(2019-06-25, 17:24)Roland Melkert Wrote: It partly depends on the size of the polygons but it can really cause seams due to rounding errors.

This because the rasterizer doesn't guarantee the calculated final position of the projected vertex is (still) exactly on the companion polygon's side. This can cause a single pixel offset resulting in a seam.

See also:
https://computergraphics.stackexchange.c...-in-cracks

It can also upset normal calculations, because weird jumps in smoothness could occur if the two t-juncted polygons aren't on the same plane.
I know the rationale behind that, I just say that if you SEE no problem, then there IS no problem having T-junctions. And actually it's fairly rare you see artifacts (at least in planar surfaces)
Reply
RE: What requires a HOLD vote on the Parts Tracker
#11
(2019-06-25, 18:36)Philippe Hurbain Wrote: I know the rationale behind that, I just say that if you SEE no problem, then there IS no problem having T-junctions. And actually it's fairly rare you see artifacts (at least in planar surfaces)

This is actually my philosophy for almost the entire HOLD list: an unnoticed error is not an error. I reiterated it several times when we were discussing it.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#12
(2019-06-25, 18:28)Roland Melkert Wrote: That part doesn't seem to suffer from the problem indeed, but it has only 4 quads introducing t-junctions (the side frame).

So it would only need 14+14+4+4=36 extra quads to be completely t-junction free.

But in the end it's all on a very small surface so you might be right about it not be 'worth' it for such parts.

Actually, the T-Junctions in that part do produce visible artifacts (at least in LDView on some hardware):

[Image: weOokCY.png]

At many viewing angles, there are no artifacts, and I had to very slowly rotate to get to a viewpoint where three were visible at once, but at least one was commonly visible.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#13
(2019-06-25, 18:36)Philippe Hurbain Wrote: I know the rationale behind that, I just say that if you SEE no problem, then there IS no problem having T-junctions. And actually it's fairly rare you see artifacts (at least in planar surfaces)

As I point out above, the problem exists. Granted, my screenshot was an unusual situation, where the part is zoomed in quite far, but since the artifacts on T-junctions are pseudo-random, they scale based on the total number of pixels that are in the scene that happen to lay on a boundary where T-junctions exist. So, if the above part were used repeatedly in a scene, but each one were quite small in the view, it's still likely that the T-junctions would lead to a similar number of incorrectly colored pixels. On average, the number of incorrectly colored pixels might be less than 1 (so none visible in many frames), but they would flicker into existence during animation.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#14
(2019-06-25, 18:52)Orion Pobursky Wrote: This is actually my philosophy for almost the entire HOLD list: an unnoticed error is not an error. I reiterated it several times when we were discussing it.
Heartfully, isotropically and continuously agree!
Reply
RE: What requires a HOLD vote on the Parts Tracker
#15
(2019-06-25, 20:44)Travis Cobbs Wrote: As I point out above, the problem exists.
Yes it does but...
Quote:Granted, my screenshot was an unusual situation,
...add in some antialiasing, and it becomes next to impossible to see, even in this pathological view case!
Reply
RE: What requires a HOLD vote on the Parts Tracker
#16
(2019-06-26, 6:30)Philippe Hurbain Wrote: Yes it does but...
...add in some antialiasing, and it becomes next to impossible to see, even in this pathological view case!

Just to clarify, I don't feel that T-junctions should trigger a hold. However, I do feel that every effort should be made to avoid them (even in the example given).
Reply
RE: What requires a HOLD vote on the Parts Tracker
#17
(2019-06-24, 7:34)Santeri Piippo Wrote: I had some time to work on the checking tool and I put up a new version up at the usual location

Teemu,

any idea how this can be integrate into ldraw.org o is a link in the PT Tools enough?

w.
LEGO ergo sum
Reply
RE: What requires a HOLD vote on the Parts Tracker
#18
(2019-06-25, 8:14)Willy Tschager Wrote: [*]
0 BFC CERTIFY INVERTNEXT

w.
There's a separate entry in the issue list for "CERTIFY INVERTNEXT".

(2019-06-25, 8:21)Willy Tschager Wrote: [*][*]

 It should trigger a warning because of readability. If this text would end up in just one line it get's harder reading it

w.
I guess that makes sense since it reads so in the spec...

(2019-06-26, 18:16)Travis Cobbs Wrote: [*][*][*]

Just to clarify, I don't feel that T-junctions should trigger a hold. However, I do feel that every effort should be made to avoid them (even in the example given).
In any case I don't think that I'm going to implement automatic T-junction detection since it seems to vary case-by-case whether it's a problem or not.

(2019-06-27, 6:46)Willy Tschager Wrote: [*][*][*][*]

Teemu,

any idea how this can be integrate into ldraw.org o is a link in the PT Tools enough?

w.
I understood that the idea was to integrate this to the parts tracker. It can be run from the command line so I think hooking it up shouldn't be such a problem. I can also put together some other interface if that is needed.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#19
(2019-06-28, 8:12)Santeri Piippo Wrote: I understood that the idea was to integrate this to the parts tracker. It can be run from the command line so I think hooking it up shouldn't be such a problem. I can also put together some other interface if that is needed.

What language is it written in? Does it run on Linux?
Chris (LDraw Parts Library Admin)
Reply
RE: What requires a HOLD vote on the Parts Tracker
#20
(2019-06-28, 9:09)Chris Dee Wrote: What language is it written in? Does it run on Linux?
It is written in Python 3, so it runs on Linux.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#21
(2019-06-24, 7:34)Santeri Piippo Wrote: I had some time to work on the checking tool and I put up a new version up at the usual location, roughly doubling the amount of detected issue types. I've attached here a table of the current implementation status of the tool:
Just made a few tries, like the speed of your tool!

Problems I found so far:
- The file name is not checked against header name field
- Got "Line 139: hairline polygon (smallest angle 0.24°) — WARNING" while hairline threshold is 0.025°
- There is currently a problem with the new parts update, checker complains about missing files included in the last update.
Reply
RE: What requires a HOLD vote on the Parts Tracker
#22
(2019-06-28, 13:48)Philippe Hurbain Wrote: Just made a few tries, like the speed of your tool!

Problems I found so far:
- The file name is not checked against header name field
- Got "Line 139: hairline polygon (smallest angle 0.24°) — WARNING" while hairline threshold is 0.025°
- There is currently a problem with the new parts update, checker complains about missing files included in the last update.

Can we spit discussion about Santeri’s checker out into a new thread?
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)