I was sick for a week and occupied with few other things and I'm sorry for that.
Recently I added room generator that takes various pieces and puts them together to form a room. At the moment there are just pieces for corners and walls. There are no doors visible and this is next thing on my to do list. Doors will be a little bit tricky, as they are holes in walls with object going through them - even if actors move to different room when they haven't even passed the door line, they sometimes still should appear partially obstructed by walls. But actors aren't biggest problem and for now I will just ignore that issue. Bigger problem are wings of doors. I don't want users end up with creating same graphics for animated doors on left, back and right side walls. And there are also hinges and doors opening into and out the room which would just end up doing enormous amount of graphics. What I thought is that it might be easier to create graphics for door frame, hole and wing of door separately. Why frame and hole separately? Because of the way I want to display objects on other side of door. Things should be rendered in this order:
Recently I added room generator that takes various pieces and puts them together to form a room. At the moment there are just pieces for corners and walls. There are no doors visible and this is next thing on my to do list. Doors will be a little bit tricky, as they are holes in walls with object going through them - even if actors move to different room when they haven't even passed the door line, they sometimes still should appear partially obstructed by walls. But actors aren't biggest problem and for now I will just ignore that issue. Bigger problem are wings of doors. I don't want users end up with creating same graphics for animated doors on left, back and right side walls. And there are also hinges and doors opening into and out the room which would just end up doing enormous amount of graphics. What I thought is that it might be easier to create graphics for door frame, hole and wing of door separately. Why frame and hole separately? Because of the way I want to display objects on other side of door. Things should be rendered in this order:
- Walls.
- Door frames.
- Door holes with objects that are going through them or are on the other side of them.
- Objects inside room.
There are many more planes/layers and it might seem strange to have them separated this way but this gives more control over what is rendered first and what next.
Anyway, this is just a plan for next couple of days which will also include type for door, code to handle various door types.
And here's a screenshot of how does it look now, mind that all graphics are just test stuff (taken from original one or done quickly to test various functionalities).
Rooms are quite tall, the ceiling should be not too much higher than the books on the wall. But for some odd reason I decided to have walls this tall. Well, temporary graphics.

No comments:
Post a Comment