Reply
Reply
 
Thread Tools Display Modes
SHEPEIRO's Avatar
Old (#1)
sharpening up the mips in a DDS manually in photoshop to counter terrain shading blurriness

personnally i disagree with this, i find it makes any tiling issues much worse and really just ups the contrast in the mips not really makes any difference to the sharpeness of the image, also makes any aliasing issues much worse.

but has anyone got any tips tricks or examples of it working really well?
senior lighting artist @ r*north
Offline , veteran polycounter, 3,423 Posts, Join Date May 2006, Location edinburgh  
   Reply With Quote

MoP's Avatar
Old (#2)
i don't know anyone who manually edits mips in photoshop, sounds like madness to me!
Offline , MoP, 11,603 Posts, Join Date Oct 2004, Location London, UK  
   Reply With Quote

[HP]'s Avatar
Old (#3)
Sometimes it might be needed to edit mipmaps, especially for alpha maps on vegetation.

Thing is, to be able to edit a mipmap. you must export your texture to DDS. Open the DDS, edit the mipmaps, and export again. (right?)
But this sucks because the DDS will have double compression. Unless there's some lossless DDS export option that I don't know of.
Offline , dedicated polycounter, 1,827 Posts, Join Date Aug 2007, Location derp land  
   Reply With Quote

poopinmymouth's Avatar
Old (#4)
Quote:
Originally Posted by MoP View Post
i don't know anyone who manually edits mips in photoshop, sounds like madness to me!
It can actually be useful on some things. For example on characters, I'll sometimes adjust contrast on the faces, to help them read better at a distance. You can also remove overlays for the 2nd mipmap and below for more readable textures.

On the latest engine I'm working on, without going too much into detail, we do some fancy blending from one set of terrain textures to the next. The particular blending kind of reduces contrast once it comes in, and it only comes in at a certain mip level, so I can over contrast that one to rectify.


But it's rare that I do that.
Offline , veteran polycounter, 3,616 Posts, Join Date Oct 2004, Location Reykjavik, Iceland Send a message via ICQ to poopinmymouth Send a message via AIM to poopinmymouth Send a message via MSN to poopinmymouth Send a message via Yahoo to poopinmymouth Send a message via Skype™ to poopinmymouth  
   Reply With Quote

Ryan Clark's Avatar
Old (#5)
Quote:
Originally Posted by [HP] View Post
this sucks because the DDS will have double compression. Unless there's some lossless DDS export option that I don't know of.
There is.

Last edited by Ryan Clark; 08-27-2009 at 09:19 AM..
Offline , triangle, 431 Posts, Join Date Nov 2004, Location Austin, TX  
   Reply With Quote

throttlekitty's Avatar
Old (#6)
I made some profiles for the nVidia plugin for different mipmap sharpening, maybe you'd find them useful?

http://tesnexus.com/downloads/file.php?id=11817
there's a brief rundown of the types halfway down the description page.
Offline , polycounter, 953 Posts, Join Date Dec 2008, Location South Dakota Send a message via ICQ to throttlekitty Send a message via AIM to throttlekitty Send a message via Yahoo to throttlekitty  
   Reply With Quote

doc rob's Avatar
Old (#7)
Yeah, I would almost never sharpen a texture in the mips - you generally want less detail as distance increases. However, IIRC, there are sharpening options in the DDS exporter, so you don't need to do it manually.

On the other hand, I occasionally will open up a texture and futz with the alpha in the mips, so that it will fade in/out according to distance.

I would also love to have an easy way to simplify shapes on textures in the distance. Check out this painting:



The closest tree has 5 or 6 colors in the foliage. The farthest ones have only 1 or 2. That is something you could maybe simulate by hand painting the mips in a texture, but it would be a pain in the ass. Having a tool that could slot textures into various mips and allow easy editing would be better.

The benefit is that you still have crisp shapes in the distance, just at the proper granularity. Scaled-down mip maps just give you muddy over-detail.
Offline , polycounter, 1,031 Posts, Join Date Oct 2004, Location Falls Church, VA  
   Reply With Quote

MoP's Avatar
Old (#8)
foc_rob: Cool idea. You could maybe do something like the "cutout" filter per mip level with different settings in order to flatten out the details if you were doing a stylised game, and something like that would be easy to automate.

As for editing mip levels to get transparency to work, I prefer an engine-side solution - for transparency problems with alpha test, you can set the "cutoff" point to something really high in your material settings (eg. default 0.5 is mid grey cutoff, 0.9 means close to white, etc), and then have a gradient from white to black instead of just a hard black/white edge in your alpha. That way when it mips down, the filtering retains more volume in the alpha, so for stuff like chain link fences it works really well - you don't end up with a flickering pixelly mess at a distance.

Our engine also had per-texture settings for "minimum mip level" so you could tell an alpha texture never to use below, say, mip 2 if that meant it looked better. Useful to have options like this available to the artist.

The more "procedural" stuff like this I reckon is always better - as soon as you are hand-editing anything then you're not only making more work for yourself right now, but also potentially more later if you ever have to revisit that texture. Something I'd always avoid if at all possible.
Offline , MoP, 11,603 Posts, Join Date Oct 2004, Location London, UK  
   Reply With Quote

Neox's Avatar
Old (#9)
ah studio ghibli.. how much would i love to have the ability to import dds into unreal for airborn...
manipulating mipmaps is a thing i experienced in some productions, the best approach was to use them to increse certain details over distance and remove smal details, so in an RTS Title is removed fine sand structures but added some rougher shapes of dunes and such things, which worked pretty cool
bonus vir semper tiro.

Steffen 'Neox' Unger
It's Airborn Baby!

freelance 3d artist
for hire
Offline , veteran polycounter, 3,192 Posts, Join Date Sep 2006, Location Berlin Germany Send a message via ICQ to Neox  
   Reply With Quote

SHEPEIRO's Avatar
Old (#10)
cheers for the info
senior lighting artist @ r*north
Offline , veteran polycounter, 3,423 Posts, Join Date May 2006, Location edinburgh  
   Reply With Quote

MightyPea's Avatar
Old (#11)
Yeah, I played around with this some, it can be quite fun. Just some filters (cutout, for one) on the mips can looks quite nice.
Edit: oh, and sharpening alphas in the mips, or (if it's a simple shape, like a grid) just painting a new one, or getting rid of it altogether.
Artist at Interwave Studios | Polycount Wiki | Portfolio |||<
Offline , veteran polycounter, 3,141 Posts, Join Date Oct 2004, Location Amsterdam Send a message via MSN to MightyPea  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch