Closed duongnlt closed 8 months ago
Hello @duongnlt,
This is happening because your OBJ file does not include a UV parametrization (one sign is that there are no vt
directives inside the OBJ file).
There sphere
shape built into Mitsuba comes with a UV parametrization, which is why the texture could be displayed.
An easy way to generate a UV parametrization for your object is to use Blender's Smart UV Project tool.
System configuration
OS: Ubuntu 20.04 CPU: 12th Gen Intel(R) Core(TM) i5-12400 GPU: NVIDIA GeForce RTX 3060 Python version: 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] LLVM version: 10.0.0 CUDA version: 12.2 NVidia driver: 535.104.12
Dr.Jit version: 0.4.3 Mitsuba version: 3.4.0 Compiled with: Clang 10.0.0 Variants compiled: scalar_rgb scalar_spectral llvm_rgb llvm_ad_rgb llvm_spectral cuda_rgb cuda_ad_rgb cuda_spectral scalar_rgb_polarized scalar_rgb_polarized_double scalar_spectral_polarized scalar_spectral_polarized_double cuda_rgb_polarized cuda_rgb_polarized_double cuda_spectral_polarized cuda_spectral_polarized_double llvm_spectral_polarized
Description
When I render my object with a texture file, the texture does not appear in my output image.
However, when I replace my object file with a built-in shape like
sphere
, the texture appears.Here is link to the
obj
file and the texture files.Steps to reproduce