Special Aircraft Service

Individual Mod Downloads for IL-2 1946 => Other Mods => Ships => Topic started by: agracier on February 17, 2013, 12:32:15 PM

Title: Wrecks of Ships
Post by: agracier on February 17, 2013, 12:32:15 PM
I was wondering if there is any method that can be used to simulate a ship wreck, say on a beach?

I know it's possible to put stationary ships and objects on land, or halfway up a beach. But they remain nicely upright, straight and 90 degrees to the ground. ordinarily they should be partway on their sides, leaning to one way or the other.

Is there any way of tilting objects so they would look more like a wrecked or beached vessel?
Title: Re: Wrecks of Ships
Post by: Herra Tohtori on February 17, 2013, 12:37:47 PM
You probably need to make a custom object which has offset and/or tilted geometry, so that when you place it on surface the model is slightly canted and/or partially sunk in the sand/mud or what have you.

If some coder hero could look into making 3D objects visible through the surface of water, that'd be pretty ace. I wonder if the water has an alpha value or just RGB values... and what would happen if it was made partially transparent.

I expect that when IL-2 was made, rendering underwater objects was not coded in for resource saving purposes.

Problem is, I don't think the shaders are easily modifiable. I wish IL-2 had open source code... :-X
Title: Re: Wrecks of Ships
Post by: BT~wasted on February 17, 2013, 12:59:05 PM
I think you can find such objects in your DBW 1.7.

Originally they appeared in an old mode called Ship Pack. There are few of them and I think they are just what you need :)
Title: Re: Wrecks of Ships
Post by: Helen-of-Sparta on February 17, 2013, 01:01:59 PM
If you do have this object you do wanted to maked to be adjusted at Static ini file then what is you can do is find for you his entry and adjust numbers at AlignToLand this can change for you angle at object, now if you do maked him to be higher object or to be lower object then you can maked to be included this line AddHeightLive and play with numbers to maked him to raise or to sink him object.  ;)
Title: Re: Wrecks of Ships
Post by: Mick on February 17, 2013, 01:03:26 PM
... I can confirm that there are damaged ships (tankers, destroyers, and cargo) that are slighly tilted in a ships mod, can't remember which one though ...  :(
Title: Re: Wrecks of Ships
Post by: agracier on February 17, 2013, 01:03:42 PM
I think you can find such objects in your DBW 1.7.

Originally they appeared in an old mode called Ship Pack. There are few of them and I think they are just what you need :)

I do know about one of two ships now that you mention it, but there are just 2 or so I believe. I was mainly thinking of wrecked landing craft, smaller ships and such, but especially wrecked landing craft which probably populated the landing beaches in large amounts ...
Title: Re: Wrecks of Ships
Post by: agracier on February 17, 2013, 01:05:58 PM
If you do have this object you do wanted to maked to be adjusted at Static ini file then what is you can do is find for you his entry and adjust numbers at AlignToLand this can change for you angle at object, now if you do maked him to be higher object or to be lower object then you can maked to be included this line AddHeightLive and play with numbers to maked him to raise or to sink him object.  ;)

I have been looking at the static ini entries, and with the aligntoland, I thought there was only 1 or 0, meaning either horizontal or flush to the landscape ... how would you get it to be set to an angle?
Title: Re: Wrecks of Ships
Post by: Flying H on February 17, 2013, 01:06:49 PM
I have a hunsh someone was trying to make wrecks lieing keel up, a few years ago! I donĀ“t remeber who and what happened to the project, it may have been in AAA times! Anyone  else remember?
Title: Re: Wrecks of Ships
Post by: asheshouse on February 17, 2013, 01:15:48 PM
http://www.sas1946.com/main/index.php/topic,17910.msg192194.html#msg192194
(http://i239.photobucket.com/albums/ff113/Asheshouse/image102-1.jpg)
Title: Re: Wrecks of Ships
Post by: Mick on February 17, 2013, 01:23:01 PM
... I believe it is Asheshouse's mod

Here are a few screens, there are also 2 landing crafts models ...  ;)

(http://i55.photobucket.com/albums/g157/micksaf/grab0000-18_zps20688f63.jpg)

(http://i55.photobucket.com/albums/g157/micksaf/grab0001_zps9efdc630.jpg)

(http://i55.photobucket.com/albums/g157/micksaf/grab0002-3_zps0764dffc.jpg)

(http://i55.photobucket.com/albums/g157/micksaf/grab0003-3_zpsed8aa4cc.jpg)

(http://i55.photobucket.com/albums/g157/micksaf/grab0004_zpsc95d6995.jpg)

Title: Re: Wrecks of Ships
Post by: Flying H on February 17, 2013, 01:23:54 PM
Yeah ashe! Was it that recent!?
Title: Re: Wrecks of Ships
Post by: Mick on February 17, 2013, 01:27:30 PM
... may be that one ...

http://www.sas1946.com/main/index.php/topic,12978.0.html

EDIT:

... yep, I confirm, and there is a DLC wreck and a small wreck ...  ;)
Title: Re: Wrecks of Ships
Post by: asheshouse on February 17, 2013, 01:40:28 PM
FatCat was the original creator of ShipPack, at AAA, and was instrumental in getting me started on ships. I only re-packed ShipPack to make it v4.10 compatible. The USS Oklahoma capsized however was mine, converted from the Warspite hull.
Title: Re: Wrecks of Ships
Post by: Uufflakke on February 17, 2013, 02:40:39 PM
... I believe it is Asheshouse's mod

Here are a few screens, there are also 2 landing crafts models ...  ;)

(http://i55.photobucket.com/albums/g157/micksaf/grab0000-18_zps20688f63.jpg)


We were discussing the sunken ships/ visibility of the submerged parts of a ship etc in another thread and still one thing I don't understand.
How come that ground texture is visible in shallow waters but we can't see that part of the sip below sea level like in the above screenshot?
Even in more recent games like Cliffs of Dover or Rise of Flight -from what I've seen on screenshots-  submerged parts are invisible.
Title: Re: Wrecks of Ships
Post by: Herra Tohtori on February 17, 2013, 05:35:16 PM
I think it's related to rendering order, z-buffer, or simply that the water is rendered as a "blanket" surface with no transparency, and what we interpret as transparency (seabed visible at shallows) is actually included to the water surface shaders, rather than being actually a different surface at different depth.

It's computatively cheaper, that's for sure. If the surface were transparent you would have to make up its colour based on environmental reflections; if you don't need to take that into account you can give the water a standard diffuse colour defined in the map data files, I believe. You would also need to take the water's opacity into account...

With modern hardware, it would be doable, not sure why even newer games don't do it (or they might do it, but the effect may not be noticeable).
Title: Re: Wrecks of Ships
Post by: asheshouse on February 18, 2013, 02:09:27 AM
In landscape 3D terms there is no sea bed modelled. The lowest level defined is the water surface, 0 metres. If the water was made semi-opaque then a "real" 3D sea bed would need to be modelled.