flutter_cube
flutter_cube copied to clipboard
No color when running
I'm using the package but when running it doesn't bring color, is it a recurring problem?
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 ?
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.