According to Amir Ebrahimi, fbx vertex color is supposed to be between 0.0 and 1.0 rather then 0-255
At the moment I dont have a way to test this.
This commit is contained in:
		@@ -1446,13 +1446,13 @@ def write(filename, batch_objects = None, \
 | 
				
			|||||||
				for f in me.faces:
 | 
									for f in me.faces:
 | 
				
			||||||
					for col in f.col:
 | 
										for col in f.col:
 | 
				
			||||||
						if i==-1:
 | 
											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
 | 
												i=0
 | 
				
			||||||
						else:
 | 
											else:
 | 
				
			||||||
							if i==7:
 | 
												if i==7:
 | 
				
			||||||
								file.write('\n\t\t\t\t')
 | 
													file.write('\n\t\t\t\t')
 | 
				
			||||||
								i=0
 | 
													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
 | 
											i+=1
 | 
				
			||||||
						ii+=1 # One more Color
 | 
											ii+=1 # One more Color
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user