mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
Graphics mapped onto a plane or onto Extrude & Bevel's front or back cap now export as a PNG texture of that face: the face's color with its graphics drawn over it, flat and unlit, on a mesh of the face's own triangles with texture coordinates. - glTF embeds the PNG (TEXCOORD_0, baseColorTexture, clamp sampler). - USDA reads it through primvars:st, UsdPrimvarReader_float2 and a UsdUVTexture connected to diffuseColor; USDZ stores the PNG after the layer on a 64-byte boundary. - OBJ writes vt coordinates and an MTL map_Kd. - OBJ and USDA write <name>-texture-1.png and so on beside them. - assets.export3D takes textureSize (128 to 4096, default 1024); one export draws at most 67,108,864 texture pixels. - Faces with the same color, graphics and bounds share one texture, and output without graphics is unchanged. Graphics on Revolve's side are not exported yet.