Duke-RT icon indicating copy to clipboard operation
Duke-RT copied to clipboard

Things found in E2M4 and release 0.5.5 (Liquid)

Open 3DMasterNL opened this issue 1 month ago • 1 comments

Not particularly any major issues and bugs found; and not quite a feature request, but kinda; so I decided to choose "blank" post.

So, E2M4 is very good for the most part, very interesting colored light, and light use in the beginning after opening the door. The only real issue is the few closed off corridors that essentially have lighting information; it's not truly dark needing the night vision goggles which would have been something; it's just kind of greyed out. I chalk this up to the mod isn't done yet.

Strangely the liquid physics seem low res compared to the rest, which produces a very "this does not fit" issue in the whirling lava tube that contains the Devastator in this level:

Image

It looks a lot worse in motion.

Sludge, water, and lava have very different consistencies and physical movement, let alone light reflecting and refracting behavior; yet, all three seem to be governed by the same physics; which seem to fit best with water. Sludge should be mostly slow moving, with a lot of material clinging to the sides of whatever it is contained by; lava has another behavior based upon how hot it is and whether or not it is cooling; the lava becomes black, at time even solid, until new hot liquid lava remelts the hardened material and spills out through it, before fully submerging and melting the remainder; it's probably not necessary to go that far in the physics, but the blackening part of it, considering we're raytraciing, that would be a good thing to add.

Continued in reply....

3DMasterNL avatar Oct 24 '26 12:10 3DMasterNL

And then, there is water:

Image

Water has a wide range of behaviors when it comes to light; whether or not it is see-through, opaque or reflects light depends on the ambient light value, the angle of the light, the consistency of the water - most notably what other substances are absorbed / solved in it, and what material is just floating in, not fully in sollution - the color and reflectivity of the material that makes up the bottom and sides of what the water is contained in matters too.

Now it's probably not a good idea to perfectly simulate the whole thing; but there are ways to fake it. Create several different water physics; one describing an opaque water, one with reflections, another with light pass through (and some reflections) and place them where appropriate; this would require level editing, or perhaps implementing something like maphacks (that existed in the HRP to tell the engine how to orient a model without going into the levels themselves; something Raze seems to lack, or Cheello didn't implement because I have come across voxel objects that are not oriented correctly) that can change what liquid physics is used.

For example; the above screenshot if from E1M4; and the new water is dull, non-reflective at all blue; now E1M4 is at night; the only water that is blue at night; is very clear water with very light bottom so light can easily pass through; think light-blue pools or tropical beaches with near white sand as the bottom. The water in E1M4; should be black with white reflections of light in particular on waves; and vague reflections of the surrounding; again depending on all things mentioned above. If the water is clear enough; it's possible the red light coming from inside the submarine would be visible lighting up some of the area below the water.

Yes, I know, Duke3D doesn't have seethrough water, however the Build engine does; and not just the Shadow Warrior version of the Build engine. In Build an underwater section is area created somewhere else in the map, the water is defined as a teleporter, and you get teleported into the underwater area. So to see under the surface of the water, you would need to be able to look into an entirely different area... like the security cameras already do. I don't know when 3D Realms realized the basic code can also work for water and viewing underneath it; but it was clearly too late to put it into Duke3D, but not too late to put it into Shadow Warrior. I don't know whether Raze already has this, so it can also run Shadow Warrior, but if not, I'd say give the developers of Raze a poke to put it in.

Once again, this would require some level editing, but imagine the view from the same position; if the water was black reflective off of proper simulated waves; and part of the underwater submarine could be seen bathed in the light coming from inside it.

3DMasterNL avatar Oct 24 '26 13:10 3DMasterNL