Uv projection using ref mesh

This was originally @Pryme8 work just made a few modifications, now you can uv unwrap from ref mesh (cylinder, tri-planar, spherical, etc). In this demo i’m using a box instead as it’s the most common assides from planar. I talked to @Pryme8 about the idea of getting this into babylonjs as a tool for developers, LMK what you think @sebavan @Deltakosh

6 Likes

I like it a lot! That can definitely go to the framework! Just make sure to drop it in a separate file as an exported function (something like MeshTools.ts) so it can be tree shaked

2 Likes

Love it a lot as well !!!

1 Like

I like it a lot! I think it is very useful for me! awesome!

1 Like

oh forgot i wanted to work on getting this in lol, been busy

1 Like

if you have free time,welcome!

Noticed MeshTools.ts was removed, should i put it in tools.ts instead? @Deltakosh @sebavan

I would create it in its own module under the misc folder as we already have the meshExploder.ts file there ?

I am stupid with naming so I won t even try :slight_smile:

1 Like

Yeah I will try that lol

1 Like

i was following how meshExploder.ts is integrated , so i exported uvprojector in ./Misc/index.ts. but I got this error while trying to build, is there any step i might have missed?

1 Like

@sebavan @Deltakosh

here ready :slight_smile:

1 Like