Chaos Corona for 3ds Max > [Max] Corona Goodies - User Contributions

Corona to GLB

(1/3) > >>

James Vella:
Corona Vray to GLB is a free script that converts either Corona Physical or Vray Materials to GLTF Materials. 
Download here
(For those not used to github, once you press on this link, top right corner press the three dots "..." and press Download)

Install:
- Drag the script into your 3dsmax viewport.
- Customize > Customize User Interface > Toolbars > Category: Vella > Automate CoronaVrayToGLB
- Drag this toolbar button somewhere in your UI/Toolbars

Supported textures:
- Diffuse/Base Color/Albedo
- Roughness
- Metal
- Occlusion
- Emission/Self Illumination
- Alpha/Opacity
- Normal
- Clear Coat
- Transmission
- Sheen

Find Missing Bitmap Rules:
- Bitmaps are found using the prefix as the search and suffix for the correct texture. Example: Sofa_Diffuse.png or Sofa_Albedo.png, Sofa_Roughness.png, Sofa_Normal.png etc.

Example:




Version 1.0:
- This is just an alpha version to get it out into the wild, feel free to play with it, break it, give me your feedback.
- If you get an error message the UI will stop working so you will have to close/re-open it. Then let me know about it.
- Save your scenes before using it, undo is not always stable but you can try it (might crash with larger scenes).
- As always, have fun!

Instructions:

Tom:
Hi James,

Another script that sounds exciting, thanks for your awesome work.

Can you explain a bit what glTF is all about? I have no idea what it is. I've read a bit about it here https://github.khronos.org/glTF-Tutorials/PBR/ but it's still mysterious to me.

Also what is your script intended for? Is it for converting VRay (or Corona) materials to real time engines materials?

Thanks

PS: I run 3ds Max 2023 and I don't have access to GLTF materials visibly. I guess it comes with 2024 or 2025.

James Vella:
Hi Tom,

You're welcome. Basically GLTF/GLB is a real-time 3D file which allows you to embed it into webpages, some game engines also support it so its a one click import with materials instead of having to remake all the materials in the engine. Its suppose to be the 'jpg' of the 3D world, so anyone (including non technical people) can open your 3D file and spin it around natively on their OS, view it on their phone in VR/AR etc.

Yes the script basically has a few functions, first of all convert Corona Physical or Vray materials to GLTF Materials for 3dsmax. It can also search for textures in the directory such as Occlusion since you would have to otherwise do this manually (if you have 'Find Missing Bitmaps' enabled), or if you forgot to plug in some bitmaps but they are in the directory with the others as the requirement for GLB is minimum BaseColor, Rough, Metal, Occlusion, Normal. Last of all it comes with an Export button which to me is a bit more useful than the built-in exporter in 3dsmax since you have 3 options of exporting or testing.

3dsmax 2023 should have GLTF, if its not supported in your max version you will get a popup warning when running this so something else must be the issue (such as Corona Legacy material maybe).

This is just an evolution of my previous Vray to GLB script. This version now supports Corona Physical and comes with a UI. I also fixed a bunch of bugs for this one and that script is now obsolete. If you are curious about the GLTF workflow you can check out the video I made for it awhile back, it explains the ins and outs of it but obviously that script is now this one moving forward.

alexyork:
Fantastic work, thank you!

James Vella:
You're welcome alexyork.

Version 2.0:
- Fixes for the asset tracker when finding bitmaps (doesnt repath missing assets)
- Flags missing assets for the user to find and repath in the listener/popup window.

Navigation

[0] Message Index

[#] Next page

Go to full version