flutter_cube icon indicating copy to clipboard operation
flutter_cube copied to clipboard

No color when running

Open montonurb opened this issue 2 years ago • 2 comments

I'm using the package but when running it doesn't bring color, is it a recurring problem?

montonurb avatar Oct 26 '22 17:10 montonurb

I'm also facing this issue. I'm have created a 3D logo from blender with materials but the flutter render is not taking it into account.

My .mtl file :

# Material Count: 3

newmtl LogoColor
Ns 359.999993
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

newmtl Material.014
Ns 359.999993
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

newmtl emilogo
Ns 359.999993
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

I have tried the cube sample code present in this project and it works great with "flutter.png" which is an image material object.

So the question is how to render the basic material color assuming that the texture image materials are working perfectly ?

Nico3652 avatar Jan 27 '23 19:01 Nico3652

When creating your object inside of Cube, make sure 'isAsset' is set to FALSE. Also, open up your .obj file in notepad and make sure it is looking for the correct .mtl file. It will be stated at the top like this...

mtllib model.mtl.

MetalHepple avatar Jul 11 '23 14:07 MetalHepple