Modding, Mission Design, and Coding > FS2 Open Coding - The Source Code Project (SCP)

Parallax mapping - Height maps and mipmapping?

(1/2) > >>

DaBrain:
Does it make sense to create a mipmaps for height maps?


It's a bit hard to for me to see what kind of good/bad results that would have.

Zacam:
Does it create unecessary issues or filesize in doing so?

And wouldn't height maps be used only on larger ships anyway? I suppose it becomes a question of visibility range and rendering.

You also don't have to create a full set of mip-maps.

taylor:

--- Quote from: DaBrain on March 22, 2008, 08:20:50 am ---Does it make sense to create a mipmaps for height maps?

--- End quote ---
It would affect speed (remember that it if can transfer a smaller mipmap level over the bus then it will be faster than without mipmaps), but it probably won't affect quality all that much.

One possible change is to modify your height map on lower mipmap levels to give you more of an effect so that you can still see it well at a distance.  Whether that would actually be worth the effort would really depend on the specific content though.



--- Quote from: Zacam on March 22, 2008, 01:43:31 pm ---You also don't have to create a full set of mip-maps.

--- End quote ---
Although the code is hacked to allow such a thing, it really is best to always create a full mipmap chain.  About 94% of the memory required for mipmaps is in the first 2 levels, so the full chain really isn't going to hurt memory wise, but it can really help performance wise both for rendering purposes and because the game doesn't have to do anything special so that a partial chain will work.

Zacam:
So how many levels is considered a "full" set?

DaBrain:

--- Quote from: taylor on March 22, 2008, 07:20:39 pm ---
--- Quote from: DaBrain on March 22, 2008, 08:20:50 am ---Does it make sense to create a mipmaps for height maps?

--- End quote ---
It would affect speed (remember that it if can transfer a smaller mipmap level over the bus then it will be faster than without mipmaps), but it probably won't affect quality all that much.

One possible change is to modify your height map on lower mipmap levels to give you more of an effect so that you can still see it well at a distance.  Whether that would actually be worth the effort would really depend on the specific content though.


--- End quote ---

Thanks, that clears things up.
Modifying the mipmaps is no problem.

Navigation

[0] Message Index

[#] Next page

Go to full version