slipster216 / VertexPaint

Unity 5.3 Vertex Painter
Other
906 stars 151 forks source link

Broken FlowMap when painting in Mesh exported from 3dsmax #7

Closed ArieLeo closed 8 years ago

ArieLeo commented 8 years ago

When painting flow on mesh exported from 3dsmax the flow direction are broken. is it related with tangent space? and 3dsmax axis are using Z-up. is there a way to support this rather than rotate the object pivot manually?

slipster216 commented 8 years ago

Can you send me a mesh that has the issue? I currently use the normal and tangent to orientate the flow direction, so if the tangent space is computed correctly it should just work- but perhaps there's something I'm not computing correctly.

ArieLeo commented 8 years ago

Sure, here it is https://goo.gl/Naku7U inside you can find two fbx mesh

ArieLeo commented 8 years ago

Also here you can see the arrow debug Left is Z-Up, Right is Y-Up. you can see in ZMesh the arrow are incorrect flowdebug

slipster216 commented 8 years ago

Fixed, thanks!

ArieLeo commented 8 years ago

Hmm i'm still getting this with the latest version

slipster216 commented 8 years ago

So, I just double checked this by loading up both your meshes and painting a circle on them, and it all seems to work fine. Am I missing something in your repro?

result: https://gyazo.com/d6ced55b29099d9a7ec82fc3e533178c

ArieLeo commented 8 years ago

okay it seems working now, weird i guess i did something wrong when updating earlier. Thanks :)