• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MCX error when converting trees

Messages
544
Country
germany
Hi Arno,

I wanted to reduce the number of drawcalls using only one texture instead of individual textures of each tree before. So I merged all trees together in a single object with many textures and tried to reduce the number of textures with the drawcall optimizer of MCX (latest development release from today).
Although the process seems to work, I get an error message when predicting the resulting drawcalls. Here it is:

Code:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei ASToFra.ObjectModel3D.Vector3d.op_Addition(Vector3d v1, Vector3d v2)
   bei ASToFra.ObjectModel3D.CrashTree.GetBoundingBoxTotal()
   bei ASToFra.ObjectModel3D.CrashTree.GetCrashBoxes()
   bei ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderCrashTree(CrashTree crash)
   bei ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderScene(Int32 clientWidth, Int32 clientHeight)
   bei ASToFra.ObjectRenderer.Renderer3DHandlerType.Paint(Object sender, PaintEventArgs e)
   bei CSGL12.CSGL12Control.OnPaint(PaintEventArgs e)
   bei System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   bei System.Windows.Forms.Control.WmPaint(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
ModelConverterXLaunch
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/FS_Design/Model_Converter_X/ModelConverterX.exe.
----------------------------------------
ASToFra.Utils
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.

If you need more informations or files to reproduce the error, please let me know. The result of the conversion process (3ds-file) was correct and could be imported in Gmax again to separate the trees at the end but the window of MCX shows the yellow red cross (well known in the starting times with MCX).

Jörg
 

Attachments

Hi,

To see if I can reproduce the error, I would need to have the textures as well. Without the textures the drawcall minimizer skips the materials :)
 
Found out, that the approach is not so easy as I thought because the names of the individual objects is gone after conversion. So I keep it as it is for the moment and only reduce the size of the texture one step.
Would be great to have a feature in MCX which allows to combine different textures of multiple objects to reduce the number of drawcalls, but at the moment it is like it is.
Jörg
 
Hi,

OK, I'll still have a look at the error.

It's on the wishlist to do drawcall minimizing for multiple objects at once as well. But not sure when I have time to look into it, it's not that high on the priority list at the moment.
 
Hi Arno,
no problem I already knw that because you said that in an earlier post. Because most of the people care about drawcall-optimization (hopefully) in these days it would would be a nice part.
But to focus on ScenProc is more important now. I started with my first project using scenproc and it is a quite nice tool.
Only the documentation...

Jörg
 
Yes the documentation is high on the todo list. But every time people find new bugs to distract me :)
 
Back
Top