Quote:
Originally Posted by vickers03
@Nisgeis
do you know why some objects can't be seen through the transparent water, especially torpedos and plants?
:hmm:
|
I never really thought about it, so haven't looked. The game engine knows when the camera is underwater or not and uses two sets of rendering techniques for above and below water. The above water renderer renders a refracted scene of what is below the surface, plus the waves, plus the ships on the surface. I would imagine that the above water renderer knows not to render objects with a negative height origin, simply to reduce the load. Even rocks that should stick up out of the water are not rendered above the surafce, so there is some sort of culling going on.
Ships are rendered on the refracted scene, so some objects are drawn if they are below the surface. The only difference between the ships and the rocks is that there are different controllers on them in the .dat and .sim files etc to tell the game what to do with them. As the engine renders submarines and ships, but not torpedoes, plants and rocks, there must be a controller responsible for whether the object is drawn if it is underwater. My best guess would be that it was the unit_ship and unit_submarine controllers.
I'll have a look tonight, if I finish the transparency. Try adding the unit_ship controller to the torpedo and see what happens. Don't balme me if you get a blue screen of death though

.