These are chat archives for sam0s/sam0sRpg

29th
Feb 2016
Andrew
@djkool
Feb 29 2016 20:29
Screen Shot 2016-02-29 at 3.28.15 PM.png
' ^—-----These rects --——^
are confusing
Those should be walls that continue passed the camera and need to be shaded as such.
Right now, it makes it look like there are openings to the sides of the player.
Sam Tubb
@sam0s
Feb 29 2016 20:41
Would darkening those when they are actually left or right of the player work? Lol
Seems simple enough
Andrew
@djkool
Feb 29 2016 20:44
Screen Shot 2016-02-29 at 3.28.15 PM.png
This is less confusing. Now you can actually see there is a legit hallway up and to the right.
Let me double check that I’m not just getting confused by the layout of the map.
Sam Tubb
@sam0s
Feb 29 2016 20:49
Yeah you are correct!
its this shape |-|
| |
|
| |
|x|
-
nvm the formatting didn't stay, but you are correct.
Andrew
@djkool
Feb 29 2016 20:54
In terms of actual shading. You should be using a static directional light.
That means, even if the player is rotating within the world, the shading of the walls should not change.
Sam Tubb
@sam0s
Feb 29 2016 20:56
i have a plan to do that Using the player's direction. that would work easily right?
if hes facing north shade one way
then if hes facing south shade it differently to make the same lighting appear
Andrew
@djkool
Feb 29 2016 20:56
It will be confusing with how your code is organized, because technically the colors will change based on what direction you are looking.
But if you are thinking about the level as a whole, each wall will always be the same color no matter what direction you are looking.
Does that make sense?
You’ll have to be swapping wall colors in your script to make it visually more consistent.
All walls facing EAST will always be the same color, but since the camera is rotating in the world, those EAST facing walls will not always be on the left side of the screen.
Sam Tubb
@sam0s
Feb 29 2016 21:00
Yeah, ok
I'll hit you up when i rewrite it
;)
Andrew
@djkool
Feb 29 2016 21:02
It’s Visual Perception 101. You’ll be surprised how much of our eyes and brain evolved based on things be lit by the Sun (a directional light source).
Our perception of rotation and position are all based on that.
Sam Tubb
@sam0s
Feb 29 2016 21:03
Interesting! We talked about that in Art/Design 2
Andrew
@djkool
Feb 29 2016 21:04
Most optical illusions abuse that fact.