vange-rs icon indicating copy to clipboard operation
vange-rs copied to clipboard

Конвертация obj в мир

Open DileSoft opened this issue 3 years ago • 1 comments

Сделать конвертер который тупо берет 1 или 2 самых верхних слоя а все остальное игнорирует и проверить что получится.

DileSoft avatar Feb 19 '22 19:02 DileSoft

Rough plan:

  1. game config lists objects and their positions
  2. on loading, the renderer fires a job for each object
    1. load the OBJ and determine the 2D coordinate range where it applies
    2. create 2 depth textures and copy the level0 into the first one
    3. object with its back-faces only is rendered into this depth
    4. depth is copied into the other texture
    5. object with its front faces only is rendered into the depth
    6. both depths are requested for readback to CPU
  3. results get written back to level data

kvark avatar Feb 20 '22 06:02 kvark