Different shading

Modelling, Textures, Animating and other general engine asset topics.

Different shading

Postby Jike on Wed Nov 17, 2010 3:02 pm

I would be very happy if people could give me a few sentences on these things:

So here we go:

Difference between Normal Mapping, Bump Mapping, Height Mapping and SSAO (and how it is created and what it does)

What is displacement Mapping and what is Tesselation? What is Parallax Mapping?

How exactly should I understand phong shading? What does iridescence mean?

Thanks in advance, I hope this clears up some stuff for me :)
-Jike
Image
Image
Jike
1337 p0st3r
1337 p0st3r
 
Joined: Mon Feb 08, 2010 6:58 pm

Re: Different shading

Postby marks on Wed Nov 17, 2010 4:52 pm

Jike wrote:Difference between Normal Mapping, Bump Mapping, Height Mapping and SSAO (and how it is created and what it does)

Bump mapping - grey scale texture, height information only
Normal mapping - RGB texture, 3-axis vector information for the direction of the tangent normal of each pixel
Height Map - Same as Bump mapping, but usually used to deform large areas of terrain in a level editor
SSAO (Screen Space Ambient Occlusion) - Same as Ambient Occlusion render effect in a software renderer, however rendered in realtime.

Jike wrote:What is displacement Mapping and what is Tesselation? What is Parallax Mapping?

Displacement mapping - same as bump mapping except it actually moves the verts of the mesh instead of just making it be lit differently.
Parallax mapping is essentially a bumpmap which is used in conjunction with a normalmap (greyscale parallax map) to define surface depth better:



Tesselation is a DirectX11 function which dynamically subdivides a mesh based on viewing distance. Its a bit more complicated than that, but this should give you a good idea:



Jike wrote:How exactly should I understand phong shading?

Phong mask = specular texture (defines brightness of specular highlight)
Phong exponent = gloss texture (defines size / sharpness of specular highlight)

Jike wrote:What does iridescence mean?

Wikipedia wrote:Iridescence (also known as goniochromism) is generally known as the property of certain surfaces which appear to change colour as the angle of view changes. Iridescence is commonly seen in items such as soap bubbles, butterfly wings, and sea shells.
User avatar
marks
Creative Assembly
Creative Assembly
 
Joined: Tue Aug 16, 2005 5:07 pm

Re: Different shading

Postby Gary on Wed Nov 17, 2010 5:01 pm

I new a lot of that, but not all of it, thanks Marks.

I also think someone a while back got parallax mapping was in Source, but sadly it's broken now.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Different shading

Postby Jike on Wed Nov 17, 2010 11:57 pm

OH great this helped a lot.

Few questions remain:
-Parallax Mapping, does this mean it is a mixture of the different lighting and the geometry deforming, is it like something similar to Displacement mapping. If so, which differences remain?

Hows does tesselation work? With displacement mapping? are different displacement maps exchanged dynamiclly or is everything intelligently worked out on-the-fly?

also what is the difference then between a phong texture and a specular texture?

thanks for the info so far, this finally clears up some stuff for me :D

EDIT: Cleared the phong thing up for me:
Image
-Jike
Image
Image
Jike
1337 p0st3r
1337 p0st3r
 
Joined: Mon Feb 08, 2010 6:58 pm

Re: Different shading

Postby marks on Thu Nov 18, 2010 12:09 am

Jike wrote:-Parallax Mapping, does this mean it is a mixture of the different lighting and the geometry deforming, is it like something similar to Displacement mapping. If so, which differences remain?

No, there is no geometry deformation, its purely lighting data. I dont know too much about how parallax + normalmaps interact with each other beyond that.

Jike wrote:Hows does tesselation work? With displacement mapping? are different displacement maps exchanged dynamiclly or is everything intelligently worked out on-the-fly?

Yes hardware tessellation is used in conjunction with displacement mapping, essentially changing a tesselation level moves "up" a resolution on the displacement texture - at least this is how I understand it. It's kinda like LOD's except with displacement maps and realtime subdividing of the mesh rather than saving different mesh resolutions.
User avatar
marks
Creative Assembly
Creative Assembly
 
Joined: Tue Aug 16, 2005 5:07 pm

Re: Different shading

Postby Vilham on Thu Nov 18, 2010 12:14 am

Phong shading is simply a calculation performed to create semi realistic shading on an object rather than something like Gouraud shading which also does semi realistic shading but uses obviously a different method. I can't remember the exact formula used, I had to learn it in my final year at uni when I was programming using openGL.
Designer - Frontier Developments
User avatar
Vilham
Frontier Developments
 
Joined: Tue Jul 29, 2008 10:22 pm
Location: Cambridge

Re: Different shading

Postby Jike on Thu Nov 18, 2010 12:58 am

Are there any other interesting texture/shading types, you people would like to share with me? :D

also, why the hell is phong only for models? does it not make sense having it on LightMappedGeneric?
-Jike
Image
Image
Jike
1337 p0st3r
1337 p0st3r
 
Joined: Mon Feb 08, 2010 6:58 pm

Re: Different shading

Postby marks on Thu Nov 18, 2010 2:38 pm

Thats down to Valve, a lot of other engines support gloss on BSP type surfaces. As Vilham said, Valve's Phong shader calculates lighting per-pixel rather than per-vertex (VertexLitGeneric uses linear-interpolated vertex shading, aka Gouraud Shading (first other person I've met who knows the actual correct name for that, kudos Vilham)).

That's pretty much it Jike really :) You covered all the bases pretty well.
User avatar
marks
Creative Assembly
Creative Assembly
 
Joined: Tue Aug 16, 2005 5:07 pm

Re: Different shading

Postby Vilham on Wed Nov 24, 2010 6:21 pm

Finally found this:
http://www.cs.nott.ac.uk/~bai/graphics/lighting.pdf

Scroll down to the shading part, it explains all.
Designer - Frontier Developments
User avatar
Vilham
Frontier Developments
 
Joined: Tue Jul 29, 2008 10:22 pm
Location: Cambridge

Re: Different shading

Postby Jike on Sun Dec 19, 2010 8:57 pm

well thanks yall :D
-Jike
Image
Image
Jike
1337 p0st3r
1337 p0st3r
 
Joined: Mon Feb 08, 2010 6:58 pm

Return to Art Creation

Who is online

Users browsing this forum: No registered users