3D Viewer work


RE: 3D Viewer work
#51
(2020-07-13, 7:16)Magnus Forsberg Wrote: in Chrome on Andriod phone
The random colour doesn't work.
The logo button doesn't work. Toggle extreme close-up.
Displaying all parttypes.

Confirming the same issues on Chrome for Mac desktop. A hard reload (shift+reload button) solved all except that of subfiles.
Reply
RE: 3D Viewer work
#52
(2020-07-13, 14:44)Magnus Forsberg Wrote: Sorry, but I still don't get to view subfiles.

Like this one:
https://www.ldraw.org/cgi-bin/ptdetail.c...664s02.dat

Oh, ok.

That was a bug in the partID detection. It has now been fixed.
Reply
RE: 3D Viewer work
#53
(2020-07-08, 21:17)Magnus Forsberg Wrote: Could you please fix the 3D viewer on the part tracker?  For a long time now the random colour button don't do anything.

All remaining issues should now be fixed. And the stud button toggles correctly.
Reply
RE: 3D Viewer work
#54
(2020-07-17, 5:05)Orion Pobursky Wrote: All remaining issues should now be fixed. And the stud button toggles correctly.

Is it me or the 3D View is broken again? It does not work on any official file I tried. No issue with Unofficials
Reply
RE: 3D Viewer work
#55
(2020-07-18, 7:54)Vincent Messenet Wrote: Is it me or the 3D View is broken again? It does not work on any official file I tried. No issue with Unofficials

Mordern browser pretty aggressively cache items. You prolly have to force reload the page.
Reply
RE: 3D Viewer work
#56
(2020-07-13, 2:42)Orion Pobursky Wrote: ... now work correctly.

Is it just me, or didn't the chosen view stay in focus before?
As a user I want to have the zoomed in view stay in focus when I switch between random colour and normal view.
Reply
RE: 3D Viewer work
#57
(2020-07-25, 16:32)Magnus Forsberg Wrote: Is it just me, or didn't the chosen view stay in focus before?
As a user I want to have the zoomed in view stay in focus when I switch between random colour and normal view.

Im aware of the issue but solving it has stymied me for the last week or so.
Reply
RE: 3D Viewer work
#58
(2020-07-25, 17:02)Orion Pobursky Wrote: Im aware of the issue but solving it has stymied me for the last week or so.

I had some free time today and this issue has been fixed. As usual, you'll probably have to do a force reload (ctrl-shift-R in Firefox) to clear the cached code.
Reply
RE: 3D Viewer work
#59
One little glitch: 3D viewer works fine on the texmapped wing https://www.ldraw.org/cgi-bin/ptdetail.c...088p03.dat
But it shows neither texmap nor fallback pattern on mirrored part https://www.ldraw.org/cgi-bin/ptdetail.c...089p03.dat
Reply
RE: 3D Viewer work
#60
(2021-01-08, 9:31)Philippe Hurbain Wrote: One little glitch: 3D viewer works fine on the texmapped wing https://www.ldraw.org/cgi-bin/ptdetail.c...088p03.dat
But it shows neither texmap nor fallback pattern on mirrored part https://www.ldraw.org/cgi-bin/ptdetail.c...089p03.dat

Thanks for the bug report. I have replicated the issue locally and reduced the failing file to the following. I didn't find a solution yesterday, but hopefully it will be fixed today.

0 FILE x.ldr
0 Change a.dat and b.dat in the next line to see that it works and fails
1 16 -140 -128 50 0 0 1 0 1 0 -1 0 0 b.dat
0
0 FILE b.dat
0 MIRRORED
0 Name: b.dat
0 !LDRAW_ORG Unofficial_Part
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
0 BFC CERTIFY CCW
1 16 0 0 0 -1 0 0 0 1 0 0 0 1 a.dat
0
0 FILE a.dat
0 Name: a.dat
0 Author: Sticker Builder
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
0 BFC CERTIFY
0 PE_TEX_PATH -1
0 PE_TEX_INFO iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AEYChQ1nEYzVAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAFklEQVQI12N4KqUh5fWUQcrr6VMpDQAiEgThLKLB4AAAAABJRU5ErkJggg==
1 16 0 -0.5 0 9.75 0 0 0 0.5 0 0 0 9.75 box5.dat
3 16 9.75 -0.5 -9.75 9.75 -0.5 9.75 -9.75 -0.5 9.75 0 0 1 0 1 1
3 16 9.75 -0.5 -9.75 -9.75 -0.5 9.75 -9.75 -0.5 -9.75 0 0 1 1 0 1
Reply
RE: 3D Viewer work
#61
(2021-01-08, 9:31)Philippe Hurbain Wrote: One little glitch: 3D viewer works fine on the texmapped wing https://www.ldraw.org/cgi-bin/ptdetail.c...088p03.dat
But it shows neither texmap nor fallback pattern on mirrored part https://www.ldraw.org/cgi-bin/ptdetail.c...089p03.dat

It works now. A fix has been pushed to the repo. I fixed it by creating new "texmap placements" for parts whose sub-parts have texmaps. These new texmap placements apply the placement (position and matrix) from the line of type 1 that uses the sub-parts to the points of the texmap declaration.

However.

What about "a" and "b" for cylindrical and spherical projections? How should these be modified in case of scaling matrices being used on the sub-parts? Right now it works because the failing file used planar projection with a non-scaling matrix. The behaviour for the other cases is going to be a bit messy.
Reply
RE: 3D Viewer work
#62
(2021-01-09, 11:12)Lasse Deleuran Wrote: What about "a" and "b" for cylindrical and spherical projections? How should these be modified in case of scaling matrices being used on the sub-parts? Right now it works because the failing file used planar projection with a non-scaling matrix. The behaviour for the other cases is going to be a bit messy.
Thanks! AFAIK no part use spherical or cylindrical projections. And mirrored versions of those inexisting parts are even more scarce Big Grin
More seriously, I don't think a and b parameters should be impacted by mirroring, since they are used in a symmetrical way (+/- a/2, +/-b/2)
Reply
RE: 3D Viewer work
#63
(2021-01-09, 11:12)Lasse Deleuran Wrote: It works now. A fix has been pushed to the repo. I fixed it by creating new "texmap placements" for parts whose sub-parts have texmaps. These new texmap placements apply the placement (position and matrix) from the line of type 1 that uses the sub-parts to the points of the texmap declaration.

However.

What about "a" and "b" for cylindrical and spherical projections? How should these be modified in case of scaling matrices being used on the sub-parts? Right now it works because the failing file used planar projection with a non-scaling matrix. The behaviour for the other cases is going to be a bit messy.

I'll try to have this update pushed to the live code soon. Last time I pulled from master, my code didn't play well and I still haven't gotten back to troubleshooting.
Reply
RE: 3D Viewer work
#64
(2021-01-09, 14:52)Philippe Hurbain Wrote: Thanks! AFAIK no part use spherical or cylindrical projections. ....

https://www.ldraw.org/cgi-bin/ptdetail.c...287p01.dat
https://www.ldraw.org/cgi-bin/ptdetail.c...287p02.dat

I made two parts using a spherical projection. None of them have a mirrored counterpart, though.
Reply
RE: 3D Viewer work
#65
(2021-01-09, 16:14)Orion Pobursky Wrote: I'll try to have this update pushed to the live code soon. Last time I pulled from master, my code didn't play well and I still haven't gotten back to troubleshooting.
IIRC That was when I pushed the update to BFCGeometry in order to reduce duplicate work whenever LDRGeometry will be changed. I will now keep an "how to upgrade" changelog file ready in case of API changes like that.
Reply
RE: 3D Viewer work
#66
(2021-01-09, 20:24)Lasse Deleuran Wrote: IIRC That was when I pushed the update to BFCGeometry in order to reduce duplicate work whenever LDRGeometry will be changed. I will now keep an "how to upgrade" changelog file ready in case of API changes like that.

New pull from master works (i.e. renders) with a few JavaScript errors that I'll troubleshoot before I push to the live page. I also want to simplify things on my end.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)