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

There are two errors in process_data program #47

Open
VV940 opened this issue Dec 28, 2024 · 0 comments
Open

There are two errors in process_data program #47

VV940 opened this issue Dec 28, 2024 · 0 comments

Comments

@VV940
Copy link

VV940 commented Dec 28, 2024

The texture class in the program defines Ns, but there is no Ns data in the mtl file.

Another issue is that the ambient data written is inconsistent with the defined one.
Traceback (most recent call last):
File "preprocess_data.py", line 355, in
main(sys.argv[1:])
File "preprocess_data.py", line 344, in main
render(
File "/home/hps/py_project/DiffuScene-master/scripts/utils.py", line 234, in render
scene.add(r)
File "/home/hps/anaconda3/envs/diffuscene/lib/python3.8/site-packages/simple_3dviz/scenes.py", line 60, in add
renderable.init(self._ctx)
File "/home/hps/anaconda3/envs/diffuscene/lib/python3.8/site-packages/simple_3dviz/renderables/textured_mesh.py", line 197, in init
self.material = self._material
File "/home/hps/anaconda3/envs/diffuscene/lib/python3.8/site-packages/simple_3dviz/renderables/textured_mesh.py", line 229, in material
self._prog["ambient"].write(self._material.ambient.tobytes())
File "/home/hps/anaconda3/envs/diffuscene/lib/python3.8/site-packages/_moderngl.py", line 95, in write
self.ctx._write_uniform(
_moderngl.Error: invalid uniform size

Look forward to your answer, thank you

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

No branches or pull requests

1 participant