huggingface / gsplat.js

JavaScript Gaussian Splatting library.
MIT License
1.26k stars 77 forks source link

Question: Y axis upside down #93

Open xiasun opened 3 months ago

xiasun commented 3 months ago

Hi all,

I have customized splat data with the y-axis pointing upwards (ground at y zero). However, when rendered with gsplat.js, it appears upside down. I have to set the splat's rotation around the x-axis to 180 degrees to make it display correctly.

After going through the entire project, I couldn't find any default behavior that would cause this upside-down rendering. I'm wondering if gsplat.js performs any preprocessing on the loaded data. If not, why is my data being displayed upside down?

Many thanks!

dylanebert commented 2 months ago

It depends on the coordinate system used for the source model. It would be a good feature to load splats with an axis conversion though!

What is the source of your files?