Commit Graph

23 Commits

Author SHA1 Message Date
Yeicor
10ed5e2e9e Minor backend improvements: better color and textured handling, smooth shading, better demo 2025-07-19 12:43:05 +02:00
Andy Ross
c14a823dc1 Update visual defaults
Somewhat more conventional visual presentation:

+ Use a neutral gray background a-la most other CAD/modelling software
  for better contrast with the geometry (which defaults to a bright
  yellow).  This is done with the "skybox-environment" image in
  model-viewer, so add a new setting value in settings.ts for this (it
  can be overriden in the URL just like other settings)

+ But using a skybox will cause that image to be used for lighting
  too, which is clearly not desired.  So fetch a nice professional
  HDRI image from Polyhaven for lighting.  This is much better (more
  directional, higher contrast) than the default light environment
  anyway.

+ The checkerboard texture isn't really a good default.  Use a 1x1
  white pixel instead, essentially presenting the model materials
  unchanged.

Also collect the default color in gltf.py out of the code and put it
next to the texture for clarity.  This should probably be wired
through to a setting at some point.

Signed-off-by: Andy Ross <andy@plausible.org>
2025-07-15 15:24:09 -07:00
Yeicor
b629f07f5e Fix broken gltf exports and minor cleanup 2025-04-20 12:47:23 +02:00
Yeicor
09c0994a34 Also color edges and vertices, add examples and minor improvements 2024-10-11 20:18:49 +02:00
Yeicor
72480d82c8 strong performance optimizations for the backend 2024-03-26 21:22:48 +01:00
Yeicor
8ebf48cb36 configurable edge and vertex widths 2024-03-26 20:43:21 +01:00
Yeicor
632e7e93c6 lots of performance improvements, bug fixes and some new features 2024-03-25 21:37:28 +01:00
Yeicor
d5cdd094e8 reduce idle cpu usage and add todo 2024-03-14 17:26:54 +01:00
Yeicor
3e3730a4a5 faster multi-object load, faster updates and better orthographic camera at different scales 2024-03-07 20:49:27 +01:00
Yeicor
4c7be17ddc add support for loading images as quads 2024-03-03 10:56:44 +01:00
Yeicor
c51ddade4b add full support for locations, better helpers and more server fixes 2024-03-02 23:00:07 +01:00
Yeicor
f22e19fb3d double-sided CAD models 2024-02-25 11:23:11 +01:00
Yeicor
dfff9720dc add support for selecting vertices 2024-02-24 23:38:58 +01:00
Yeicor
b3160fe3d3 add support for rendering vertices 2024-02-24 23:26:45 +01:00
Yeicor
ba74b97bd9 lots of fixes and finding new problems 2024-02-19 21:19:26 +01:00
Yeicor
c9e8bde9ca several fixes to tessellation and extremely fast (in comparison) initial load of CAD objects 2024-02-19 20:53:10 +01:00
Yeicor
656daf1bf3 work 2024-02-18 23:20:24 +01:00
Yeicor
0ff39e045f start to pre-merge CAD models on the server to improve frontend performance 2024-02-18 21:06:45 +01:00
Yeicor
16b3a8ea64 working basic loading glbs demo after lots of fixes 2024-02-17 21:04:37 +01:00
Yeicor
56c097aea3 Server implementation more or less complete 2024-02-08 19:52:51 +01:00
Yeicor
69106abbbd More flexible and add deps for http+websockets server 2024-02-05 19:29:48 +01:00
Yeicor
f98a95791d Material and texture support, simpler tessellation and valid models 2024-02-04 22:55:22 +01:00
Yeicor
2202a86464 Migrate server to poetry and build glb models for faces and edges 2024-02-02 13:25:13 +01:00