com.unity.formats.alembic icon indicating copy to clipboard operation
com.unity.formats.alembic copied to clipboard

iOS and Android support

Open i-saint opened this issue 7 years ago • 31 comments

this is frequently requested. but I can't do it. I'm looking for someone who can handle this.

i-saint avatar Feb 10 '18 15:02 i-saint

+1 would love to work with ARKit

Rlapham avatar Feb 15 '18 17:02 Rlapham

So its not supported now...Hope this will come as soon as possible

StealthMarine920 avatar Apr 12 '18 07:04 StealthMarine920

chiming in for ios and android support. would be great for AR VFX if it can be performant.

spiraloid avatar Apr 30 '18 11:04 spiraloid

Same request here. Also want it for VR and AR apps. Would pay a lot of money for an asset like this that supported Android and iOS. Android support would be a great start and would still be well worth a purchase. You should get it up on the Asset Store even though it's open sourced. I would buy it just to support the project.

solarisn avatar Jun 07 '18 01:06 solarisn

this is frequently requested. but I can't do it. I'm looking for someone who can handle this.

Is it an issue of time or complexity? Either of the two, doesn't make it impossible, and I'd be happy to give it a try. @i-saint Could you please update me on the issue so I can potentially pick it up? Thanks

AndrejGrek avatar Oct 12 '18 08:10 AndrejGrek

it is simply an issue of time. I have no time to work on mobile, and also no one wants to do it. technically, it should not be so difficult.

i-saint avatar Oct 12 '18 11:10 i-saint

I'm surprised no one wants to do it considering the awesomeness it would enable if it became possible to stream alembic caches on mobile.

https://youtu.be/kqBBo8UXJWk https://vimeo.com/279434808 https://www.youtube.com/watch?v=hSSDp5f6L7k

spiraloid avatar Oct 12 '18 19:10 spiraloid

if you are really willing to do, this is your todo list:

  • compile libAlembic for Android and iOS
    • https://github.com/alembic/alembic
    • libAlembic has dependencies for HDF5 and SZIP. so you need to compile these, too.
      • https://support.hdfgroup.org/HDF5/release/obtain5.html
      • HDF5 format and SZIP encoding are obsolete and optional, but I saw some customers still using it. so, the current release of AlembicForUnity supports these.
  • compile the source of native plugin in this repository and link with libAlembic
    • https://github.com/unity3d-jp/AlembicForUnity/tree/master/Plugin
    • you will need to modify CMakeLists.txt
  • for Android: both 32bit and 64bit version will be needed
  • for iOS: it is complicated than other platforms because you need to static link everything. you need to build the plugin as a static link library and use [DllImport ("__Internal")] instead of [DllImport ("abci")] in C# land.

probably you need to do something more. I'm not sure because I never worked on mobile devices.

i-saint avatar Oct 12 '18 21:10 i-saint

@spiraloid agreed. @i-saint Thanks, we will definitely look into it and try to estimate it.

AndrejGrek avatar Oct 12 '18 22:10 AndrejGrek

I added about HDF5 and SZIP in libAlembic section. I add more if I noticed I missed something.

i-saint avatar Oct 13 '18 07:10 i-saint

Any updates on support for Android? We are working with HTC and on Vive Focus and could really use this.

ChristianLaursen avatar Jan 30 '19 01:01 ChristianLaursen

Hi, just to stay that i'm waiting for Android support. This can be very useful in many AR applications.

JulioNectar avatar Mar 27 '19 17:03 JulioNectar

Any news on whether this works on IOS? We have a project using it and need to compile for an iPad. If anyone is interested in a job compiling this for us let me know.

tcmarchant avatar Apr 22 '19 09:04 tcmarchant

Android alembic support is very much needed here, thank you guys!

ochendricks avatar Jun 07 '19 09:06 ochendricks

I'd be willing to pay for mobile support

thePostFuturist avatar Jun 18 '19 21:06 thePostFuturist

So Alembic is not supported for Android?

dragologic avatar Jul 27 '19 10:07 dragologic

PLUS 1 here kind of pause our project here finding out Alembic does not support mobile,. WTF after 2 weeks work..

thomas4d avatar Aug 23 '19 03:08 thomas4d

I'm working on a project where the artist did alembic animations, but the project is for oculus quest. Poor planning on our part but this was not obvious from the Unity documentation. This should be bold and red and flashing on this page: https://docs.unity3d.com/Packages/[email protected]/manual/index.html

ssshake avatar Nov 02 '19 15:11 ssshake

agreed.

for what it’s worth, I wrote some glue code to create replacement animations w separate objects and step curves as a work around. if you have to resort to splines, make sure the crossfade keys are .00001 time steps (not frames) apart to avoid flicker.

you might also ping the folks at sketchfab and ask how they got abc working on android ios and chrome.

This is an .abc file...

https://sketchfab.com/models/56b667df878d4f12bc92b3744e4fee68

good luck.

-bay

On Nov 2, 2019, at 8:42 AM, Richard Bettridge [email protected] wrote:

 I'm working on a project where the artist did alembic animations, but the project is for oculus quest. Poor planning on our part but this was not obvious from the Unity documentation. This should be bold and red and flashing on this page: https://docs.unity3d.com/Packages/[email protected]/manual/index.html

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

spiraloid avatar Nov 02 '19 16:11 spiraloid

Hey, I managed to build static library libAlembic.a for iOS/arm64 architecture but I am having problem to properly map functions using [DllImport "__internal"]. None of respective function that are listed as symbols in abc.so (x86_64 arch) are present in libAlembic.a (arm64 arch). It seems as if you already remapped/wrapped them in the process somehow. Any insight on that matter? At least some pointers where to go from here. Thank you

49parallels avatar Nov 19 '19 12:11 49parallels

Is this still a problem, or is there a workaround now?

lkdgroot avatar Jan 31 '20 15:01 lkdgroot

AFAIK this is still very much a blocker still, it can't really be worked around.

peabnuts123 avatar Feb 03 '20 01:02 peabnuts123

I got around it by using the ( export OBJ's from Houdini) Vertex Animation Tools

https://assetstore.unity.com/packages/tools/animation/vertex-animation-tools-128190 https://assetstore.unity.com/packages/tools/animation/vertex-animation-tools-128190

JOy Peter T

On Mon, Feb 3, 2020 at 11:31 AM Jeff [email protected] wrote:

AFAIK this is still very much a blocker still, it can't really be worked around.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/AlembicForUnity/issues/65?email_source=notifications&email_token=AARLPNDNQMDMGGZL7WNDVM3RA5XVVA5CNFSM4EQD3MCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKSHKPY#issuecomment-581203263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARLPNB6KAVFJAGFJTE6H7LRA5XVVANCNFSM4EQD3MCA .

-- Most Joy Peter Thomas

Creating Things That Aren't Really Real,.. Since 1992 Creative Design in 2D - 3D - Interactive - Printing - Games - Music - Sound

www.thomas4d.com

thomas4d avatar Feb 03 '20 02:02 thomas4d

this might be of interest https://twitter.com/Gaxil/status/1261333600416514050?s=20

spiraloid avatar May 16 '20 07:05 spiraloid

@spiraloid Hi I tried this but didn't work https://github.com/Gaxil/Unity-AlembicToVAT/issues/1

smkplus avatar May 28 '20 07:05 smkplus

Wish this was clear in the documentation! Does not work on Android/IOS at all

TomHVR avatar Nov 30 '20 19:11 TomHVR

Hey @spiraloid would you mind sharing what you did?

Thanks Andrew

dioptre avatar Jan 26 '21 05:01 dioptre

Hey @spiraloid would you mind sharing what you did?

Thanks Andrew

sure, I ended up duplicating the mesh at frame intervals and then generating a flipbook animation between the separate meshes using scale. Here's the python addon script I wrote in blender to automate it for myself: https://github.com/spiraloid/Spiraloid-Toolkit-for-Blender/blob/2.91/Addons/BakeMeshFlipbook.py

you can find the menu for it here: image

and it has the settings here: image

it's the poor man's allembic, but at least it can run everywhere and be expressed in fbx, gltf etc.

Works great on liquids and changing topology effects. I put some per mesh frame decimation and boolean logic in too. if you scroll to the halfway point on my inkbots 3D comic (http://3dcomic.shop) you can see it in action on the drip panel. image

spiraloid avatar Jan 26 '21 06:01 spiraloid

Thanks so much mate, loved your comic btw

dioptre avatar Jan 26 '21 06:01 dioptre

this might be of interest https://twitter.com/Gaxil/status/1261333600416514050?s=20 Honestly, unity should use this approach instead of trying to port the alembic library to IOS and Android.

Nolkeg avatar Jan 05 '22 05:01 Nolkeg