TRELLIS.2 icon indicating copy to clipboard operation
TRELLIS.2 copied to clipboard

Wonderful work!

Open seekever opened this issue 11 months ago • 13 comments

An impressive piece of work! I found another similar voxel representation called Faithful Contouring, and I'm curious about which one is more effective.

seekever avatar Dec 18 '25 02:12 seekever

In addition, currently only TRELLIS.2 has released the VAE and image-to-3D models.

seekever avatar Dec 18 '25 02:12 seekever

Thanks for the reference and initiating this discussion! I believe both methods are inspired by the original Dual Contouring algorithm. Ours is a relatively simpler variant in terms of implementation and feature channel numbers, also it allows for flexible quad splitting optimized by rendering supervision. Additionally, we have already shown promising image to 3D generation results.

JeffreyXiang avatar Dec 18 '25 12:12 JeffreyXiang

Thanks for your reply. After testing your amazing 3D generation pipeline, I found that face flips often occur if the Dual Contouring remeshing is not applied. However, if remeshing is performed, double-layer shells occur due to UDF. In my tests, Faithful Contouring can produce a thin mesh without face flips. Is there a way for O-voxel to solve the face flip issue while maintaining a thin mesh?

seekever avatar Dec 18 '25 12:12 seekever

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps.

If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

JeffreyXiang avatar Dec 18 '25 12:12 JeffreyXiang

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps.

If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

Good suggestions! As for unify_face_orientation, it has been included in your code. https://github.com/microsoft/TRELLIS.2/blob/1762f493fe7731a3b7cc6b79ad5da7b015b516c1/o-voxel/o_voxel/postprocess.py#L162 I have tested it (setting remesh=False), but the face flips still exist. Alignment with implicit normals should work better.

seekever avatar Dec 18 '25 12:12 seekever

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps.

If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

We found that a directed edge extension of FDG (FDG -> FDG-D) can store the face orientation, and adding an adapter on shape vae can predict this information without compromising the pre-trained prior, and more details can be found at the paper AnySurf( https://arxiv.org/abs/2605.26149)

wendashi avatar Aug 07 '26 02:08 wendashi

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps. If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

We found that a directed edge extension of FDG (FDG -> FDG-D) can store the face orientation, and adding an adapter on shape vae can predict this information without compromising the pre-trained prior, and more details can be found at the paper AnySurf( https://arxiv.org/abs/2605.26149)

Nice idea, are you going to opensorce your FDG-D version of ovoxel?

xuxu116 avatar Aug 20 '26 07:08 xuxu116

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps. If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

We found that a directed edge extension of FDG (FDG -> FDG-D) can store the face orientation, and adding an adapter on shape vae can predict this information without compromising the pre-trained prior, and more details can be found at the paper AnySurf( https://arxiv.org/abs/2605.26149)

Nice idea, are you going to opensorce your FDG-D version of ovoxel?

I'll open-source it once it's accepted😢And I can update the link here when it's released. Thanks for your attention.

wendashi avatar Aug 20 '26 08:08 wendashi

We do not include explicit normal information in our geometry representation, so the triangles should be treated as double-sided. Instead, normal information is stored with the textural data via textured_mesh_to_volumetric_attr, which accounts for the effects of normal maps. If you need consistent face orientation, here are two potential solutions:

  1. Geometric reorientation: Without additional normal information, you can use algorithms like unify_face_orientations from cumesh (or similar libraries) to reorient the face directions.
  2. Alignment with implicit normals: You could flip triangles that are inconsistent with the normal vectors stored in o_voxel. Note that this would require a simple extension, as the current TRELLIS.2 model does not explicitly model a normal channel for the sake of simplicity.

We found that a directed edge extension of FDG (FDG -> FDG-D) can store the face orientation, and adding an adapter on shape vae can predict this information without compromising the pre-trained prior, and more details can be found at the paper AnySurf( https://arxiv.org/abs/2605.26149)

Based on the analysis, the three axes in Faithful Contouring's edge_flux_sign that correspond to O-voxel's intersected can be identified. If we preserve the corresponding signs and make minor modifications to how flexible_dual_grid_to_mesh computes face orientation, correct face orientations can be obtained. Not sure how large the difference is between your FDG-D and Faithful Contouring.

seekever avatar Aug 20 '26 11:08 seekever

FC is more complex and not as minimal. More importantly, FC only implements it for VAE reconstruction, and whether it can be used for DiT generation remains to be verified.

Image

wendashi avatar Aug 20 '26 12:08 wendashi

FC is more complex and not as minimal. More importantly, FC only implements it for VAE reconstruction, and whether it can be used for DiT generation remains to be verified.

Image

The FCT V1.5 is simple

Image

Your 3 axis-aligned directed-edge maybe found in edge_flux_sign.

I understand that in the FCT1.5 decoder, face orientation is directly determined by edge_flux_sign; the normals are only used in the decode step to choose the diagonal split, and do not directly flip the faces.

Also, edge_flux_sign is redundant — neighboring voxels share edges, and 3 of them correspond to the ovoxel's intersected flag, i.e., it's like a directed intersected flag.

FCT indeed hasn't released the VAE or DiT. If you could release the FGD-D VAE and DiT, that would be a really significant contribution — looking forward to it!

seekever avatar Aug 20 '26 13:08 seekever

FC is more complex and not as minimal. More importantly, FC only implements it for VAE reconstruction, and whether it can be used for DiT generation remains to be verified. Image

The FCT V1.5 is simple

Image Your 3 axis-aligned directed-edge maybe found in edge_flux_sign.

I understand that in the FCT1.5 decoder, face orientation is directly determined by edge_flux_sign; the normals are only used in the decode step to choose the diagonal split, and do not directly flip the faces.

Also, edge_flux_sign is redundant — neighboring voxels share edges, and 3 of them correspond to the ovoxel's intersected flag, i.e., it's like a directed intersected flag.

FCT indeed hasn't released the VAE or DiT. If you could release the FGD-D VAE and DiT, that would be a really significant contribution — looking forward to it!

Refer to the FDG-D, I have implmented the o-voxel with normal flag (https://github.com/xuxu116/o-voxel-with-normal). The VAE part is easy to train with additional input/output channels (similar to the origin intersected flags). If you don't want to change your flow model, it is fine to just finetune the Decoderonly and the normal_flag is fast to converge! Below is the ovoxel-with-normal results: Image

xuxu116 avatar Aug 26 '26 10:08 xuxu116

As reported in our work (Table 6. (g) and (h) of https://arxiv.org/abs/2605.26149), to preserve the original model's pretrained prior as much as possible, adding an adapter branch instead of directly fine-tuning the shape VAE is a more practical approach.

wendashi avatar Aug 26 '26 12:08 wendashi