Normals

Published March 06, 2012
Advertisement

box.jpg



The picture shows how normals are pointing in my editor (and game) if an object is hanging in the air. If it's hard to see; the normals points away from any mass. This is also the case if there were more boxes. For instance, if a couple of boxes formed a grid like pattern the normals on top of the box in the middle of the grid would point straight up. The normals at the grid's edge would point like in the picture. This is nice because:


  • I can have normals for graphics that are hand drawn. Normals that are perpendicular to the surface would give away the shape of the box (not so pretty when combined with organic graphics such as trees and people).

  • I don't need any normal maps. I can interpolate these normals and get per pixel lighting (although it would be even nicer with normal maps).



This has been in place in my project for some time. However, the other day I got an idea that puts a very simple twist to it, with a nice effect as a result. I could push the normal of a vertex that lay on a flat surface to get a nice fake bump if I also push the surrounding vertices according to the bump. This would even work when rendering in standard fixed function and per vertex lighting.

I tried it out and quickly found out that I need a new drag-bar in the editor to accommodate this new feature. Here's the difference, topmost picture showing the old way (normals always uniform to the geometry) and below it the new bumpy version:

objnormals.png

I think it brings more life to the scene without any new graphics or frame loss. Whoo-hoo! I think love it smile.png The bump height of an object can be adjusted with the drag-bar on the left side called "Raise:".

On another note; the actual game (Medieval Story) is still progressing despite new features added on the editor side.

Thanks for reading again!
Previous Entry Stuff
Next Entry Fixes and features
2 likes 4 comments

Comments

NetGnome
slick. I like the editor too.
March 06, 2012 08:54 PM
smo97
That is an awesome editor.
March 07, 2012 03:34 AM
O-san
Thank you! I do my best :-)
March 07, 2012 10:29 AM
Programming020195BRook
Great work, the editor looks amazing as it did before!
March 08, 2012 06:34 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement