LDraw.org Discussion Forums
Add images for cylindrical and spherical mapping - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Administrative (https://forums.ldraw.org/forum-4.html)
+--- Forum: Standards Board (https://forums.ldraw.org/forum-5.html)
+--- Thread: Add images for cylindrical and spherical mapping (/thread-22674.html)



Add images for cylindrical and spherical mapping - Travis Cobbs - 2018-01-24

I propose that we add the images from the post below to the cylindrical and spherical mapping portions of the TEXMAP spec:

https://forums.ldraw.org/thread-4261-post-6818.html#pid6818


RE: Add images for cylindrical and spherical mapping - Roland Melkert - 2018-01-25

(2018-01-24, 22:25)Travis Cobbs Wrote: I propose that we add the images from the post below to the cylindrical and spherical mapping portions of the TEXMAP spec:

https://forums.ldraw.org/thread-4261-post-6818.html#pid6818

Don't see why not.

Maybe add the texture coordinates to the surfaces?

As those can be confusing, especially for the cylindrical one. As p3 is used to indicate the bottom while that should become 1.0 in texture space. The planer one uses the top which becomes 0.0 in texture space.

In LDCad 1.6b I've adjusted things so the position of 'p3' doesn't matter anymore which might make things easier for part authors. P3 is then only used to calculate the radius and center of the texture by calculating the perpendicular vector to p1-p2. Vertical texture coordinates are then normalized distances to the top plane.