Open Whalesea-Gustav opened 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
Hi, I took the following steps to create the model:
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.
Hi, I took the following steps to create the model:
- Downloaded it from https://casual-effects.com/data/
- Opened the low_poly obj in Blender
- Converted all foliage materials to alpha-clip
- Exported a gltf
- ran gltf-pack on the gltf (without using flags)
- Used compressonator to convert all textures to .dds
- 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?
@expenses Sorry to bother you. Could you please share the resources of these two dds file?
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
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.