TEXMAP extension thoughts and findings.


Re: TEXMAP extension thoughts and findings.
#12
these are the final results of the LDCad implementation of the TEXMAP meta

   

There are still some limitations which should be addressed in ether the spec or part authoring rules I think, namely:
  • Cylindrical vertical orientation (text needs to ether make the top dominant or flip the v distance calculation).
  • Spherical p3 position (right seems logical though)
  • Spherical >180 degree problems. I fixed it by using the longitude and latitude approach, although this is not what the spec describes but without it usage will be fairly limited I think.
  • Spherical polar problems. Some can be fixed but there will still be some mesh/param combinations resulting in problems (e.g. the second bottom sphere). Solution seems to be to force the underlying mesh to have a point at each polar.
  • Skewing can potentially mess with transformations when only applied to the base p1..p3 data. (I decided to leave it be until some part needs it)

Again I really think we need to address these issues in combination with the spec before texture mapped parts find their way into the official library.

dat src:

Code:
0 FILE main.ldr
0 unofficial part
0 0 BFC CERTIFY CCW

2 4  0 0 0  25 0 0
2 2  0 0 0  0 25 0
2 1  0 0 0  0 0 25



0 !TEXMAP START SPHERICAL -15 -45 0  -15 -45 -10   -10 -45 -10  360 180 checker.png
0 !: 1 15  -15 -45 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 15  -15 -45 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END

0 !TEXMAP START SPHERICAL 15 -45 0  15 -45 -10   20 -45 -10  180 360 checker.png
0 !: 1 15  15 -45 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 15  15 -45 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END



0 !TEXMAP START SPHERICAL -15 -15 0  -15 -15 -10   -10 -15 -10  270 90 checker.png
0 !: 1 1  -15 -15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 1  -15 -15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END

0 !TEXMAP START SPHERICAL 15 -15 0  15 -15 -10   20 -20 -10  90 270 checker.png
0 !: 1 2  15 -15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 2  15 -15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END



0 !TEXMAP START SPHERICAL -15 15 0  -15 10 -5   -5 10 -5  120 60 ldTexTest.png
0 !: 1 3  -15 15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 3  -15 15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END


0 !TEXMAP START SPHERICAL 15 15 0  15 15 -10   20 10 -10  360 180 checker.png
0 !: 1 4  15 15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 4  15 15 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END



0 !TEXMAP START SPHERICAL 45 -15 0  45 -15 -10   50 -15 -10  360 180 checker.png
0 !: 1 5  45 -15 0  0.5 0 0  0 0.5 0  0 0 0.5 4588.dat
0 !TEXMAP FALLBACK
1 5  45 -15 0  0.5 0 0  0 0.5 0  0 0 0.5 4588.dat
0 !TEXMAP END


0 !TEXMAP NEXT PLANAR 60 0 0  80 0 0   60 20 0  ldTexTest.png
1 16 60 -45 0  1 0 0  0 1 0  0 0 1 test1.ldr


0 FILE test1.ldr
0 unofficial part
0 0 BFC CERTIFY CCW

4 14  -10 30 5  30 30 5  30 70 5  -10 70 5

0 !TEXMAP START SPHERICAL 0 0 0  0 0 -10   10 0 -10  360 180 checker.png
0 !: 1 4  -20 0 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat

0 !TEXMAP NEXT Cylindrical 0 10 0  0 0 0   0 10 -5  120 smile.png
0 !: 1 4  0 0 0  10 0 0  0 10 0  0 0 10 box4.dat

0 !: 1 4  20 0 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat

0 !TEXMAP FALLBACK
1 4  -20 0 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
1 4  0 0 0  10 0 0  0 10 0  0 0 10 box4.dat
1 4  20 0 0  10 0 0  0 10 0  0 0 10 48\8-8sphe.dat
0 !TEXMAP END
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: TEXMAP extension thoughts and findings. - by Roland Melkert - 2014-08-16, 17:58

Forum Jump:


Users browsing this thread: 4 Guest(s)