Author Topic: How to use atlas for imported mesh?  (Read 5191 times)

tra

  • Guest
How to use atlas for imported mesh?
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to use atlas for imported mesh?
« Reply #1 on: July 08, 2013, 12:32:46 PM »
You can't.

tra

  • Guest
Re: How to use atlas for imported mesh?
« Reply #2 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.

tra

  • Guest
Re: How to use atlas for imported mesh?
« Reply #3 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

Regards, Piotr

tra

  • Guest
Re: How to use atlas for imported mesh?
« Reply #4 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