corrupted Textures

#1
Hey,

So.. I tried to export my model from ModelConverterX to P3D V4, but when it's loaded, the textures will look a bit.. ..strange... I made sure, that the texture is a .ddl file, but that didn't fix it either.


WIP 19022018.PNG
 

Pyscen

Resource contributor
#2
Hello Neiggou...

What was used to convert the dds file? Was this the same dds file from your previous thread, where you used an Internet dds file converter? If so,... then I suggest you use either Imagetool or a photo editor with the plugin tool... such as GIMP along with the dds plugin. The GIMP Photo Editor can be downloaded at:

https://www.gimp.org/

GIMP-DDS Plug-in (32-bit or 64-bit “.zip” File). Make sure you get the latest release.

Found: https://code.google.com/archive/p/gimp-dds/downloads
Install: Drive:\Program Files (x86) \GIMP 2\lib\gimp\2.0\plug-ins
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#3
How does MCX show the model if you load it again? Looks like a corrupt texture to me.
 
#4
Habe genau das selbe Problem:

In Prepar3Dv4:
errorTexture.jpg


In ModelConverterX sieht es ganz normal aus:
errorTexture2.jpg


Konvertiert mit Photoshop DDS Plugin und mit Imagetool.exe getestet.
Keine Ahnung warum dieser Fehler auftritt.
 
#6
Mhh.. So I think, I got it, but now it creates both scenery- and texture folders, but doesn't put the files in it. :/


Here's the message when I want to export it:

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

************** Ausnahmetext **************
System.ArgumentException: Ungültiger Parameter.
bei System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
bei ASToFra.TextureObject.TextureImage.get_Image()
bei ASToFra.TextureWriter.GenericWriter.Write(TextureImage tex, String filename, TextureFormat format)
bei ASToFra.TextureWriter.DXTWriter.Write(TextureImage tex, String filename, TextureFormat format)
bei ASToFra.TextureWriter.AllTextureWriter.Write(TextureImage texture, String filename, TextureFormat format)
bei ASToFra.ObjectEditor.TextureConverter.ConvertTexture(TextureImage texImage, TextureSize size, String outputPath, TextureFormat outputFormat, String texName, Boolean overwriteExisting, String orgTexName)
bei ASToFra.ObjectEditor.TextureConverter.ConvertAllTextures(String outputPath, Boolean prefixTextureNames, String prefixString, Boolean overwriteExisting, Boolean requirePowerOfTwo, TextureFormat outputFormat)
bei ASToFra.ModelConverterX.ConvertWizardForm.ConvertTextures()
bei ASToFra.ModelConverterX.ConvertWizardForm.cmdConvert_Click(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
Launcher_ModelConverterX
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ModelConverterX.exe.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
ModelConverterX
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ModelConverterX.DLL.
----------------------------------------
Interfaces
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/Interfaces.DLL.
----------------------------------------
ObjectModel3D
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ObjectModel3D.DLL.
----------------------------------------
ObjectWriter
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ObjectWriter.DLL.
----------------------------------------
ObjectReader
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ObjectReader.DLL.
----------------------------------------
EventLog
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/EventLog.DLL.
----------------------------------------
ObjectRenderer
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ObjectRenderer.DLL.
----------------------------------------
GRV11DLL
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/GRV11DLL.DLL.
----------------------------------------
ParticleEffects
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ParticleEffects.DLL.
----------------------------------------
System.Configuration
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8827 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Utils
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/Utils.DLL.
----------------------------------------
TextureObject
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/TextureObject.DLL.
----------------------------------------
Accessibility
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
TextureLoader
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/TextureLoader.DLL.
----------------------------------------
GMap.NET.WindowsForms
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/GMap.NET.WindowsForms.DLL.
----------------------------------------
GMap.NET.Core
Assembly-Version: 1.5.3.3.
Win32-Version: 1.5.3.3.
CodeBase: file:///X:/Dokumente/ModelConverterX/GMap.NET.Core.DLL.
----------------------------------------
Coordinates
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/Coordinates.DLL.
----------------------------------------
System.Data.SQLite
Assembly-Version: 1.0.66.0.
Win32-Version: 1.0.66.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/System.Data.SQLite.DLL.
----------------------------------------
System.Data
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
System.Transactions
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll.
----------------------------------------
System.Web.Services
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll.
----------------------------------------
System.EnterpriseServices
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll.
----------------------------------------
wdbrtenh
Assembly-Version: 1.5.3.3.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
ObjectEditor
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/ObjectEditor.DLL.
----------------------------------------
TextureWriter
Assembly-Version: 1.0.0.0.
Win32-Version: 1.3.0.0.
CodeBase: file:///X:/Dokumente/ModelConverterX/TextureWriter.DLL.
----------------------------------------
System.Drawing.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.8825 (WinRelRS3.050727-8800).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.resources/2.0.0.0_de_b03f5f7f11d50a3a/System.Drawing.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem

Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#7
Can you try the latest development release? It seems you are still using the older version 1.3.
 
#8
Yeah. I think that solved the error, but still I'm too dumb to get it right. MCX now exports it, but doesn't show a texture in P3D..
Fehler_04042018.PNG
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#9
Black object could be due to missing textures, are all needed textures in the right folder?

And which format you used for the textures?
 
#10
I think I did something wrong. MCX didn't create a texture file, so maybe I exported it in the wrong format or something like that?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#11
Did you use the convert and place object wizard or just export it? If you just export it, you have to convert the texture manually.
 
#12
Oh yeah! Thanks so much! Now it's working.. I thought, because I saw no files in that folder, it didn't export right, so I tried with normal exporting.. Thanks so much!
Es geeeeht 04042018.PNG
 
#13
Hi everyone... it seems that I have a different version of this problem. Now, after I finally got around to exporting AND placing BGL scenery files, now the textures are somewhat off. When I exported this building, some of the textures probably didn't save correctly, and I still see the actual BUILDING but most of it is black.

https://drive.google.com/file/d/1CVBZ5ZQZshmocRK6VY7KgcUatfR_5R6-/view?usp=sharing

Additionally, the positioning and heading is CLOSE but it's a little off. However, I believe I entered in the correct configuration when I exported. Has anyone else had a problem with exact positioning?
 
#14
How many decimal places did you use for the positioning? Two decimal places is not enough.

If you don't have all the textures in the proper folder, can't you move them in yourself?
 
#15
How many decimal places did you use for the positioning? Two decimal places is not enough.

If you don't have all the textures in the proper folder, can't you move them in yourself?
Well, I honestly don't mind much about the actual textures. As long as the actual BUILDING is there, and its close enough to it's real-world location that is good enough for me....
 
Top