BabylonJS / Exporters

Exporters for Babylon.js and gltf file formats
Other
597 stars 307 forks source link

max 2024 support #1087

Open lo-th opened 1 year ago

lo-th commented 1 year ago

Hi thanks for your hard work, this is the most useful of the plugins i test export from 3dsmax 2024 2023 version seems work except rename

Exception raised during export. Node will be exportes as dummy node. Message: Methode not found: 'System.String Autodesk .Max.IModifier.get_Name()'

so glb file not work hope that can help for futur support of 2024 version

TODO

bghgary commented 1 year ago

If someone is willing to contribute a change to fix this, that would be great. See here.

lo-th commented 1 year ago

aie babylon export is much more advanced than blender export ... and 3ds self export is just a joke.

hop someone can help it's probably just a matter of syntax.

FrogsInSpace commented 1 year ago

I added 3ds Max 2024 support. I did'nt test extensively, just the basic export functionality

https://github.com/BabylonJS/Exporters/pull/1090

lo-th commented 1 year ago

hum no more log on export with last build ? but is great step

FrogsInSpace commented 1 year ago

Yeah - i noticed this too , i only checked this release and do not get any log output too https://github.com/BabylonJS/Exporters/releases/tag/Release20230606.1

So this issue will still be in the 3ds Max 2024 version too

FrogsInSpace commented 1 year ago

If someone is willing to contribute a change to fix this, that would be great. See here.

@bghgary

Pullrequest for Max 2024 exporter update is ready for review https://github.com/BabylonJS/Exporters/pull/1090

bghgary commented 1 year ago

Thanks @FrogsInSpace. I merged your PR. I updated the deploy steps in ADO to include Max 2024. We still need someone to add Max 2024 to the installer.

lo-th commented 1 year ago

i try direct install but get error on each 2024 .dll ?

FrogsInSpace commented 1 year ago

i try direct install but get error on each 2024 .dll ?

possibly the installer doesnt work just copy the dll's from the 2024.zip to your <3ds Max 2024>/bin/assemblies folder and everything should work as expected

lo-th commented 1 year ago

ok i see have to add

<configuration>
   <runtime>
      <loadFromRemoteSources enabled="true"/>
   </runtime>
</configuration>

to 3dsmax.exe.config great

kramsurfer commented 8 months ago

It was a long road to find this .config file change requirement.

Can we add that to a README.md in the 2024 zip file or have it added to the Exporter's Manual Install web page? ( not sure who maintains the documentation but it'd be an easy edit and it currently has /Max 2015/ recommended pathing in it...haha )

Does the installer make this adjustment? It currently does not "see" the 2024 installer.

Thanks SOOO much for updating this. I'll be in 2024 likely for the next 3-4 years, so this is awesome that it works in here!

kramsurfer commented 8 months ago

Seems the "old" documentation where this information about the installers is archived on git hub but still live and a primary source of information when doing searches... :-(

echadwick-artist commented 8 months ago

Running into same problem here. Latest version of Max, latest version of Babylon exporter.

How exactly is the argument supposed to be added into the 3dsmax.exe.config file? I've tried four different ways, but Babylon always fails export with the same message from above in this thread.

Here is the default config:

<?xml version="1.0"?> 
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
  <system.diagnostics>
    <assert assertuienabled="false"/>
    <sources>
      <!-- This removes Binding error messages coming from AdWindows components -->
      <source name="System.Windows.Data" switchName="SourceSwitch">
        <listeners>
          <remove name="Default" />
        </listeners>
      </source>
    </sources>
    <switches>
      <add name="SourceSwitch" value="All" />
    </switches>
    <trace autoflush="true" indentsize="4"></trace>
  </system.diagnostics>
    <runtime>
        <AppContextSwitchOverrides value="Switch.MS.Internal.DoNotInvokeInWeakEventTableShutdownListener=true"/>
    </runtime>
...

If I append within the existing <runtime> section, it still fails:

    <runtime>
        <AppContextSwitchOverrides value="Switch.MS.Internal.DoNotInvokeInWeakEventTableShutdownListener=true"/>
        <loadFromRemoteSources enabled="true"/>
   </runtime>

If I add two <runtime> sections, it fails:

    <runtime>
        <AppContextSwitchOverrides value="Switch.MS.Internal.DoNotInvokeInWeakEventTableShutdownListener=true"/>
   </runtime>
    <runtime>
        <loadFromRemoteSources enabled="true"/>
   </runtime>
abolog commented 7 months ago

Solution: Download Max_2024.zip (not installer) Extract and overwrite everything in: C:\Program Files\Autodesk\3ds Max 2024\bin\assemblies