Does anyone have saved copy of IMVU's Unity API?

Questions, Tips and Concerns about Creating on IMVU in general.
User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Wed Sep 06, 2017 6:48 am

IMVU had released an API for integrating IMVU with Unity 3D. It seems that is considered "deprecated" and no longer available in the Unity asset store.

Does anyone have a saved copy of that API they can share out somewhere or send my way?

Thanks!
-Dan / ner
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
gaf210
Prolific Pixel
Posts: 134
Joined: Sat Feb 25, 2017 10:27 am
Location: Argentina
IMVU Homepage: http://avatars.imvu.com/gaf210
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by gaf210 » Wed Sep 06, 2017 8:50 am

You mean the unity api they offered when they did that competition for game developers?

eta: just tried the link and it shows this :/

http://developer.imvu.com/

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Wed Sep 06, 2017 9:19 am

IMVU had posted this:
https://forum.unity3d.com/threads/relea ... ty.385484/

It allowed Unity developers (Unity is a separate game engine, for those that don't know) a way to interface, sorta, with IMVU. The idea, I think, was to make a game or app in Unity and use the assets from IMVU. The idea didn't catch on and it seems IMVU has let it slide.

I'm not even sure the API that IMVU exposed would still work - but I had an idea and wanted to give it a try.
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
gaf210
Prolific Pixel
Posts: 134
Joined: Sat Feb 25, 2017 10:27 am
Location: Argentina
IMVU Homepage: http://avatars.imvu.com/gaf210
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by gaf210 » Sun Sep 10, 2017 7:36 am

From what i read on the comments there they have dropped support from the api on their side :shock:
That would explain why they taken off the Games tab on next and bar blitz doesnt work anymore. I wonder what lead them to decide this, it looked like a really good idea and so many development took into making it :/

User avatar
Polystyrene
Pixel Princess
Posts: 26
Joined: Sat Feb 25, 2017 6:06 pm
Location: Brisbane, Australia
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by Polystyrene » Mon Sep 18, 2017 8:30 pm

I found IMVUnity_0_3_1.unitypackage in my downloads folder:
https://drive.google.com/open?id=0BwgZ- ... WZTSGJBZGs

But I think it has been abandoned as Segallion was the driving force behind it.

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Tue Sep 19, 2017 10:04 am

That is exactly what I was looking for - thank you, Polystyrene!
And you're both right - support seems to have dropped. Sadly, where they usually drop support but leave things functional (such as with particles) it seems their Unity support is just... gone. It wasn't required for the project I'm working on, but would have been a nice little bonus (and who doesn't like bonus's?).

I don't really know any IMVU staff (maybe one?) but... do you think it's worth reaching out to Segallion? Is he still at IMVU? In case it's a matter of just flipping a switch to let things work...?

Thank you both for answering! I really do appreciate you taking the time. :)

-Dan / ner

P.S. I can't help but grin at Poly's booty pic here on the forums. I bet there's quite a tale behind where that came from...
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
Nums
Sage Pixel
Posts: 27
Joined: Wed Mar 01, 2017 3:43 pm

Re: Does anyone have saved copy of IMVU's Unity API?

Post by Nums » Tue Sep 19, 2017 3:22 pm

Image

Just the last line of her post. Looks like he's gone.

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Thu Sep 21, 2017 10:03 am

Nums!
Thank you for the update. Bad news is better than no news. Or maybe it's not bad news (I don't know Segallion and whether he was much loved or... not). It won't affect the project much, but good to know I can't use IMVU avatars directly from IMVU. One small feature to cross off - but maybe it will make room for two others.

Thank you for taking the time to post. It is much appreciated. :)

-Dan / ner
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Mon Jun 03, 2019 8:13 am

I got ahold of the IMVUnity samples. Took some work, but got an older version working again. That is, I can load my avatar into Unity and manipulate it.

But I just realized I don't have the newest version. Per this thread, there's a version 0.5.2.
https://forum.unity.com/threads/release ... ty.385484/

Does anyone know how to get a copy of this newest version, or how to contact DimitriX89 (he's mentioned in that thread and might know of a way to get a copy)?

Thanks,
Dan / ner
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
yokoed
Prolific Pixel
Posts: 88
Joined: Sat Feb 25, 2017 3:24 pm
Location: Pgh. Pa.
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by yokoed » Mon Jun 03, 2019 9:56 am

DimitriX89

30 minutes ago
I can look on my backup disks but cannot guarantee it. Plus Im surprised someone got it to work. Last time when I tried (it was more than year ago) it just refused to log in

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Mon Jun 03, 2019 9:58 am

Thanks Dimitri!

And yes... the DLLs definitely do not work anymore. But with some tweaking... got the older versions working. But the "newest" version that IMVU released had some updates that would come in handy, such as handling morph animations.

Thanks for taking the time to look!

-Dan
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Tue Jun 04, 2019 11:41 am

Well, if you interested in newest one, I found the file. Though I am not sure you will be able to use it. They made the authentification more complex in later versions, and developers were required to sign up for the tester program and obtain special AppId number. No idea if it can be obtained today if you did not sign up before the cancellation. http://www.mediafire.com/file/l141t18l2 ... itypackage (also requires Photon Unity Networking asset to run)

What about the older version, I also have 0.2 somewhere but do not know how old is yours.

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Wed Jun 05, 2019 7:52 am

Thank you, Dimitri!

I've found 3 version of the IMVUnity packages so far (using version numbers from IMVUnity.dll):
0.1.4.0 (missing Feed and a few other items)
0.1.4.0 (with Feed and a few other items)
0.3.5.0 (the version you sent - has some morph info)

I have the first version working again - it required tweaking code to handle the new data streams and some slight tweaks to authentication. I'll be taking a look at the version you sent starting later today. Fingers crossed I can get around any "missing/required" bits.

From 0.1.4.0 (missing Feed and a few other items):
Image

-Dan / ner
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Wed Jun 05, 2019 9:51 pm

I'm indeed running into an issue with needing an OAuth app_id to get logged in. However, I think there's an easy work around for that since OAuth isn't, strictly speaking, required. I'll keep chugging away.

Thank you again, Dimitri!
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Thu Jun 06, 2019 12:52 am

Good job making it work! I have two questions, first, does it work with newer products (submitted after cancellation), and second, will you share your "patched" version?

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Thu Jun 06, 2019 8:21 am

I'm not sure what "newer products" means? I believe it will work with any product, though I've only just started testing. I don't know how many of IMVUs properties are mapped to Unity objects, but it seems mostly complete for meshes, textures, animations, skeletons. I see the newest version supports Morphs and blend weights, but I haven't given that a try yet.

And yes, I'll upload the working code to github once it's in a decent state. I'm 99% sure I'll have to change the OAuth parts and fall back to the standard Login UI, requiring a username/password. That has the same "issue" that a user running a Unity game would have to trust the author of the game to just pass their credentials through to IMVU and not store them anywhere. For many, that may be a deal breaker. OAuth would be nice to have but... if IMVU has removed the ability to create/manage app IDs then there may not be a choice. It *does* seem like the OAuth API is still in place. Which means any existing app IDs might work? I'm not sure as I didn't create any before they (seemingly) cancelled the project.

As for authentication... in my example, I'm just using Unity with my own credentials so I'm not worried about any "trust" issues. So for me, using the old style username/password seems a viable solution to get everything working. Or at least to test.
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Thu Jun 06, 2019 10:14 am

Well, my assumption was that this system relied on some kind of server to process the assets. So new products would fail to be converted since that server doesnt work. But if I'm wrong and everything happens on local PC, thats good news. I wonder if it is the same for photon-enabled multiplayer version though.

And thanks for (intended) sharing! Maybe we will be able to make some game demos and convince the staff to get it back on track.

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Thu Jun 06, 2019 11:41 am

I'll know more soon enough, but so far... it seems like the loading of assets into Unity goes through the same loading code/URLs regardless of how you authenticate. Once authenticated, a token is saved and subsequent calls to get assets (seem to) just work. I don't *think* newer products have any sort of knowledge about OAuth being required (if I understood you right)?

For Photo-enabled calls... I haven't done any testing there. I haven't used Photon in Unity yet. From what I read in the docs, it's just another way to load assets through Photon instead of generic HttpWebRequest. If you (or anyone else) are using Photon, hopefully you can test and make sure things are working. Or if there are demos that utilize Photon, I can take a look.
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Thu Jun 06, 2019 12:37 pm

If the mesh conversion is done on local PC, then sure, no servers are required. I just did not know. What about Photon, I think the main point of its integration has to do something with seeing other players' outfits in multiplayer. Otherwise you wouldnt be able to obtain assets from other accounts than one you currently logged in, right?

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Thu Jun 06, 2019 1:24 pm

For your personal assets (part of your outfit), the API imvu provided had product a url with all of your current products (which then allows downloading those assets). I *hope*, for security's sake, that the api is locked down so you can't provide *any* user or any outfit - or worse, any product id. My experiments so far were with the initial version of the IMVU/Unity package and the demos only used your current avatar. If later versions allow bringing in friends then... I'm not sure : ) When I get there I'll see what method they use to find those avatars (and related products) and what allows them to get downloaded. Or better, what *isn't* allowed.
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Sun Jun 09, 2019 1:25 pm

I have the updated version working about 95%. I'm able to run all of the demos that came with the package, including loading my list of friends and opening their avatars into Unity. This seems a bit odd, since some friends have their outfits set to hidden - yet this would be a way to view their products. There's even a working demo that opens a list of my outfits and I can select any of them - it will load in those older outfits and display a full list of products in the outfit, with names and thumbnails.

The two pieces not working:
1. Some materials with opacities aren't working yet.
2. The Photon demo gives some kind of error. It appears to be *mostly* loading the avatar, then gets a general Null Reference exception. I don't know much about Photon so I don't know if I can solve this one.

There's also a UNet demo that *seems* to be working, though I don't really know what it's supposed to do.

===========================

Once I dig into the security (or lack thereof) concerns, if all goes well I'll post to github.
I didn't remove any of the OAuth authentication code. In fact, there were already options for different types of authentication (though it seems clear that IMVU would really only want to support OAuth for any "real" applications). For testing in Unity, I've turned on old-fashioned credentials (username/password) that get stored in a cookie between calls. Any real app would suffer from this as it would require a user to trust an app with their credentials. I suppose for some that's ok, but really... the OAuth logic should be there.

Luckily, once you have *some* kind of authentication token you can make the same API calls, regardless of OAuth or normal credentials.

Short version - it certainly seems like this solution will work going forward. And if IMVU ever re-enables the portal to create app IDs and allow OAuth clients, it's an easy switch.

-Dan / ner

===========================

For fun... some screenshots:

Image

Image

Image
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Mon Jun 10, 2019 11:17 am

After doing some more experimenting, I've determined that releasing the source code would be far too "dangerous." That is, the code allows for loading any product made by any dev and getting full access to the meshes, textures, etc. It would be trivial to create a "ripper" type of app to steal assets.

The original IMVUnity package allowed loading your avatar (or one of your outfits) or your friend's avatars, and I can make that available in DLL form if anyone is interested. I'll have to put back in the "Login UI" logic as the only authentication that works is via username/password.

-Dan / ner
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Tue Jun 11, 2019 8:26 am

DLL is fine for me, if it works. Maybe I'll even have proof of concept of what I was trying to do soon. I do not know if sharing source code would be any more dangerous (tried IMVUnity back then and it doesnt allow you to access mesh data by script; only way would be a video memory ripper which even the official client isnt protected against), but I am grateful for what you did anyways.

DimitriX89
Sage Pixel
Posts: 33
Joined: Fri Mar 10, 2017 4:01 am

Re: Does anyone have saved copy of IMVU's Unity API?

Post by DimitriX89 » Sat Jun 22, 2019 2:14 pm

Any progress on DLL version? I've made an demo of avatar control rig in Unity. Next step would be is to combine it with actual avatar loader and to test posting screenshots on Feed. But for that I'll need API. http://www.mediafire.com/file/d3ed8cn5b ... +maker.zip

User avatar
nerseus
Sage Pixel
Posts: 19
Joined: Fri Mar 10, 2017 1:40 pm
Location: Arizona
IMVU Homepage: http://avatars.imvu.com/nerseus
Contact:

Re: Does anyone have saved copy of IMVU's Unity API?

Post by nerseus » Tue Jun 25, 2019 11:40 am

Small progress update - the transparency issue is still an issue. I can verify the textures are coming down correctly, and the Unity Shaders that IMVU uses look good. Once I make the free time, it shouldn't take long to solve.

I'll keep posting updates here for those interested in a completed/working DLL.
Side note: I'm moving on 5 July. That will limit my time on this between now and then.
I'm always around to answer meshing questions! PM me or find me on Skype: djatarchon

(I also take mesh requests from time to time)

Post Reply