Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tra on July 08, 2013, 10:49:58 AM

Title: How to use atlas for imported mesh?
Post by: tra on July 08, 2013, 10:49:58 AM
Hi,
How to use atlas from Ngui with imported 3d mesh?
I would like to use atlas abilities on my 3d models just like on Ngui 2d generated planes.
Is it possible?

regards,
tra
Title: Re: How to use atlas for imported mesh?
Post by: ArenMook on July 08, 2013, 12:32:46 PM
You can't.
Title: Re: How to use atlas for imported mesh?
Post by: tra on July 09, 2013, 06:18:18 AM
Hi ArenMook,
I have found some inspiration in UTFAtlasEditor where you can just use information about selected sprite UVs and recalculate all UV of 3dMesh to use specific part of atlas texture. This way the 3DMesh will display a part of Atlas material as own texture and thats it.

I think there is a possibility to get sprite UVs from NGUI Atlas and do the same.
I am new to Ngui (not a programmer) and just started to explore scripts. Will post some effects if it start to work.

Before I was doing all the atlases by my hand for 3D.
It could be nice to use the same workflow with NGUI Atlas for 3D Objects when you do a mixed 2D/3D app.
Title: Re: How to use atlas for imported mesh?
Post by: tra on August 03, 2013, 09:06:43 AM
Hello,
Finally I made plugin for NGUI that lets you use NGUI atlas on meshes in Unity. Additionally it can repair unity lightmapping so you can have 1 drawcall on Unity Free using dynamic batching.
Atlas3D tutorial and video (http://tracki.pl/atlas3d)

Regards, Piotr
Title: Re: How to use atlas for imported mesh?
Post by: tra on August 27, 2013, 03:48:49 AM
There is new version 1.2 available at the AssetsStore
Simplified usage, single component, dynamic meshes creation, bugfixes

(http://tracki.pl/atlas3d/images/CardsExampleScr2small.jpg)