Jump to content
The Dark Mod Forums

Recommended Posts

Posted

One thing I wanted to test was .md5 meshes. Parallax mapping doesn't mesh very well with them, but if you crank it up to 11 you get something that looks like polished metal. Of course you can forget about proper texturing, but it reacts to light believably.

 

  • Like 2

It's only a model...

Posted

UV seams are very visible. Other than that I think it's usable.

Here's the material:

textures/test/parallax_gold
{
	diffusemap	textures/test_parallax/parallax_gold	
	{
	blend specularmap
	map _white
	rgb 1
	}
	{
		blend parallaxmap
		map textures/test_parallax/parallax_gold_height
		min -1
		max 1
		//refineSteps 5
		//linearSteps 20
		//grazingAngle 0.3
		offsetExternalShadows 0
	}
}

I used two noise textures made in GIMP: https://drive.google.com/file/d/1O77ZcNIkYetGk_w_53JXgwpntwOyEkKJ/view?usp=sharing

Generally .md5 mesh will look like any other geometry as long as it's not deformed by animation:

md5_parallax.jpg.5167713f17cd8a8231131ae7ad9994a6.jpg

  • Like 1

It's only a model...

Posted
On 10/28/2024 at 4:06 PM, Arcturus said:

Generally .md5 mesh will look like any other geometry as long as it's not deformed by animation

I lied. Actually parallax mapping works fine with animated .md5 models.

There must be something else going on with the builder model, and now I wonder if it has something to do with this situation:

cronnenbergs_builder_mesh.thumb.jpg.257bf793538ed42e9909e10179b7cc5e.jpg

With lower specularmap values looks like it's a bit rougher.

Continued in this thread.

  • Like 1

It's only a model...

  • 2 weeks later...
Posted
On 10/28/2024 at 1:44 AM, Arcturus said:

One thing I wanted to test was .md5 meshes. Parallax mapping doesn't mesh very well with them, but if you crank it up to 11 you get something that looks like polished metal. Of course you can forget about proper texturing, but it reacts to light believably.

Could you please explain where is heightmap used on the builder model?
How does it look without heightmap/parallax?

Posted

@stgatilov Builder guard has a uv seam in the middle of the chest and the texture is mirrored, so that thew me off. I don't think it works well in cases like this, but as my later video shows parallax mapping generally works with animated md5 meshes. And just to be clear, I'm not saying we should put it on our characters, I was just experimenting. That video of the builder shows parallax mapping with extreme values, because I found it interesting.

It's only a model...

  • 5 weeks later...
Posted (edited)
3 hours ago, datiswous said:

How would you make the edges look good? Currently it looks weird where it stops on the edge.

I mean with the cobblestones.

This is not real geometry tessellation this is cool but is a fake trick, a optical illusion, the surface is still flat, so it cannot do anything about the edges.

Parallax Occlusion Mapping (POM) is just a improved (and way more heavy) parallax mapping affect. 

Spoiler

Bellow another perhaps better video explanation for this stuff.

https://www.youtube.com/watch?v=cM7RjEtZGHw

 

Edited by HMart
  • Like 1
Posted

Just realized something: The new parallax effect would be a great way to get model-less building modules, for creators who'd rather try those over the model panels! They provide enough depth to realistically simulate bricks and beams and even windows, enough to look as good as sets like "models/darkmod/architecture/modules/exteriors/ext_timber01" and the others: You'd only need to create some extra geometry for corner pillars to hide the geometry edge effect in parallax, otherwise it should offer the needed depth to have detailed 3D building walls directly on brushes :)

Posted (edited)
34 minutes ago, HMart said:

This is not real geometry tessellation this is cool but is a fake trick, a optical illusion, the surface is still flat, so it cannot do anything about the edges.

Yeah ok, but it still needs a solution, no? Otherwise it cannot be used.

I was thinking maybe you have to add a border to the texture.

Edited by datiswous
Posted
3 hours ago, datiswous said:

How would you make the edges look good? Currently it looks weird where it stops on the edge.

I mean with the cobblestones.

There are a number of ways a the parallax effect might look "weird" on edges as it is just an illusion. There is the perspective distortion on edges, the fact the effect just doesn't work at glancing angles, the displacement not tiling perfectly across edges, being able to see "past" the edge into the parallax itself, etc.

This is why in the brief window this was a popular technique in games, you would often see it on something like a portion of brick wall that was surrounded in beams. Or in more modern example in Deus Ex: MD it used on cobblestones where you always have curbs to flank it.

Just like any "trick" you need to use it in a way that plays to it's strengths and hides it weaknesses.

1 minute ago, datiswous said:

Yeah ok, but it still needs a solution, no? Otherwise it cannot be used.

I was thinking maybe you have to add a border to the texture.

Did you consider adding a border with geometry, such as a curb?

  • Like 2

-=  IRIS  =-    ♦    = SLL =

Posted
1 hour ago, datiswous said:

Yeah ok, but it still needs a solution, no? Otherwise it cannot be used.

I was thinking maybe you have to add a border to the texture.

It has solutions, the easy ones are those the others talked about.

  • Like 1
Posted

Yes: A round patch should mitigate the effect of parallax being constrained to real geometry. Just make sure the material coordinates are perfectly aligned. For buildings my advice would be to have a pillar brush jutting out in corners.

Which reminds me of my question earlier, still curious to hear answers: Can we have material based building modules with parallax, as an alternative to the building module meshes? The new building modules are great but I'm definitely running into my fair share of issues with them: Having depth-based beams and panels for both building exteriors and interiors could look really amazing!

Posted

Probably not.

In case you didn't notice, game industry played with POM for a short while, and then mostly ditched it, because it's too performance-heavy. POM uses either path or raytracing, and it needs quite a few steps to make the shapes look good and not like a jelly or something. It requires quite a bit of optimisation to reduce tracing steps to be mostly nearby the player and nowhere else.

Besides, as GPUs went more and more powerful, and hi-poly to low-poly model workflows were already in use, it was much much cheaper to just add more geo to existing models and use LOD.

  • Like 1
Posted
On 12/13/2024 at 9:54 AM, peter_spy said:

Besides, as GPUs went more and more powerful, and hi-poly to low-poly model workflows were already in use, it was much much cheaper to just add more geo to existing models and use LOD.

I'm not sure this is true.
Even with per-pixel raytracing, POM seems to be faster than throwing more polygons.

Perhaps you want to test it yourself? 😉
It would really interesting to see competition between parallax maps and high-poly + normals maps (perhaps tessellation shaders also?)

But it is indeed easier to just throw more polygons at the problem, no need to dance around the quality issues.
Today's "cutting edge" approach is to use shitload of polygons with auto-generated LODs and hope that GPU does not die rendering it (UE5 Nanite).

  • Like 2
Posted
4 hours ago, stgatilov said:

I'm not sure this is true.
Even with per-pixel raytracing, POM seems to be faster than throwing more polygons.

Perhaps you want to test it yourself? 😉

Is it with modern RTX cards or with older hardware? I have no idea whether my RTX 3060 is a good candidate, but I assume these RT cores don't work automatically with POM. But yeah, I have a game-ready example with these cobblestones:

Normalmaps only:

image.png

Full geometry:

image.png

I also have more optimised variants of these.

Is parallax shader in the latest dev version, or can I download it separately?

  • Like 2
Posted
2 hours ago, peter_spy said:

Is it with modern RTX cards or with older hardware? I have no idea whether my RTX 3060 is a good candidate, but I assume these RT cores don't work automatically with POM.

Raytracing is special API, it has to be used explicitly. And it does not even exist in OpenGL.

Quote

Is parallax shader in the latest dev version, or can I download it separately?

It is in the latest dev version, but it is not something that magically works for all existing shaders.
You need to find a material with parallax stage, or create a custom one.
The latest dev build contains many parallax materials made by @Wellingtoncrab.

  • Like 3
Posted
6 hours ago, stgatilov said:

But it is indeed easier to just throw more polygons at the problem, no need to dance around the quality issues.

More polys/geometry usually isn’t easier in the context of this game, where making content which runs at all is about producing clean sealing geometry and portalization.

For all its faults an illusion like POM, which derives detail while retaining minimally complex sealing geometry seems well suited to that and the workflow of most mappers.

Maybe hardware tessellation could achieve something similar with less of the drawbacks, but I am pretty happy with this so far.

  • Like 2

-=  IRIS  =-    ♦    = SLL =

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • jivo

      I just uploaded a new version of the Visible Player Hands mod. It's been updated for TDM 2.13 and has new animations. Check out the post if you're interested!
      · 0 replies
    • datiswous

      I moved from Manjaro Linux (rolling release) to Linux Mint (LTS). One of the reasons was that I found the updates a bit too often and long. But now on Mint I get updates every day, although they're usually small updates.
      · 3 replies
    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 5 replies
×
×
  • Create New...