So I've been trying to get his library to play nice with 64x64 pixels and I can't figure it out. I've changed many parts of the code, generated the correct light icon, etc. The problem that happens is that you need twice as much as 8 states (16 states) to get it to look right but any more states than 8 in the icon generation causes the sides to be flipped improperly. This could also be occurring in the section where the lum number is calculated. I'm not sure which it is, and it is beyond me to know what to do further. I was hoping someone here could help me figure out if the light icon generation is broken, or if the calculations need to be modified in the LUM part.
|
Nov 19 2012, 2:07 am
Best response
|
|
Since this isn't a general issue with BYOND, have you tried posting on the library's page? I'm sure F_A could tell you what to do in his library than we can.
|
In response to NNAAAAHH
|
|
NNAAAAHH wrote:
Since this isn't a general issue with BYOND, have you tried posting on the library's page? I'm sure F_A could tell you what to do in his library than we can. He's been missing from byond ever since his 3d idea was ignored by the staff. There's been several of us telling him what bugs to fix in the library and he has yet to reply. |
In response to FIREking
|
|
I hadn't really noticed, I might download the library later and try to help you out.
|
Just wondering if you ever got around to looking into this, I am totally baffled.
|
In response to FIREking
|
|
I'm sorry, it slipped my mind. Been keeping busy lately. I'll download the library now and take a quick look, but I'm tired so I can't promise a response today.
|
I've checked all of the demos and used 64x64 icons, nothing really wrong with what was there, might you post your implamentation or provide more details on what exactly it is that's wrong?
|
In response to NNAAAAHH
|
|
NNAAAAHH wrote:
I've checked all of the demos and used 64x64 icons, nothing really wrong with what was there, might you post your implamentation or provide more details on what exactly it is that's wrong? Ok do a 64x64 setup, but with 16 states. Let me know if it works. |
In response to FIREking
|
|
With the icon generator and run one of the demos with said egnerated icon, right? Seemed to run fine to me. Are you sure the world.icon_size is set to 64x64? I will check how it appears if I set it to 32x32.
[EDIT] They all work fien except the customization demo. But it wasn't like what you described, in a 32x32 enviroment with 64x64 16-state lighting, it works but looks alittle blocky, again not what like you descibed. [END EDIT] |
In response to NNAAAAHH
|
|
NNAAAAHH wrote:
With the icon generator and run one of the demos with said egnerated icon, right? Seemed to run fine to me. Are you sure the world.icon_size is set to 64x64? I will check how it appears if I set it to 32x32. can you send me the light file it created for you? |
In response to FIREking
|
|
That's not 16 state generated at 64. You have to change the number of states in the generator. Then you have to change the number of states in the light library. Also the light library is hardcoded to be 32x32. The results won't be any different if you just "scale up" the generation.
|
// File: icon-generator.dm That's the icon generation code, altered for when I made the icon. |
Weird, so I deleted the library and downloaded fresh and it started to work. Seems I had modified something that was causing it to draw in such an awkward way. Now I need to see if I can generate my own icon. I just tried a moment ago and it never asked me to save the file when it reached 100%.
Thanks for the help, none the less. |
Cloud Magic wrote:
Yeah, is there a way to have the lighting system, well, lighter? It's just so dark right now with the way I'm using it, that I definitely won't be able to use it for the entire game without the players getting incredibly sick of it ... Just generate a new icon with the darkest setting lower. |
In response to NNAAAAHH
|
|
NNAAAAHH wrote:
So yeah, I literally can't get any of my computers to generate an icon from this code. All I changed was the darkness value to 100. Problem I'm having is the generation just stops at 100% and never shows me a dialog of where to save the file. The CPU usage goes down to 0 (memory usage 982 MB). Then it just sits there, does nothing. Perhaps you could make one with the darkest being 100 instead of 255 for me? |