expenses / lighthugger

Vulkan meshlet + visibility buffer renderer
GNU General Public License v3.0
26 stars 3 forks source link

Could you please share the models "models/San_Miguel/packed.gltf" ? #1

Open Whalesea-Gustav opened 9 months ago

Whalesea-Gustav commented 9 months ago

I built the project successfully, but could not find support model to run the render. It seems to require gltf models with dds / .ktx2 images. I searched a wild range of free gltf resources, but could not find any good example model.

Whalesea-Gustav commented 9 months ago

I also tried to convert San_Miguel obj model to gltf, but it did not work when loading gltf in this renderer

expenses commented 9 months ago

Hi, I took the following steps to create the model:

  1. Downloaded it from https://casual-effects.com/data/
  2. Opened the low_poly obj in Blender
  3. Converted all foliage materials to alpha-clip
  4. Exported a gltf
  5. ran gltf-pack on the gltf (without using flags)
  6. Used compressonator to convert all textures to .dds
  7. Manually converted the texture URIs in the gltf file to reference the .dds files

Do note that this program is very specialized around my current machine and that you might need to do a significant amount of work to get it to work on your machine. The source is on github mostly to show off some of the approaches I've taken.

Whalesea-Gustav commented 9 months ago

Hi, I took the following steps to create the model:

  1. Downloaded it from https://casual-effects.com/data/
  2. Opened the low_poly obj in Blender
  3. Converted all foliage materials to alpha-clip
  4. Exported a gltf
  5. ran gltf-pack on the gltf (without using flags)
  6. Used compressonator to convert all textures to .dds
  7. Manually converted the texture URIs in the gltf file to reference the .dds files

Do note that this program is very specialized around my current machine and that you might need to do a significant amount of work to get it to work on your machine. The source is on github mostly to show off some of the approaches I've taken.

Thanks For Reply, it helps a lot. I add external zstd-1.5.5 library and manually downloaded simdjson files, which helped me to compile the program.

Besides, I found that the renderer required image files: "external/tony-mc-mapface/shader/tony_mc_mapface.dds" and "hdr-cubemap-1024x1024.dds". Could you please share the resources of these two dds file?

Whalesea-Gustav commented 9 months ago

@expenses Sorry to bother you. Could you please share the resources of these two dds file?

expenses commented 9 months ago

Hi sorry for the late reply. tony_mc_mapface.dds comes from the tony-mc-mapface git submodule and should work as-is as long as submodules are fetched and checked out. To generate the hdr cubemap, I took hdr-cubemap-1024x1024.ktx2 from https://github.com/fintelia/skyrender/releases/tag/release-3 and converted it to dds with https://github.com/expenses/ktx2-tools/blob/master/src/ktx2-to-dds.rs. I've attached that because it might be a pain to generate: hdr-cubemap-1024x1024.dds.zip