Making flickering lightings : "how to", the answer

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Making flickering lightings : "how to", the answer

Post 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.
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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).
Attachments
doomdefs.zip
(3.02 KiB) Downloaded 93 times
User avatar
WolfyGirl
Posts: 126
Joined: Sun Sep 14, 2008 8:08
Location: The Netherlands
Contact:

Post by WolfyGirl »

i don't know much yet about GLlights, once i studied this a bit more, i could help with this issue :/
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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?
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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 !!!
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post by Jive »

About "Force additive lighting", do have a look at the result
The difference is VERY important, making like a fog
Attachments
With additive lighting
With additive lighting
kill-me_E1M4_with additive lightings_gzdoom v1.1.05.jpg (30.98 KiB) Viewed 1478 times
Without additive lighting
Without additive lighting
kill-me_E1M4_without additive lightings_gzdoom v1.1.05.jpg (38.3 KiB) Viewed 1478 times
Last edited by Jive on Sun Nov 16, 2008 19:26, edited 1 time in total.
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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.
Attachments
Kill-me - E1M4 - Fog on
Kill-me - E1M4 - Fog on
kill-me_E2M4_Fog on.jpg (28.21 KiB) Viewed 1477 times
Kill-me - E1M4 - No fog
Kill-me - E1M4 - No fog
kill-me_E2M4_No Fog.jpg (31.52 KiB) Viewed 1477 times
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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...
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Post 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.
TAtL, tU, aE
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post 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.
User avatar
Jive
Posts: 340
Joined: Sat Mar 11, 2006 23:44
Location: Manaus (Amazonia)
Contact:

Post 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)... :(
Locked

Return to “GZDoom”