LED Question

Talk about Severance Blade of Darkness modifications and maps here. No tips or tech support questions please, use the forum above. Note that the game is rated 18 so some content may be unsuitable for younger readers.

Moderators: Ade, prospero

User avatar
Trinitron
Dragon
Posts: 307
Joined: Sat Jul 12, 2008 5:53 pm
Location: Russia

Re: LED Question

Postby Trinitron » Sun May 14, 2017 11:42 am

LED lags. Did someone had such problem? 3D-view lags a lot in some parts of map, but in game all run well.
You see lags like what? Can you show lag as IMAGE.

User avatar
Tomash
Dragon
Posts: 240
Joined: Sat Oct 25, 2008 11:23 am
Location: Russia
Contact:

Re: LED Question

Postby Tomash » Sun May 14, 2017 2:33 pm

FPS drops

livid
Whelp
Posts: 13
Joined: Sat Jun 03, 2017 11:00 am

Re: LED Question

Postby livid » Sat Jun 24, 2017 3:20 pm

Hi, I have a couple of questions related to LED:

Since I added a second set of textures to a map via "Import textures..." (maybe this is the problem), LED works extremely slow in that map. With that I mean, taking up to 20 seconds to load the 3d view in a map which is just a couple of rooms, 5 seconds to open different LED windows, close LED, save...

Also, how exactly do the Lights tab work? No idea for Flat or Ambient. And for exterior light, is it like the sun? If so, can I just ignore it if I add a SetSun function to the map? I have not found a tutorial that talks about it thoroughly.

User avatar
Tomash
Dragon
Posts: 240
Joined: Sat Oct 25, 2008 11:23 am
Location: Russia
Contact:

Re: LED Question

Postby Tomash » Sun Jun 25, 2017 12:25 pm

About lights

Flat Light seems doesn't work

Ambient Light is color of shadow. The air in shadowed places has that color and the air in enlighted places has sum of Ambient Light color and color of source of light.

External Light is color of light casted from skybox (NULL texture). The position of External Light determines the orientation of shadows. External light has some values in every sector but it actually appears only in sectors which can be enlightad from skybox

PS. tricky thing in External Light. The sectors in LED have coords X,Z,Y so the 2nd is Z(height). But External Light has coords -(minus)X,Y,Z so the 2nd is Y and X has opposite sign

User avatar
Tomash
Dragon
Posts: 240
Joined: Sat Oct 25, 2008 11:23 am
Location: Russia
Contact:

Re: LED Question

Postby Tomash » Sun Jun 25, 2017 12:43 pm

I have rather big open area on the map. In game with "character shadows=off" all run well. But with "shadows=on" game lags a lot. How can I optimised map in LED to fix it? Should I reduce the number of sectors/portals or use different External Light positions in different parts of that area? Or may be just screw the idea of sunlit area and make it foggy?

livid
Whelp
Posts: 13
Joined: Sat Jun 03, 2017 11:00 am

Re: LED Question

Postby livid » Sun Jun 25, 2017 6:58 pm

Thanks Tomash :)
Let's hope Prospero knows the answer to your problem because I'm a LED newbie. Anyways I'll say something that might or might not be useful. I've read that non-convex sectors will lag your map because the compiler will try to split the sector and it may do so badly, so the light has to go through a lot of portals, effectively causing lags (I guess it's the same if you have a lot of portals from convex sectors). Check if you have made a non-convex sector by accident, or if you have a really big amount of sectors.

I have a new question. From time to time, the LED toolbars dissapear for no reason. However, I fix it by deleting the folder and extracting a new one from BladeTools. It looks like this.
Image
As you can see, it's impossible to work with that. It hasn't been a big problem because I would solve it quickly by creating a new one as I said, but now it doesn't work... It's always like that. I hope someone has had (and solved) that problem and can help me.

User avatar
Tomash
Dragon
Posts: 240
Joined: Sat Oct 25, 2008 11:23 am
Location: Russia
Contact:

Re: LED Question

Postby Tomash » Sun Jun 25, 2017 8:51 pm

I usually fix that problem by deleting a single file Led_d.INI somewhere in WINDOWS folder.

User avatar
prospero
Ancient Dragon
Posts: 1675
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Re: LED Question

Postby prospero » Mon Jun 26, 2017 2:44 am

The LED blanks out now and then. I have never been able to figure out why, I think it's something to do
with closing the file and not saving. :?: Just remember where the .ini file is. :D

The sun flare is purely cosmetic. Won't affect the performance at all.

btw. All the RAS maps create the sun with the sol.py file. It's best to put the code in DefFuncs.py.
Next time you play a RAS map with the sun in it, save the game and reload and you will notice the
sun is gone. :roll:

As for performance issues, it's a question of design. The more portals (sector faces that join) the light has to pass though
the more work to calculate the shadows. There are tricks to improve performance. Steps are bad laggers. If you do a flight
of 20 steps by making sectors that go up to the 'ceiling', then you have a lot of portals for the ext light to pass though. If you
a make each step so it only goes up the hight of the bottom of the next step up and the slope each step downwards, you can
put one big sloped sector to cover them all. :wink: Doesn't matter so much in inside rooms.
Arches in sunlight are best avoided. On the whole, avoid too many 'fiddly' bits. Textures have no affect on performance.

User avatar
Tomash
Dragon
Posts: 240
Joined: Sat Oct 25, 2008 11:23 am
Location: Russia
Contact:

Re: LED Question

Postby Tomash » Sun Jul 02, 2017 4:14 pm

Thanks Prospero. I optimised the map so now it works well.


Return to “Severance BoD: Modding Community”

Who is online

Users browsing this forum: No registered users and 2 guests