Page 1 of 1

Making flickering lightings : "how to", the answer

Posted: Thu Nov 13, 2008 15:23
by Jive
Testing the new Gzdoom v1.1.05, I found that the new lightings are absolutely awesome. Thus, something was missing to be perfect.
I opened the file "lights.pk3" with WinZip, then the file "doomdefs.txt" being stored within it, and played with some values...
And I found THE value making flickering lights:

You can try some modifications of the value for "secondarySize", but THE value to modify is:
interval
The values were going from 0.4 to 2.0
2.0 is fine for the blue sphere, for example.
For my computer, the value 0.01 is perfect, and it makes flickering lights. The framerate is not affected, even if several lights are together.
What is making the framerate going down drastically, even on my very powerful computer, is the light by itself. And more I make it larger, more heavy is the slowdown.

I had also to experiment the same terrific CRASH of my computer, making it rebooting after being frozen (thus the sound and the music were still being heard) and making the same sound than when I disconnect a material USB, like a webcam, for example.

Posted: Fri Nov 14, 2008 2:49
by Jive
Here is the file with the values making flickering lights (apart the candle, candelabra and pillar)
You have just to put it within "lights.pk3" (but, before doing it, do export the text file "doomdefs.txt", so that you can easily coming back to the original values).

Posted: Fri Nov 14, 2008 8:44
by WolfyGirl
i don't know much yet about GLlights, once i studied this a bit more, i could help with this issue :/

Posted: Fri Nov 14, 2008 13:41
by Jive
What issue?
The issue with the crash, the one with the framerate, or the one with the fact that some lights don't have any possibility to be animated?

Posted: Fri Nov 14, 2008 14:23
by Jive
Ok, I got it !!!
I tried the old version 1.1.22
I finally figured out what is happening with the framerate of the new version (1.1.05): 2 abilities given to us are faultiness :
- "Force additive lighting"
- "Fog"

The worst is the fog, making going down the framerate drastically, at the point that I MUST disable it.
"Force additive lighting" is also contributing to slow down the framerate.

Resume: if you want to have the best framerate possible, disable the fog and the additive lighting.
Too bad !!!

Posted: Fri Nov 14, 2008 14:54
by Jive
About "Force additive lighting", do have a look at the result
The difference is VERY important, making like a fog

Posted: Fri Nov 14, 2008 17:40
by Jive
For those who are thinking that the fog is only for external areas, here is an example of the difference indoor.

You can see by yourself that, playing without fog is really a pity, because it's ruining the great atmosphere given by the fog, being, in fact, not really a fog but progressive darkness.

Posted: Sun Nov 16, 2008 19:32
by Jive
Graf asked me to resize my screenshots (they were 1056x795)
I made it, but the result is quite bad and it don't show really clearly what was shown before...

Posted: Sun Nov 16, 2008 21:28
by NeoHippo
Hello, Jive. Good to see that you are still active with mapping.

What I do, is, to use the posted image as a link to a larger version on http://load.imageshack.us/ . After you upload your image to imageshack, you will be given several choices of either HTML or BBCode code. I usually choose - Thumbnail for forums (1) - , in this case

Code: Select all

[URL=http://img393.imageshack.us/my.php?image=burgsy7.png][IMG]http://img393.imageshack.us/img393/4896/burgsy7.th.png[/IMG][/URL][URL=http://g.imageshack.us/thpix.php][IMG]http://img393.imageshack.us/images/thpix.gif[/IMG][/URL]
of which I copy just the first part into the thread

Code: Select all

[[URL=http://img393.imageshack.us/my.php?image=burgsy7.png][IMG]http://img393.imageshack.us/img393/4896/burgsy7.th.png[/IMG][/URL]
which results in this:

Image

Of course, in case of comparisons it would be less useful unless one downloads the full size images and views them in an image viewer.

Posted: Mon Nov 17, 2008 19:38
by wildweasel
NeoHippo wrote:Of course, in case of comparisons it would be less useful unless one downloads the full size images and views them in an image viewer.
Or, if the user is using any decent browser, they can just open up the image links in new tabs and then cycle between them.

Posted: Fri Nov 21, 2008 15:08
by Jive
I gave here the best compromise I found for a good framerate:
http://forum.drdteam.org/viewtopic.php?t=3679

But there are still terrible slowdowns...
Hmmm... Graf... Don't yell at me, but ZdoomGl don't have any slowdown, even on a wide screen (1280x1024)... :(