Jump to content

Per Pixel Lighting


dainja556

Recommended Posts

I'm just curious what "Per Pixel Lighting" affects.  I toggle it, but can't notice any difference.

Would someone mind explaining what that option does?  It does seem to make a noticeable impact on my framerate.

I found this post: http://www.x-plane.com/blog/2009/05/per-pixel-lighting-isnt-free/

It talks about per pixel lighting, but I'm still not certain what visual difference it makes.

Link to comment
Share on other sites

Let me try and sum this up for you.

Per pixel lighting, and vertex lighting, are the two ways to light a 3d object. That is being very basic of course, but for this explanation that will do.

When you have per-pixel lighting turned on, each pixel on your screen, is being sampled for lighting. This means the rendering engine has to draw a ray or line from the camera to the pixel then to the light and figure out the angle of the polygon to the light, and then return a value which gives you your shading. Today most computers have no problem rendering per pixel lighting what soever, but back 10 years ago, that wasn't so.

Back then the standard was vertex lighting which only samples light from the vertexes, or points that make of the polygon mesh inside the 3d space. the lighting sampled is then shaded over the polygons like a gradient. Vertex lighting is very fast for this reason but offten it wont look as good, infact most of the time it will look rather horible unless the mesh you are looking at has a large number of vertexes in it.

Take a look at this wiki page to see a visual exsample of what vertex lighting looks like: http://en.wikipedia.org/wiki/Gouraud_shading

hope that helped.

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...