flutter_cube
flutter_cube copied to clipboard
texture not visible on my 3d object.
Hi, I am facing an issue when rendering the 3d Object.

this is my mask image.

my asset folder structure
this is my code
Cube(
onSceneCreated: (Scene scene) {
scene.world.add(
Object(
fileName: 'assets/shoe.obj',
scale: Vector3.all(5),
lighting: true,
),
);
},
)
my mtl file
Material Count: 1
newmtl Material
Ns 323.999994
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.0 0.0 0.0
Ni 1.450000
d 1.000000
illum 2
map_Kd diffuse.png
any solution to this?
I join the question, the mtl or jpg file also did not pick up, even when I put everything in the shared folder
I'm also having trouble rendering the colored obj.
Did someone found a solution ? I am also facing this issue .
I managed to resolve. In addition to the .obj file, there should be a .mtl and a .png file.