Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DileSoft opened this issue Feb 19, 2022 · 1 comment
Open

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

DileSoft opened this issue Feb 19, 2022 · 1 comment

Comments

@DileSoft
Copy link
Contributor

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

@kvark
Copy link
Owner

kvark commented Feb 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants