![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-25-11, 08:05 AM
|
#1 |
|
Weps
![]() Join Date: Sep 2002
Location: SW France
Posts: 358
Downloads: 137
Uploads: 0
|
Seasons Greetings to all.
Thanks for the latest version TDW. Unfortunately, I am still getting the error and it now appears before I try to load anything. It is slightly different, as follows:- "Exception is: Error in the application. ********* ********* Exception caught in OnPaint" When I ran DbgView I also noticed quite a few lines with the following error message:- 00000714 13.52196884 [4080] LODError 0x10B3C (0x10D04) Any ideas, please? I also note that the application window doesn't fit on my resolution (1440 x 900) - what resolution do you run at? Regards MLF
__________________
Je pense donc je fuis! |
|
|
12-25-11, 10:17 AM
|
#2 |
|
The Old Man
![]() |
Merry XMass to all.
![]() Using new version I was able to edit the Conning_7B_01.GR2 file. ![]() @ TDW Do you know when adding new Node's will be implemented? ![]() I currently see refferences that suggest this functionality is being worked on. Regards! TheBeast |
|
|
12-25-11, 11:49 AM
|
#3 |
|
Black Magic
![]() |
It's continually being worked on. Once I find an algorithm that works then I can finally start adding new items to GR2 files. The algorithm that I'm looking for is the order in which to redo the pointers (that I know of - there may be more pointers that I'm not aware of which would invalidate the algorithm all together).
|
|
|
12-25-11, 11:59 AM
|
#4 | |
|
Black Magic
![]() |
Quote:
That LODError is from a file. It appears you tried to load a file. It's something it read from the file. I'd like to see the full DbgView output if possible. What I'd like to see from it is you run the app. After it's loaded don't try to load anything. Move the camera around with the mouse for a little bit. Then try to load a file. Ensure Debug is enabled (under Misc tab) I might also code up something that will read your video card's capabilities and output it all to text file so I can see if there's something I've coded in thinking will work with anyone's video card that actually isn't and have you run it ![]() Can you run my SH map viewer app found in \data\Applications of my UIs mod without problem? |
|
|
|
12-25-11, 02:50 PM
|
#5 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
I've tried to open CharacterBodyParts.gr2 in /data/Characters it gave a lot of 'this app cannot open image...' errors then complained about unknown 'BoneWeight' vertex.
Is it yet to early to open this file in GR2EVI? |
|
|
12-25-11, 03:36 PM
|
#6 |
|
Black Magic
![]() |
|
|
|
12-25-11, 05:04 PM
|
#7 |
|
Black Magic
![]() |
Have the unknown vertex component names added - all is good there.
The bad: what I interpreted bone bindings as was which bone (only 1) the mesh was bound to. This was a totally incorrect assumption from trying to load the \data\CharactersCharacterBodyParts.gr2 Now I see what the purpose of these bone bindings are: for skinned meshes.This causes me to rethink many things I assumed when creating this... I think the assumption I made about the bone binding (only 1) still holds true for how a mesh is placed in the world. But this makes me question if SH5 is following this rule Has anyone tried moving a bone (say a funnel or something) and seeing what the effects are in-game yet?
|
|
|
12-25-11, 06:08 PM
|
#8 |
|
Black Magic
![]() |
this little 'find' has cleared up something I've always wondered why I had to do. When I'm reading mesh data I read the number of bone bindings. Usually it was just 1. I would then find the pointer to the bone binding(s). I passed this pointer to my bone bindings class. Now this is where it didn't make any sense: my bone bindings class had to dereference that pointer to get it's actual pointer. Never could figure out why. Now I understand why. Since there can be multiple bone bindings this first bone bindings pointer points to where the list of bone bindings are at
|
|
|
12-25-11, 06:46 PM
|
#9 |
|
Black Magic
![]() |
This characters gr2 file is turning out to be a gold mine of information
Once again I assumed that all vertex data is located in section 1. This file has proved me wrong again. Vertex data can be found in section 3 also (this looks like skin mesh data )
|
|
|
12-30-11, 04:07 PM
|
#10 | |
|
Weps
![]() Join Date: Sep 2002
Location: SW France
Posts: 358
Downloads: 137
Uploads: 0
|
Quote:
Sorry for the delay in replying - family chrimbo type things took over. I have tried on a 3rd PC and also on a vmware install and same problem. Directly it loads and shows the "Mickey Mouse" screen it errors in the status window. One time I got the following when exiting:- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at TheDarkWraith.SilentHunter5.GR2File.HasBeenModifie d() at TheDarkWraith.SilentHunter5.GR2EditorViewer.tsmiFi le_DropDownOpening(Object sender, EventArgs e) at System.Windows.Forms.ToolStripDropDownItem.OnDropD ownShow(EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnDropDownS how(EventArgs e) at System.Windows.Forms.ToolStripDropDownItem.ShowDro pDownInternal() at System.Windows.Forms.ToolStripDropDownItem.ShowDro pDown(Boolean mousePush) at System.Windows.Forms.ToolStripMenuItem.OnMouseButt onStateChange(MouseEventArgs e, Boolean isMouseDown) at System.Windows.Forms.ToolStripMenuItem.OnMouseDown (MouseEventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseDown (MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseDown(MouseEv entArgs mea) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.MenuStrip.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3082 (QFE.050727-3000) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- GR2EditorViewer Assembly Version: 1.0.477.0 Win32 Version: 1.0.477.0 CodeBase: file:///E:/GR2EditorViewerLatest/GR2EditorViewer.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000) 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.3053 (netfxsp.050727-3000) 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.3053 (netfxsp.050727-3000) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.DirectX.Direct3DX Assembly Version: 1.0.2902.0 Win32 Version: 5.04.00.3900 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll ---------------------------------------- Microsoft.DirectX.Direct3D Assembly Version: 1.0.2902.0 Win32 Version: 9.05.132.0000 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll ---------------------------------------- System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.21022.8 built by: RTM CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- Microsoft.DirectX Assembly Version: 1.0.2902.0 Win32 Version: 5.04.00.2904 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll ---------------------------------------- Microsoft.VisualC Assembly Version: 8.0.0.0 Win32 Version: 8.00.50727.3053 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualC/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.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. I cannot run SH map viewer without erroring. All in all I'm up the creek without a periscope which is a shame as this application looks like the works as far as adding new units, and modifying others. Don't like the feeling I'm missing something..... Regards MLF
__________________
Je pense donc je fuis! |
|
|
|
12-30-11, 05:33 PM
|
#11 |
|
Black Magic
![]() |
Franken-NVV was successfully saved to GR2 file and reloaded
![]() It even passed the Granny Viewer test (it loaded and loaded correctly) ![]() Such a simple exploit... |
|
|
12-30-11, 06:55 PM
|
#12 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
12-31-11, 12:42 AM
|
#13 |
|
Black Magic
![]() |
In order to verify that the texture coordinates are being written/read correctly I coded in something to view them. These are the first set of texture coordinates for the NVV hull 03. Something doesn't look right as they seem displaced a little to the right and down (things just don't line up right like the door below)
![]() I took the texture coordinates and subtracted 0.5f from X and added 0.5f to Y to get to screen coordinates (rendered as transformed primitives - thus already specified in screen space). I rendered them to a surface where the surface is the diffuse texture for NVV hull 03. I then saved this texture to a graphics stream and used that stream as input into creating an new image. The new window's background image was set to this image. I had the TextureLoader class save the texture (and thus the rendered surfaced) to file so I could display it here. Anyone have any ideas why it seems displaced?
|
|
|
12-31-11, 02:50 PM
|
#14 |
|
Black Magic
![]() |
Okay figured out my problem. The problem was due to perspective projection of camera (and not setting the camera before rendering to surface!). To fix I rendered the texture to a full-screen quad and drew that, then I drew the texture coordinates. Since all of this was being rendered to a surface I had a perfect texture to display when it was done (I added some new buttons that allow you to view the texture coordinates for a mesh's diffuse or AO map):
I was also being stupid about how to render the texture coordinates. After sleeping on it I realized that since I'm using transformed (screen space) coordinates to render the texture coordinates I don't have to do anything but multiply the texture coordinates by the screen resolution (actually the render to surface dimensions since it's technically the screen during the rendering of them) You can change the color of the rendered texture coordinates via button. You can also save this image to file (double click anywhere in window - it will save as the type you have specified under the misc tab for screenshots). In the display window title bar is tells you the mesh name : the texture name (texture type) This window is resizable by using mouse like all other windows in windows (starting size is 600 X 600) I have noticed that some of the AO maps seem to be not correct. Looking at the NVV Hull 03 you can see some problems in it. Last edited by TheDarkWraith; 12-31-11 at 03:36 PM. |
|
|
12-31-11, 06:19 PM
|
#15 |
|
The Old Man
![]() |
Could it be possible to Export Maps to Clipboard?
![]() When working on skins it would be fantastic to have a layer showing where everything is located llike limber holes etc that is hidden prior to save. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
