Page 2 of 3

Re: Art/Lighting Experiments

Posted: Tue Jan 14, 2014 12:08 am
by Saria
dczanik your stuff is always of such high quality. We're all lucky that you're here and treating us with your work!

Re: Art/Lighting Experiments

Posted: Tue Jan 14, 2014 12:10 am
by zenzmurfy
Awesome!

I don't know anything about normal maps yet.

Is this link relevant to what you are doing?

http://amber.rc.arizona.edu/lw/normalmaps.html

Re: Art/Lighting Experiments

Posted: Tue Jan 14, 2014 12:47 am
by dczanik
zenzmurfy wrote:Awesome!

I don't know anything about normal maps yet.

Is this link relevant to what you are doing?

http://amber.rc.arizona.edu/lw/normalmaps.html
Just a quick perusal seems to suggest it is.

Check out this tutorial: https://www.youtube.com/watch?v=0OW2PTkSVNM
Also sent it to your email.

Saria, I could honestly say the same about you. Thank you, so much.

Re: Art/Lighting Experiments

Posted: Mon Jan 20, 2014 3:34 pm
by Dragon
Redundant post - 'cause I went back and read your initial post more thoroughly.

You're using Sprite Lamp to generate your normal maps right? Because drawing normal maps by hand is painful beyond reason and not something I'd wish on my second worst enemy.

Re: Art/Lighting Experiments

Posted: Mon Jan 20, 2014 5:37 pm
by dczanik
Dragon wrote:Redundant post - 'cause I went back and read your initial post more thoroughly.

You're using Sprite Lamp to generate your normal maps right? Because drawing normal maps by hand is painful beyond reason and not something I'd wish on my second worst enemy.
It's still a lot of work. Basically, I have to create 4 extra drawings. Keep in mind, these were just quick tests:

Original (Diffuse):
Image

Lit from the top:
Image

Lit from the bottom:
Image

Lit from the left:
Image

And, lit from the right:
Image

There's also 3 optional views:
A front lighted view (imagine if the camera had a light on it),
an emitter view (things that emit their own light),
and a specular view (drawing the shininess of the object).

All that creates this:
Image

Use the normal map to calculate lighting, and you get something like this:
Image

Re: Art/Lighting Experiments

Posted: Mon Jan 20, 2014 7:30 pm
by Dragon
dczanik wrote: It's still a lot of work. Basically, I have to create 4 extra drawings. Keep in mind, these were just quick tests:
...
Image
Oh! I had assumed that the HD ships were stylised or filtered renders of 3D models. In which case getting a normal for them would have been easy: bake model normals onto plane, done.

Then I zoomed in a bit on your examples and noticed brush strokes and was all like "hold on, that's not rendered!". I see now how drawing lighting from four directions per HD ship could get a little tedious.

Normal maps are a really neat solution to the 2D lighting problem though. I tried solving this by rendering out every lit frame for 72 frames of rotation for every Star Control ship, missile or whatever. I can't find that texture but is was more than 2GB uncompressed which didn't fit into any graphics cards memory at the time.

Re: Art/Lighting Experiments

Posted: Mon Jan 20, 2014 11:03 pm
by Angelfish
dczanik wrote:
Dragon wrote:Redundant post - 'cause I went back and read your initial post more thoroughly.

You're using Sprite Lamp to generate your normal maps right? Because drawing normal maps by hand is painful beyond reason and not something I'd wish on my second worst enemy.
It's still a lot of work. Basically, I have to create 4 extra drawings. Keep in mind, these were just quick tests:

Original (Diffuse):
Image

Lit from the top:
Image

Lit from the bottom:
Image

Lit from the left:
Image

And, lit from the right:
Image

There's also 3 optional views:
A front lighted view (imagine if the camera had a light on it),
an emitter view (things that emit their own light),
and a specular view (drawing the shininess of the object).

All that creates this:
Image

Use the normal map to calculate lighting, and you get something like this:
Image
The fucked up thing about the Nemesis is that the cannon rotates so you have to do all those possible combinations too ;).

Re: Art/Lighting Experiments

Posted: Mon Jan 20, 2014 11:48 pm
by dczanik
That's one of those things that I haven't figured out. In order to do the above, the turret would have to cast a shadow on the main hull of the ship. It's a little tricky to do that in 2D.

Re: Art/Lighting Experiments

Posted: Thu Feb 20, 2014 8:34 am
by Niffiwan
WOW! :o

That is astonishing! It's really wonderful to see 2D pixel art advancing in this way. I really think that this is a big leap forward. If you get this working, I imagine you'll constantly have game-creators contacting you to find out how to do it in their own games.

Also, I notice that the default lighting setting is a kind of bright-white fluorescent-like light. I wonder if there can be different shades of light in front of different sorts of stars?

As for the Chenjesu, yeah, each side of the crystal would have to gradually change in hue rather than brightness.

Re: Art/Lighting Experiments

Posted: Mon Mar 10, 2014 4:44 am
by darklord42
were you ever successful in finding a coder, cause I will gladly turn the internet upside-down to find you one. :)