LDraw.org Discussion Forums
Rendering of sheared RECT primitives - 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: Rendering of sheared RECT primitives (/thread-24214.html)



Rendering of sheared RECT primitives - Gerald Lasser - 2020-09-17

I uploaded the cake costume parts, 35860 and 38560p01, and had them rendered in Stud.io.



What I got was an interesting result. on the LEFT the parts are as I have uploaded them to the PT, resulting in this "cond-line artefact". I remembered that I used a rect2p there with a shear matrix. So I in-lined this and I got the result on the RIGHT picture. Seems that the pre-processing for the renderer is not working correctly.


Has anybody noticed this and (re-)designed a part with this problem in mind?

Code:
0 // ORIGINAL CODE (LEFT)

1 16 0 -20 -10.75 19 0 0 0 1 20 0 0 .25 rect2p.dat
1 16 0 -20 10.75 -19 0 0 0 1 20 0 0 -.25 rect2p.dat


0 // INLINED CODE (RIGHT)
2 24 19 0 -10.5 -19 0 -10.5
2 24 -19 -40 -11 19 -40 -11
4 16 -19 0 -10.5 -19 -40 -11 19 -40 -11 19 0 -10.5
2 24 -19 0 10.5 19 0 10.5
2 24 19 -40 11 -19 -40 11
4 16 19 0 10.5 19 -40 11 -19 -40 11 -19 0 10.5