PDA

View Full Version : how to turn off the land reflections on water?


makman94
04-29-14, 06:58 PM
hello to all subsimers,

does anyone has an idea if there is a way to turn off the land reflections on water?

Hitman
04-30-14, 09:43 AM
I think there is a parameter in the scene dat that controls reflections because I remember that some mods provide a full reflection of your sub on the surface, others a blurred image and others a very faint one. But that one you already probably know :hmmm:

I also think in the 3D model files was a parameter for the reflection, maybe look at it with Silent Editor?

vanjast
05-01-14, 01:08 PM
I've also seen a 'reflections' option in S3D somewhere... I just cannot remember which file - most probably the sub files.. so I'd imagine there would be a terrain one somewhere.
:)

makman94
05-02-14, 01:04 PM
I think there is a parameter in the scene dat that controls reflections because I remember that some mods provide a full reflection of your sub on the surface, others a blurred image and others a very faint one. But that one you already probably know :hmmm:

I also think in the 3D model files was a parameter for the reflection, maybe look at it with Silent Editor?

I've also seen a 'reflections' option in S3D somewhere... I just cannot remember which file - most probably the sub files.. so I'd imagine there would be a terrain one somewhere.
:)

hello Alberto and Vanjast,

yes, there are in several places (like sub .dat files ,ship.dat files...) the ''water reflection'' feature but nothing is altering the land reflections. i can't see anything in land - terain files that can be edited with s3d and alter the land reflections so i am wondering where (and if) these tweaks can be made somehow.

@Alberto: the 'water reflection' nodes at scene.dat (and at skycolor.dats ) are altering the overall reflections of enviro and not parts of it. i am running after to find -if there is- a way to totally switch off the land reflections on water

makman94
05-04-14, 02:01 PM
I'd say the TerrainReflectionShader handles what your looking for.
That's coded in the SH3.exe last I recall.
:hmmm:

hello Jeff,

seems that you are right to look at this place :up:

i opened the sh3.exe with a hex editor and i found at the description a ''TerrainReflectionShader''.
is there a way by changing some bytes to switch off the TerrainReflectionShader or you think that it is more complicated than this?

makman94
05-06-14, 06:29 PM
I did a quick look at sh3.exe in IDA Pro.
The TerrainReflectionShader calls a pixal shader which may be in the Kernel.dll?

There may be a boolean switch to turn it off but I've not looked that close at it.

you think that there is any chance to locate,in case that exists, this switch ?

Seeadler
05-07-14, 09:30 AM
I have tested it with my improved d3d9.dll and edit the shader instructions so that they do nothing.

The TerrainReflectionShader is not only used to reflect the terrain on the water but also used for reflection of the environment(clouds, (sun)light, ...) on the water.

TerrainReflectionShader on:
http://i.imgur.com/ctmngEfl.jpg (http://imgur.com/ctmngEf)http://i.imgur.com/HkyYkD3l.jpg (http://imgur.com/HkyYkD3)

TerrainReflectionShader off:
http://i.imgur.com/AL52JeFl.jpg (http://imgur.com/AL52JeF)http://i.imgur.com/7OHqWuUl.jpg (http://imgur.com/7OHqWuU)

makman94
05-08-14, 03:33 PM
I would think it's possible to locate the pixal shader then go from there.

Will you give it a try Jeff ?

I have tested it with my improved d3d9.dll and edit the shader instructions so that they do nothing.

The TerrainReflectionShader is not only used to reflect the terrain on the water but also used for reflection of the environment(clouds, (sun)light, ...) on the water.

TerrainReflectionShader on:


TerrainReflectionShader off:


hello Seeadler,

may i have a look at this ? can you send me the file with ONLY the TerrainReflectionShader been disabled?

Fahnenbohn
05-25-14, 03:52 PM
Hi Seeadler ! Your test is very interesting you know. :hmm2: I would be delighted if you could send me the sh3.exe file with the TerrainReflectionShader OFF. Since i've bought the game, i have many bugs with water reflections, propably due to my graphic cards ... You are my last chance...:ahoy:

Fahnenbohn
07-08-14, 09:04 AM
Hello. I have downloaded IDA Pro (free version). Is there anyone who could say me how to switch off the TerrainRelectionShader please ? I would be VERY happy to do this, because of many problems with water reflections ... HELP PLEASE !!!!