joric/keycaps

Render all types of keycaps properly

Closed this issue · 3 comments

Looks like various key don't render properly. On the following example, you can see that stepped Caps Lock, big spacebars, and ISO Enter are not as they should: https://joric.github.io/keycaps/#/gists/7e872b5d2fb25e7e54c43f226ad0d4c0

joric commented

Yeah. The matter is there are no procedural models, everything is prerendered in OpenSCAD. It just needs a bigger set of models. Sometimes it helps to know if caps used in the layout actually exist in the real word, but yeah it needs a few more caps (at least a couple of ISO and bigass Enters). I'll look into it. Procedural generation is way more time consuming (OpenSCAD tesselation and CSG geometry in general could take months).

Seconding the request for ISO enters and non-standard sizes (see attached screenshot rendering my KLE). Also note the 180º rotated key (enter key on left side) is not rendered correctly (the shadow is on the wrong side).
Screen Shot 2019-09-08 at 12 37 35

joric commented

Lol @ shadow. it's a 3d scene with per-pixel lighting (have you tried rotating the scene?).
If you like flat caps like DSA (I don't) you have to specify the profile in KLE.
ISO added in 77a5a9b.
Layout above: https://joric.github.io/keycaps/#/gists/0ba3c734e9ee9e20a8b81ac50db442e4
Legends are off but oh well. It's supposed to be an interactive layout editor, not a rendering tool. Also it's a little bit obsolete and hard to modify (blender 2.76 only and threejs r87) so I'll leave the rest as is.