![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
11-01-11, 12:09 PM
|
#1 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
I've tried the last version and it seems to stop working for me completely. On trying to open almost any file I get this:
Code:
Silent Hunter 5 GR2 Editor/Viewer v1.0.357.0 by TheDarkWraith Reading in cfg file... DirectX initialized SH5 install path set to C:\Ubisoft\Silent Hunter 5 GR2 file path is C:\Ubisoft\Silent Hunter 5\data\Sea\CMD_small_boat\LifeBoat.GR2 ********* Exception while presenting Exception is ***1054;***1096;***1080;***1073;***1082;***1072; ***1074; ***1087;***1088;***1080;***1083;***1086;***1078;***1077;***1085;***1080;***1080;. -2005530516 (D3DERR_INVALIDCALL) ***1074; Microsoft.DirectX.Direct3D.Device.GetTransform(TransformType state, Int32* result) ***1074; Microsoft.DirectX.Direct3D.Device.GetTransform(TransformType state) ***1074; Microsoft.DirectX.Direct3D.Transforms.get_World() ***1074; TheDarkWraith.SilentHunter5.GR2Bone.Render(Graphics& graphics) ***1074; TheDarkWraith.SilentHunter5.GR2Model.Render(Graphics& graphics) ***1074; TheDarkWraith.SilentHunter5.GR2File.Render(Graphics& graphics) ***1074; TheDarkWraith.SilentHunter5.Graphics.Render() *********
|
|
|
11-01-11, 05:56 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
Is your DirectX up to date? Try running the web updater for it at Microsoft's website. If you're using Win7 and have never ran the web updater then that is most likely where the problem is. Win7 comes with DirectX10 and I'm targeting DirectX9 (currently). You have to install DirectX9 from Microsoft for Win7. Yes it sounds strange but it's true. And don't worry DirectX9 and DirectX10 can live together on your system (they are completely different assemblies) ![]() Has this problem been there with every version I have released? If not, what version did it start? |
|
|
|
11-02-11, 01:34 AM
|
#3 |
|
Black Magic
![]() |
v1.0.366.0 released. See post #1
This version adds lighting to the app. You can add ambient lighting, direct lighting, point lights, and spotlights. It will let you add as many lights as your video card supports (GTX590 should be 10 cause that's what it showed for me). You control every aspect of the light - ambient color, diffuse color, specular color, direction, position, etc. Not every light has the same parameters though (Direct lighting doesn't have a position - it only has direction). The direction parameter is a vector. If you want to know what each parameter is/does google search them. You'll need to search for the light type (direct light, spotlight, point light) and add DirectX after it. There are two new tabs in the tabcontrol box, Rendering and Lighting. The cullmode and shademode has been moved to the Rendering tab. Anything dealing with lighting is under the Lighting tab. To add a light click on the buttons in the Add light box. To remove a light select the light from the treeview and the click Remove in the Remove light box. To temporarily 'remove' a light uncheck it in the treeview. If it's checked then DirectX is using it for lighting calculations. To edit the parameters of a light double click it in the treeview. This will bring up the Add/Edit light page. To add ambient lighting click on Enable (make it checked) under Ambient lighting. You can also change the color of the ambient light by clicking the Color button in the ambient lighting box. Each light (except ambient light) has 3 colors - Ambient, Diffuse, and Specular. To change the color of each one click the button in the Ambient, Diffuse, or Specular box. I'm setting the renderstate material properties according to what was read for the mesh's material's extendeddata. I haven't added a screenshot button to the app but that will be in next version. Next version will hopefully have the ability to render using the programmable pipeline (shaders). Currently all rendering is being done using the fixed-function pipeline in DirectX. I'm going to let the user choose which rendering style they want to use - programmable or fixed-function. I'm also going to add the ability to import other objects to the current object. Those @LNK entries? I'm going to try and make the app automatically load those objects. I'm going to try and do the same for those cfg# entries. Lots of work to do still. This just adds some 'fluff' to the app
Last edited by TheDarkWraith; 11-02-11 at 11:07 AM. |
|
|
11-02-11, 09:57 AM
|
#4 | |
|
Sea Lord
![]() Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
|
Quote:
Very Good TheDarkWraith
__________________
What we do in life echoes in Eternity |
|
|
|
11-02-11, 08:39 PM
|
#5 |
|
Black Magic
![]() |
v1.0.373.0 released. See post #1
This version I started coding in the ability to edit the skeleton/bone's parameters. To edit the skeleton/bone's parameters double click the skeleton or bone in the bones tab's treeview display. That will bring up this window: Currently the only thing you can change is the LODType for the skeleton. The numbers in parenthesis after the LODType is section number / offset in section / position in file. This same information is found in the bones part when you expand the node. Once focus has left the box you edited the change is immediately written to the file. For the entries in the bones part of the new window they will act the same way. You will double click the item and a new window will appear that will allow you to edit it's value(s). Still coding in that part If you spot anything that looks irai on this new window let me know
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
