![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]()
This is my first ever SH4 mod, so be gentle :P
Bought SH4 & U-Boat missions last week, but have some 3D / modding experience so decided to fix something about the 20mm single's gun sight as I was having some issues with target visibility after getting caught wanting to shoot the damn gnats buzzing around down. I've made the following changes to make the use of the 20mm AA Gun more useable, without affecting realism. (Hopefully the zoomed view is actually more realistic now than the "nose on" position of the original) * Now has "thinned" sight struts. * Moved the "Aiming Pin" to allow better visibility of the crosshairs * Changed the initial/zoomed positions to reduce the "nose on the sight" issue of the zoom position. * Calibrated the view so the sight is accurate @ 1000 yards. ![]() ![]() I'm not sure if this gun was modded before I installed TMO163, so can't say whether it'll work on stock 1.4/1.5 until either it's tested or I learn more about what TMO changes, so feedback would be greatfully received, it was made partly out of my own necessity, and partly as a learning experience for import/export of 3D into SH4, hope somebody else finds it useful. You can download here, just unzip to your mods directory and install with JSGME. http://files.filefront.com/13241807 Thanks to WEBSTER for the suggestions for version 1.1, and to akdavis for his farsight mod so I could learn how to change the camera positions. Krishna. Last edited by Krishna; 02-08-09 at 08:36 AM. |
![]() |
![]() |
![]() |
#2 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
well a while back i asked about that gun and a really nice guy made a mod just because i asked about it. it was done by "akdavis" who did something with the clip distance so your nose isnt pressed against it, there was a minor issue with the tub view so i think it needed a little more refining. i never understood what values he was changing but even though it wasnt perfect i was happy with what he did at the time because the gun was usable finally.
maybe if you get together with him and putting your mod and his together would get a thinner gunsight from your version and fine tune the proper view distance with his. this is his mod link http://files.filefront.com/20mm+sing.../fileinfo.html and this is the thread about it http://www.subsim.com/radioroom/showthread.php?t=137027 |
![]() |
![]() |
#3 |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]()
Thanks, I'm looking into camera position data at the moment, I'd hoped to tweak the zoom levels to achieve similar, basically having a further out "scan" view for scanning the sky, and then use the 2nd zoom level for an "aim" view that was less "nose on the sight" than the current zoomed view.
I tried to do this through cameras.dat, however it doesn't seem to let you use fractions for the zoom levels, only whole numbers, I'll look into camera positions more tomorrow. Cheers. K. |
![]() |
![]() |
![]() |
#4 |
The Old Man
![]() Join Date: Apr 2004
Location: The Shifting, Whispering Sands, NM
Posts: 1,463
Downloads: 10
Uploads: 0
|
Nice Ideas
|
![]() |
![]() |
![]() |
#5 |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]()
Got it!, I can see how akdavis did it with the 20mm dat file now, and leave the cameras.dat alone (MUCH preferred, too many camera.dats to clash with).
The position is a little too far back for my liking on akdavis's mod, but tomorrow I'll definitely have a finished version with my thinner struts, and a further back position that is somewhere between the two, so one view will be further back for scanning (But not as far back as the twin) and the zoomed view for aiming/firing will be somewhere between the current default and zoomed. But nearly 6am now, so really should get some sleep. :P Watch this space ![]() |
![]() |
![]() |
![]() |
#6 |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]()
Updated version now available, details in Original Post. (Thanks WEBSTER!)
|
![]() |
![]() |
![]() |
#7 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
now can you find a way to make the planes appear bigger at distance so you can see them sooner? you can hear them long before you ever see them and i think if you can hear them you should also be better able to see them. they seem to pop out of nothing sometimes and it would be nice to see a speck coming in on the horizon. its like they suddenly get big just before they are ready to dive on you but i think they should start getting bigger sooner than that. its like the middle stage between tiny and full size is being skipped. |
|
![]() |
![]() |
#8 | ||
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]() Quote:
Quote:
I'll certainly give it a look, although the LOD data is likely to be model (aircraft) related rather than camera related, so may well depend on the mods installed, certainly not a fix I'd recommend putting into general distribution. K. |
||
![]() |
![]() |
![]() |
#9 |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]()
Found it for you, You can find the LOD settings for the aircrafts in their dat file in their respective directories under \data\air, open with S3D and look for the following:
Node 7 --> *aircraft name_MainFrame* --> 9. UnifiedRenderControler --> 10. UnfiedRenderControler Select this node and in the property tree you'll see 2 different keys you can change: MediumLODDistance = 15 (On mine, TMO & RSRD installed) LowLODDistance = 80 These values are in Decimeters (1 = 10 Meters) Just change them to further out, so put your LowLODDistance at 120, and your MediumLODDistance at 80 and you should move the LOD switching positions much further back, This WILL likely have an effect on performance, as one reason for switching to different LOD's is so unseen / redundant polygons are not rendered unnecessarily. Not tested it, but try it and see how you go Submarine School's "Convoy Attack" is a good quick AA test, there may well be a global LOD setting somewhere I've not seen, or worse a hardcoded value somewhere but hopefully not and this will be enough. K. |
![]() |
![]() |
![]() |
#10 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
no time today but i will try your instructions tomorrow and see what happens. im not looking for dramatic change just seems a little off as is. |
|
![]() |
![]() |
#11 |
The Old Man
![]() Join Date: Apr 2004
Location: The Shifting, Whispering Sands, NM
Posts: 1,463
Downloads: 10
Uploads: 0
|
Insteresting tread
Would love to see A/C rendered sooner.
![]() |
![]() |
![]() |
![]() |
#12 | ||
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
![]() after trying many settings that didnt show any effects, im thinking the LOD in LODDistance stands for level of decent angle and has nothing to do with the distance or size they first appear at. after much testing im thinking its not the distance that is the problem but rather the planes are showing up as too tiny a speck to see. i can barely see them against bright blue sky and white clouds much less trying in overcast grey clouds. i cant say if they are supposed to be that tiny but for my taste they are way too hard to see even if you know where they are and the direction they are flying in. maybe while they are at long distance the plane textures could be swapped out for a black dot so its easier to locate them, then as they get closer switch to the plane textures.. |
||
![]() |
![]() |
#13 | |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]() Quote:
What a 3D engine usually does is have a reduced detail model with a lower number of polygons that is used for displaying the model at distances where higher polygon models are unnecessarily wasteful. After further checking it seems that these two LOD settings affect texture & lighting only, not the 3D model, in which case it's possibly as I first thought, and the 3D model LOD handling is either hardcoded into the game, or just uses standard graphics driver routines, not something that can be adjusted. |
|
![]() |
![]() |
![]() |
#14 | |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
|
|
![]() |
![]() |
#15 | |
Watch
![]() Join Date: Jan 2009
Posts: 21
Downloads: 5
Uploads: 1
|
![]() Quote:
Texture LOD is controlled via the objects texture mipmaps, which if you open the objects texture .dds file in photoshop (with a necessary .dds plugin filter) you will see. An example of what it should look like (not from SH4 obviously :P) is: ![]() With the mipmaps being the increasingly smaller versions to the right of the main image. You could (theoretically) edit the texture so the furthest right version(s) are just black boxes and see if that works. Krishna. Note: I'm only a week into playing SH4, let alone modding it, so anything I say is theoretical until I learn more about the way SH4 handles things, and there are more people here I'm sure with a better idea of how the engine works, if so please feel free to correct me if I go down the wrong track :P |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|