Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stomach_URP

An interactive 3D visualization of human stomach / upper-GI anatomy built in Unity. The user navigates a first-person camera through and around an animated stomach model, with an endoscopy-style camera effect and blend-shape driven tissue motion — intended as an educational / visualization tool.

Disclaimer: This project is for educational and visualization purposes only. It is not a medical device and must not be used for clinical, diagnostic, or treatment decisions.

Tech stack

  • Engine: Unity 2022.3.49f1 (LTS)
  • Render pipeline: Universal Render Pipeline (URP)
  • Language: C# (MonoBehaviour scripts + one custom shader)
  • Large assets: tracked via Git LFS (see below)

Key assets

  • Assets/Imported/motacolon.blend — the source Blender model of the anatomy (~75 MB; the master mesh the FBX is derived from).
  • Assets/Materials/Stomach.fbx — the stomach mesh imported into Unity.
  • Baked texturesStomach_BakedDiffuse / BakedGlossy / BakedNormal (baked out of the Blender source).
  • Assets/Materials/EndoscopyVignette.shader + EndoscopyVignetteMat.mat — the endoscope-style vignette post effect.
  • Assets/Scenes/SampleScene.unity — the main scene.

*.blend, *.fbx, and other large binaries are stored in Git LFS (see .gitattributes), so Git LFS must be installed to get the actual model files on clone (otherwise you get small pointer files).

Features

  • First-person navigation — move a physics-based camera through the model.
  • Endoscopy vignette effect — a full-screen shader that darkens the frame edges to mimic the view through an endoscope camera.
  • Blend-shape animation — esophagus → stomach → duodenum deformations are triggered as the camera passes waypoints, plus a full-stomach dilation.
  • Dynamic mesh collider — the mesh collider re-bakes when blend shapes change so collision tracks the deforming tissue.
  • Collision feedback — an on-screen message when the camera contacts tissue.

Controls

Input Action
W / S / A / D or arrow keys Move the camera
Q / E Move down / up (also bound to interactions such as light toggle / stomach dilation in some setups)
Mouse / rotation keys Look around

(Key bindings are defined on the individual controller scripts and can be changed in the Inspector.)

Getting started

  1. Install Unity Hub and Unity 2022.3.49f1 (LTS).
  2. Ensure Git LFS is installed (git lfs install) before cloning, then clone the repo — this pulls the real .blend / .fbx files.
  3. Open the project folder in Unity Hub.
  4. Open Assets/Scenes/SampleScene.unity.
  5. Press Play.

License

Released under the MIT License — see LICENSE.

About

Interactive stomach & upper-GI anatomy visualization in Unity URP — first-person endoscopy navigation with a custom vignette shader, blend-shape tissue deformation and dynamic mesh colliders (educational, not a medical device)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages