According to Amir Ebrahimi, fbx vertex color is supposed to be between 0.0 and 1...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 12 Feb 2009 01:46:38 +0000 (01:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 12 Feb 2009 01:46:38 +0000 (01:46 +0000)
At the moment I dont have a way to test this.

release/scripts/export_fbx.py

index 6f96411896430d5495d3070c6cff1820da285cb8..730776bf1b8ff9a2c0a6fd02f069456e2045bc1b 100644 (file)
@@ -1446,13 +1446,13 @@ def write(filename, batch_objects = None, \
                                for f in me.faces:
                                        for col in f.col:
                                                if i==-1:
-                                                       file.write('%i,%i,%i,255' % (col[0], col[1], col[2]))
+                                                       file.write('%.4f,%.4f,%.4f,1' % (col[0]/255.0, col[1]/255.0, col[2]/255.0))
                                                        i=0
                                                else:
                                                        if i==7:
                                                                file.write('\n\t\t\t\t')
                                                                i=0
-                                                       file.write(',%i,%i,%i,255' % (col[0], col[1], col[2]))
+                                                       file.write(',%.4f,%.4f,%.4f,1' % (col[0]/255.0, col[1]/255.0, col[2]/255.0))
                                                i+=1
                                                ii+=1 # One more Color