Open fangchuan opened 1 year ago
Hey @fangchuan, Haven't had time to dig into this. The PTex support is a separate code path and shader from any other asset support. I think you are on the right track here.
My first two approaches would be:
Hey @fangchuan, Haven't had time to dig into this. The PTex support is a separate code path and shader from any other asset support. I think you are on the right track here.
My first two approaches would be:
- Edit the pipeline to remove the texture info programmatically (your approach)
- Try to strip or clear the texture information from the asset before loading. For example, replace the texture images with images containing the flat color you want.
Thanks for your reply. Well, there maybe some questions about your two suggestions:
color_sensor
in the end;xxx-color-ptex.hdr
, these files' sizes are huge and I dont know if they are organized in line with ordinary texture images which use uv coordinate.
Hi all, I am able to render rgb/depth images from textured meshs in Replica-dataset, but now I hope to render image with illumination turned on but surface texture turned off. I have tried several methods to reach the goal, but it failed. The version of code I am using is branch
main
tagv0.2.0
, like the picture below. And I follow the replica-dataset instruction to load data and render images.First, I set all vertexts' color to the user-defined value during PTexMeshData::parsePLY, specificly, I revise the follwing lines https://github.com/facebookresearch/habitat-sim/blob/59456b9efc012f2f08c324b97742570bdcf8f041/src/esp/assets/PTexMeshData.cpp#L777-L779
into
In this way, the rendering image is still textured, so I thought it could be caused by PTex files loaded in the process of
PTexMeshData::load
.So, in the next step, I create a fake_image_data in the process of
PTexMeshData::uploadBuffersToGPU
, revising the following codes https://github.com/facebookresearch/habitat-sim/blob/59456b9efc012f2f08c324b97742570bdcf8f041/src/esp/assets/PTexMeshData.cpp#L916-L941 intoUnfortunately, I get an empty rendering image (totally black) in the end.
Could you help me figure out an appropriate method to achive the goal ? @aclegg3 @0mdc , I'm looking forward to your help. Thanks a lot!