Page 2 of 6

Re: Megascans Survival Kit

Unread postPosted: Wed Jan 02, 2019 3:42 pm
by jandersunstar
I tried making a plugin using the Megascan API but I wasn't able to get any data, so I contacted them and this is what they told me:

Access to the Megascans API is not granted to standard consumer-level subscriptions. This is most likely why you're running into this issue. I would recommend using the Bridge and Mixer tools to download assets.

You would need to wait until Bridge is compatible with Clarisse. We're working on integration but it's coming at an as-yet unknown date.



Re: Megascans Survival Kit

Unread postPosted: Wed Jan 02, 2019 4:06 pm
by desmond
after testing some from mr. Y inputs, i found that the megascan bridge script is being blocked by the main loop, so its not accesible to outside queries, runng the same script outside clarisse, works fine.
maybe mr. bruce or bvaldes or any other iso guys have some handy solutions?


Re: Megascans Survival Kit

Unread postPosted: Sun Jan 06, 2019 11:29 pm
by ayanik
Aleks(Desmond) truly helped me a lot and I finally have come to the point where I would like to share the work I've put in the kit. I will take care of the bridge communication later if I get the listener running with a new script I am waiting on. I have several things planned for future versions if people like the kit.

I renamed the kit to Clarisse Survival Kit, because it's not only for Megascans anymore.

Aleks and I have tested it on Windows, a linux installation and OSX. Make sure to read the instructions on the github page if you're dealing with OSX.
Also make sure Clarisse is not running when installing! Otherwise the shelf installation will do nothing. My script makes a backup of your shelf. If somehow there's a bug and your shelf got ruined you can locate the backup in your config folder. Delete the corrupt shelf.config and rename your backup.

If you like what I have done all donations(see button on github page) are welcome to support me in future development and so I can renew my maintenance. It would also make me happy if you used it at a company or used it in a piece of art and show me what you've done with it.

You can download the package from the github link below:

If you find any bugs let me know.

Re: Megascans Survival Kit

Unread postPosted: Mon Jan 07, 2019 11:08 am
by dboude
Hi there,

Thanks for sharing guys. It looks like some files are missing or I missed something in the proccess ? I've got this message when I try to install the tool :

Code: Select all
U:\_resources\Python\clarisse_survival_kit-master>python install
Traceback (most recent call last):
  File "", line 5, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools

Cheers ;)

Re: Megascans Survival Kit

Unread postPosted: Mon Jan 07, 2019 11:20 am
by ayanik
Hi it looks like you do not have setuptools installed.

Try installing it with the following command. If you don't have pip installed it's included in the Python installation. Make sure it's checked when you install Python.
Code: Select all
pip install setuptools

Also update pip to the latest version if needed with the following command:
Code: Select all
pip install -U pip

Maybe I should update the if others have the same problem.

Re: Megascans Survival Kit

Unread postPosted: Mon Jan 07, 2019 11:56 am
by dboude
Works now :)

There were non ascii characters in my shelf.cfg (weird) so the install couldn't be finished. After fixing those characters the installation worked.

Code: Select all
    new_cfg = shelf_file[:write_index] + generated_string + shelf_file[write_index:]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 2713: ordinal not in range(128)

I will test it now.

Thanks ;)

Re: Megascans Survival Kit

Unread postPosted: Mon Jan 07, 2019 12:45 pm
by ayanik
Oh merde! Apparently my software was not French proof.
I will fix it when I get back home.

Let me know how the rest goes.

** Edit ** Fixed the Unicode bug

Re: [Released] Clarisse Survival Kit

Unread postPosted: Thu Jan 10, 2019 11:42 am
by ayanik
I added a new script to quickly generate a decimated pointcloud(regular pointcloud or point uv sampler) from the selected geometry. You have several selectors available for decimating the point cloud.

** Edit **

I also added the Import Megascans Library function. With this you can import the whole library or specific categories in one go. Make sure when importing 3d objects to load your library in a context that is not currently displayed. Otherwise it will try rendering all objects.

Re: [Released] Clarisse Survival Kit

Unread postPosted: Mon Jan 28, 2019 12:09 am
by ayanik
Many new improvements have been added and bugs have been fixed:

- I restructured the context layouts of all scripts, because they were getting very crowded and hard to manage
- I separated the Megascans and the generic importer into their own provider files which are dynamically loaded when you specify the asset type. Other import providers can be added much easier.
- OBJ Files get imported and materials get assigned. Shading rules are generated also. ABC are imported as references.
- Textures that contain UDIMs are automatically loaded as streamed map files. .tx files also
- I added a Stream Map Toggle function which allows you to convert the selected texture to Streamed Map or vice versa. Almost all settings are maintained. Reorder nodes are created if map file was single channel.
- If you have ACES installed all assets are imported using the proper ACES Utility SRGB and Linear color spaces.
- F0 files get imported and assigned to IOR
- 1/IOR files get imported and assigned to IOR
- If none of the above IOR files exist, but a Metallic texture is present it hooks a blend node into the IOR value.

Because I restructured a lot things may not work properly with older scenes.

I hope you like it. If you have any cool ideas or found some bugs let me know.

The following image was done with a few clicks with the Mix script. I plan on creating a tutorial about this.

Re: [Released] Clarisse Survival Kit

Unread postPosted: Mon Jan 28, 2019 9:19 am
by dboude
Super Work Ayanik ! Thanks