Skip to content

About

Image-based textured 3D morphing with TRELLIS. Code for Wukong’s 72 Transformations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Wukong’s 72 Transformations

High-fidelity Textured 3D Morphing via Flow Models
Minghao Yin, Yukang Cao, Kai Han · NeurIPS 2025
Paper · Project and interactive results

Give Wukong two images of objects. It generates a sequence of textured 3D meshes that blend the shape and appearance of the source into the target.

Installation

Start in the Wukong repository root on Linux with Conda, the CUDA toolkit and an NVIDIA GPU with at least 16 GB of VRAM. The following installs TRELLIS v1 alongside Wukong. TRELLIS installation guide

export WUKONG_ROOT="$PWD"
export TRELLIS_ROOT="$(dirname "$PWD")/TRELLIS-v1"
git clone https://github.com/microsoft/TRELLIS.git "$TRELLIS_ROOT"
cd "$TRELLIS_ROOT"
git checkout eb83038919f6e1feb63accf3a97a377a608c497d
git submodule update --init --recursive
. ./setup.sh --new-env --basic --xformers --flash-attn --diffoctreerast --spconv --mipgaussian --kaolin --nvdiffrast
conda activate trellis
export PYTHONPATH="$TRELLIS_ROOT${PYTHONPATH:+:$PYTHONPATH}"
cd "$WUKONG_ROOT"
python -m pip install .

Image-based morphing

Try transforming a closed storage chest into a toothy monster chest. Both inputs ship with TRELLIS. The first run downloads the model weights.

images="$TRELLIS_ROOT/assets/example_image"
wukong-morph \
  --source "$images/typical_misc_storage_chest.png" \
  --target "$images/typical_misc_monster_chest.png" \
  --output outputs/chest

Open outputs/chest/frame_000.glb through frame_007.glb in order in Blender or a glTF viewer. The first frame is a 3D reconstruction of the storage chest, the last is a reconstruction of the monster chest, and the six frames between them show the transition. Use --frames to change the total number of frames, including both endpoints.

Try other image pairs

Source Target
Storage chest Monster chest
Dwarf Goblin
Biplane Pirate ship

Run all three pairs with the same seed, or swap in any two foreground PNGs from the TRELLIS image collection.

python examples/trellis_pairs.py "$TRELLIS_ROOT" --output outputs/trellis-pairs

For your own pair, point --source and --target at two foreground PNGs. Show one complete object in each image against a transparent background, using similar camera angles and framing. You can inspect source_condition.png and target_condition.png to see the crops used for generation. The accompanying manifest.json maps each GLB to its position in the transition.

Optional modes

Text-based morphing

Use wukong-morph text and describe one object in each prompt. The first run downloads the TRELLIS text checkpoint. The output follows the same frame order as image mode, from the object described by --source to the one described by --target. Use --frames to set the length and --seed to repeat a run with the same settings.

wukong-morph text --source "a closed wooden storage chest" \
  --target "a monster chest with teeth" --frames 8 --seed 42 --output outputs/text-chest

Agentic scene morphing

Start with a SAGE layout and a style instruction for the room. The planner can generate a semantic intent, or you can use the included workshop intent offline. Compile the intent and list the image pairs you need. In the workshop example, two chairs share one asset, so you prepare one source view and one aligned target view for both placements.

cd applications/scene_morphing
python -m scene_morphing.agent_planner compile --layout example/layout.json \
  --intent example/intent.json --plan-output outputs/morph_plan.json
python -m scene_morphing.object_jobs --layout example/layout.json --plan outputs/morph_plan.json

To generate the object meshes, add --views views.json --output outputs/workshop-assets to the last command. The result contains a GLB sequence per changed asset and an assets.json mapping it to the original placements for assembly in SAGE. View-map format and agent setup

Citation

@inproceedings{yin2025wukong,
  title={Wukong's 72 Transformations: High-fidelity Textured 3D Morphing via Flow Models},
  author={Yin, Minghao and Cao, Yukang and Han, Kai},
  booktitle={Advances in Neural Information Processing Systems},
  year={2025}
}

License

Wukong source code is distributed under Apache-2.0. TRELLIS images, model weights and dependencies are distributed separately under their respective terms. License · SAGE application license

About

Image-based textured 3D morphing with TRELLIS. Code for Wukong’s 72 Transformations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages