You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i've encountered an issue while using a texture to sample a strand color.
I'm using .abc file as a source (exported from Blender, with the scale of 100.0) and Root UV option is set to Resolve From Mesh, with the basic mesh provided. The file has the Scale Factor set to 1 (default is 0.01), i.e. it has x100 scale during the import stage.
Expected result (blender view):
Actual result:
Seems like alembic scene scale is not considered during the UV resolve process.
Hair shader (all values are set to default expect the base color, which is sampled from the texture using rootUV):
Sampling works fine with the file scale set to 0.01, but the hair object appears to be incredibly small in the scene + simulation is unstable.
I've found a workaround for the texture to be sampled properly - setting the .abc file scale back to 0.01 and increasing the hair object scale with Strand Scale set to Uniform World Max, but that makes the simulation absolutely unstable, so that won't suffice either.
Tested on Unity 2023.2.11f1, package version 0.11.0-exp.1, Alembic package version 2.3.4.
I've also noticed that having a rotation applied to the Alembic curves messes this up as well. Presumably because the UV reconstruction doesn't know how to de-rotate it correctly.
Another fix could be for Unity's alembic importer to better support Axis Conversion / rotations coming from DCCs.
edit: In this case I solved it by exporting the meshes with the Alembic file and using those as the source for reconstruction.
Hi, i've encountered an issue while using a texture to sample a strand color.
I'm using .abc file as a source (exported from Blender, with the scale of
100.0
) andRoot UV
option is set toResolve From Mesh
, with the basic mesh provided. The file has theScale Factor
set to1
(default is0.01
), i.e. it has x100 scale during the import stage.Expected result (blender view):
Actual result:
Seems like alembic scene scale is not considered during the UV resolve process.
Hair shader (all values are set to default expect the base color, which is sampled from the texture using rootUV):
Sampling works fine with the file scale set to
0.01
, but the hair object appears to be incredibly small in the scene + simulation is unstable.I've found a workaround for the texture to be sampled properly - setting the .abc file scale back to
0.01
and increasing the hair object scale withStrand Scale
set toUniform World Max
, but that makes the simulation absolutely unstable, so that won't suffice either.Tested on Unity
2023.2.11f1
, package version0.11.0-exp.1
, Alembic package version2.3.4
.Resources:
ReproFiles.zip
Note that the texture was created using the sphere UV.
I'll try to find the solution, but if you know any other way to import a strand color data, please let me know. Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: