flutter_cube icon indicating copy to clipboard operation
flutter_cube copied to clipboard

texture not visible on my 3d object.

Open nehal076 opened this issue 2 years ago • 4 comments

Hi, I am facing an issue when rendering the 3d Object.

this is my mask image.

image

my asset folder structure image

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?

nehal076 avatar Sep 26 '22 12:09 nehal076

I join the question, the mtl or jpg file also did not pick up, even when I put everything in the shared folder

FeofanGreek avatar Sep 27 '22 16:09 FeofanGreek

I'm also having trouble rendering the colored obj.

montonurb avatar Oct 28 '22 10:10 montonurb

Did someone found a solution ? I am also facing this issue .

L00rdD avatar Dec 05 '22 15:12 L00rdD

I managed to resolve. In addition to the .obj file, there should be a .mtl and a .png file.

montonurb avatar Dec 05 '22 17:12 montonurb