Cave lighting
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
Re: Cave lighting
so the server would send the coordinates of a shape of what the player could see. sounds like a good idea, but that's alot of server load.
Re: Cave lighting
Essentially. It could (and maybe should) be simplified by only sending info from the player's field of view (like it does now with players/monsters/npcs/etc).zick wrote:so the server would send the coordinates of a shape of what the player could see. sounds like a good idea, but that's alot of server load.
Re: Cave lighting
It is not necessary to include the light radius of most objects in the netcode.
The light radius of static objects can be defined in the map files, the light radius of monsters in the monsters.xml and in any case where the light radius of an object has to be set dynamically it can be done with one additional byte in addition to the other look informations.
The light radius of static objects can be defined in the map files, the light radius of monsters in the monsters.xml and in any case where the light radius of an object has to be set dynamically it can be done with one additional byte in addition to the other look informations.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: Cave lighting
Right. Only light from other players (and some special cases) needs to be sent in the net code.
Re: Cave lighting
It does support images with alpha. A black overlay with transparent areas for lights could work.Crush wrote:jaxad: The technical problems I mentioned wouldn't be solved by that. The problem is that SDL does not support any opacity maps.
Re: Cave lighting
The problem I am talking about is generating said image.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.