ZBrushCentral

Vertex Color export

hi about zbrush export Vertex Color rgb
i have make try with little cube and see on block note what’s we can read about him
the goal is reimport this in unity i looking on the web and i’m surprised of found nothing about this
so all help is welcome for sure

File exported by ZBrush version 4.6

www.zbrush.com

#Vertex Count 12
#UV Vertex Count 12
#Face Count 8
#Auto scale x=1.000000 y=1.000000 z=1.000000
#Auto offset x=0.000000 y=0.000000 z=0.000000
mtllib PM3D_Cube3D.mtl
usemtl defaultMat
v 0 -0 1
v 0 -0 1
v -0.49999994 0.99999982 -0
v -0.99999994 -0.5 -0
v 0 -0 1
v 0.50000006 -0.99999988 -0
v 0 -0 1
v 0.99999988 0.5 -0
v 0 -0 -1
v 0 -0 -1
v 0 -0 -1
v 0 -0 -1

The following MRGB block contains ZBrush Vertex Color (Polypaint) and masking output as 4 hexadecimal values per vertex. The vertex color format is MMRRGGBB with up to 64 entries per MRGB line.

#MRGB fffb0000fffb0000ff000afaff72e400fffb0000fff30b00fffb0000fffb0000ff000afaff000afaff000afaff000afa

End of MRGB block

vt 0.1875 0
vt 0.9375 0
vt 0.9375 0.5
vt 0.1875 0.5
vt 0.4375 0
vt 0.4375 0.5
vt 0.6875 0
vt 0.6875 0.5
vt 0.6875 1
vt 0.9375 1
vt 0.1875 1
vt 0.4375 1
g Group4992
f 1/1 2/2 3/3 4/4
f 5/5 1/1 4/4 6/6
f 7/7 5/5 6/6 8/8
f 2/2 7/7 8/8 3/3
f 3/3 8/8 9/9 10/10
f 4/4 3/3 10/10 11/11
f 11/11 12/12 6/6 4/4
f 8/8 6/6 12/12 9/9

Yes, that is a custom tag for ZBrush polypaint and not part of the OBJ specification. That means that any applications that want to make use of the data have to implement a custom parser. For example, I believe XNormal will read the polypaint data from a ZBrush OBJ.

yes i’m close to goal i think’s i have make post to unity forum
for see if can help maybie vertex order can play on how is work

http://forum.unity3d.com/threads/248014-zbrush-import-Vertex-Color-rgb?p=1640122#post1640122

Blender handle very well zbrush polypaint data from obj’s

And shame for Pixologic Zbrush can export polypaint data in obj but there is no way to import it back… how is that possible ?

interessing for sure yes

I would also like to know how to get vertex color obj, back into zbrush.

I’ve had success with opening Zbrush obj files with polypaint in Meshlab. From there I have successfully saved the file out as a .PLY and had a successful render of the polypaint in Blender. You have to turn on the vertex color in the material editor of blender to get it to show up.

I’ve also been able to open polypainted obj files in SAP Visual Enterprise.