Status
Not open for further replies.

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,865
Reaction score
12,410
First Language
English
Primarily Uses
RMMZ
If I have understood correctly, the region which is set determines the shadow that is thrown in an undifferentiated way.

However, I think region 1 needs to be different for the following reason.

Take, for example, a small cupboard, table or sideboard next to a window. It's going to be region 1 as that is its height.  Clearly it needs to throw a shadow - but the top surface of the object needs to be lit as the light will be falling on to it from a greater height if the window is a normal one.

Perhaps there is already a cunning way of achieving this which I haven't noticed.  If so, great.  If not, is there any way to have this effect?
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
385
First Language
Portuguese
Primarily Uses
RMMV
Regions are employed to declare the floor's height, so the system can cast shadows accordingly. But please note that shadows on this engine are a simplification of the real situation - I've tested several methods and ways of casting shadows and the implemented one is the best without sacrificing performance. In order to do more complex things (such object shadows), I would need a Z Buffer (a buffer that stores height data), but processing it on the CPU would cost too much performance.

I've been studying ways of casting object and character shadows without a Z Buffer, but I haven't figured out a good algorithm yet. I may find it, but it can take some time (for instance, it took me 10 months to make the KGL as fast as it is today).
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,865
Reaction score
12,410
First Language
English
Primarily Uses
RMMZ
Okay, I understand your difficulty.  All I need do, in that case, is edit some tiles so that they have a new, suitable, shadow already attached to them and simply not give them a region.  There will be a shadow, and the top will be lit.  That seems easier than you searching round for an obscure algorithm.

Thanks anyway.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,753
Reaction score
9,890
First Language
German
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I guess I should send my CV to Hasbro. I've made Monopoly cheaters edition more fun and challenging. I've developed custom cheats and chest/chance cards for it. And I've cleared many nightmares through my cards and rules.
I'm only missing 2 more bgms for my game but maaaaan, searching for these tracks is killing me. Can't find anything good to replace MZ's Theme 2 and Scene 5 I have as placeholders. Everything is too epic or too evil or too alarming. That 'scene 5' track in particular would fit nicely with my scene. Well, at least I finally figured what my last click-fest of a gameplay element will be like, so something positive :D
Finding new interesting stuff to make for the resource calendar becomes harder every year D:
ScreenShot_8_19_2022_2_3_18.png
FINALLY got the mood system in the game during battle. Since the game is called Panic Attack, I figured you should have certain moods present including Panic. so the main 3 or Hype, Depressed, and Anxious. Panic is only when stunned.
Red_V2.png
Red's design is finally finished (his hair is blue on purpose, it's a joke!). Out of all of the compulsory party members, he spends the most time with you. Just like the character he's based on, he presents himself as a simple person who only wants to help others, but there's obviously more to him than meets the eye.

Forum statistics

Threads
124,698
Messages
1,165,339
Members
163,512
Latest member
Systole1913
Top