arbruijn / deslevelobj Goto Github PK
View Code? Open in Web Editor NEWConvert Descent 1/2/3 level meshes to .obj 3d files
License: MIT License
Convert Descent 1/2/3 level meshes to .obj 3d files
License: MIT License
This is awesome! Thank you! Love this tool!
I saw the new version and tried converting a D2 level, but I got an error.
Here is the input provided:
I attached a zip with the hog and mn2 files.
Here is the error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Exception: wrong level version: 7
at Classic.ClassicLevel.Read(BinaryReader r) in C:\Dev\Ascentroid\Github\DesLevelObj\DesLevelObj\ClassicLevel.cs:line 277
at DesLevelObj.MainForm.Convert(String filename, String level, Boolean dumpTex) in C:\Dev\Ascentroid\Github\DesLevelObj\DesLevelObj\MainForm.cs:line 145
at DesLevelObj.MainForm.btnConvert_Click(Object sender, EventArgs e) in C:\Dev\Ascentroid\Github\DesLevelObj\DesLevelObj\MainForm.cs:line 184
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
DesLevelObj
Assembly Version: 0.8.5.0
Win32 Version: 0.8.5.0
CodeBase: file:///C:/Dev/Ascentroid/Github/DesLevelObj/DesLevelObj/bin/Debug/DesLevelObj.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
[8ball.zip](https://github.com/arbruijn/DesLevelObj/files/10367584/8ball.zip)
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4590.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Thanks!
I was thinking it might be cool to have the option to be able to export the player start locations, and powerup locations, to a separate OBJ file. The idea being that each position of each object could be a placeholder cube, or sphere, with the name of the object being set to what it is supposed to represent (PlayerStart1, Plasma1, Plasma2, HomingPack1, HomingSingle1, HomingSingle2, etc), and the position of each object mirroring the coordinates + rotations of the object(s) from the Descent map.
That would be awesome, because then I could write my own scripts outside this tool to replace those objects with my own stuff in another game engine, etc.
Anyway, not sure if this is possible. Just thought I'd add the idea here and see if it might be something feasible.
๐ก @arbruijn
Blarget and I were chatting and I converted one of this new levels "Desync".
https://sectorgame.com/dxma/mission/?m=2097
This is what the UVs look like in Descent/Inferno editor:
This is what the UVs look like for the obj file after export:
Looks like some of the UV data is getting messed up. Not sure what, though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.