glowing flats in gzdoom

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

glowing flats in gzdoom

Postby cactus » Thu Feb 19, 2009 1:31 pm

Hello,I was wondering about glowing flats,
is there any glow options available like RGB color control,intensity etc?
If not, is it very difficult to implement?

I think it's a great Opengl feature!
I searched on the wiki, but there are no info about it in the GLDEFS page.
Thank you to inform me if you know something about it.
cactus
 
Joined: 21 Aug 2003

Re: glowing flats in gzdoom

Postby Enjay » Thu Feb 19, 2009 3:47 pm

It is possible to set up glowing flats in GZdoom but there isn't much, er... any, customisation in it other than setting them to glow. What it seems to do is take an average of all the colours on the flat then use that as the colour of the glow (or at least it is doing something similar to that). Brightness, colour, height of glow, whatever, cannot be tailored AFAIK.

example

Code: Select allExpand view
Glow
{
 Flats
  {
   LAVA1
   LAVA2
   LAVA3
   LAVA4
  }
   
 Walls
   {
   FIREBLU1
   FIREBLU2
   }
}


Walls will only glow when they are placed on a floor/ceiling (I know that sounds odd BTW, but hopefully you get what I mean). The "walls" syntax is only kept for compatibility with older syntaxes IIRC.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: glowing flats in gzdoom

Postby Hasuak » Thu Feb 19, 2009 4:07 pm

Holy monstrosities, this must be added into Wiki. I've been searching for this quite a long time. Gotta test if this works with PNG's. These commands are added into GLDEFS or ACS?
User avatar
Hasuak
Can't make avatars right.
 
Joined: 15 Jul 2007
Location: Raahe, Finland

Re: glowing flats in gzdoom

Postby Medricel » Thu Feb 19, 2009 4:08 pm

Hasuak wrote:These commands are added into GLDEFS or ACS?

GLDEFS.

I may be wrong, but I do believe there is a console command in GZdoom for determining glow height, but that's the only place it can be changed.

Also, glowing flats placed on slopes work correctly nowadays, since the glowing is done with a shader.
User avatar
Medricel
26 is the new 18 is the new 11!
 
Joined: 20 Nov 2004

Re: glowing flats in gzdoom

Postby cactus » Thu Feb 19, 2009 4:10 pm

thanks for the exemple enjay,

I find weird there s not any customization available for this
because I think this is a great feature.
Maybe it disturbs me because all the zdoom effects take so many custom variables I took the habit.
cactus
 
Joined: 21 Aug 2003

Re: glowing flats in gzdoom

Postby Hasuak » Thu Feb 19, 2009 4:33 pm

Hm, I can't seem to get my own textures to work. They are normal bmp flats and quite brightly coloured. Original Doom textures still work :I
User avatar
Hasuak
Can't make avatars right.
 
Joined: 15 Jul 2007
Location: Raahe, Finland

Re: glowing flats in gzdoom

Postby Graf Zahl » Thu Feb 19, 2009 4:33 pm

Enjay wrote:It is possible to set up glowing flats in GZdoom but there isn't much, er... any, customisation in it other than setting them to glow. What it seems to do is take an average of all the colours on the flat then use that as the colour of the glow (or at least it is doing something similar to that). Brightness, colour, height of glow, whatever, cannot be tailored AFAIK.

example

Code: Select allExpand view
Glow
{
 Flats
  {
   LAVA1
   LAVA2
   LAVA3
   LAVA4
  }
   
 Walls
   {
   FIREBLU1
   FIREBLU2
   }
}


Walls will only glow when they are placed on a floor/ceiling (I know that sounds odd BTW, but hopefully you get what I mean). The "walls" syntax is only kept for compatibility with older syntaxes IIRC.



Actually there is but I never tested it. When I rewrote the glowing code to use shaders I added another option:

Inside the glow block use 'Texture texname, "color" [,fullbright]"
This was the start of some more options which so far did not happen (too much work at work... :?)
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: glowing flats in gzdoom

Postby cactus » Fri Feb 20, 2009 5:41 am

thanks Graf, I'll try it!
I'll vote for expanding this magic feature!
You've done a marvelous work so far!
cactus
 
Joined: 21 Aug 2003

Re: glowing flats in gzdoom

Postby Enjay » Sat Feb 21, 2009 9:57 pm

Graf Zahl wrote:Inside the glow block use 'Texture texname, "color" [,fullbright]"


Could you please give me an actual example syntax? I've tried entering colours by name, by RGB value (decimal and hex) inside and outside quotes and all I have succeeded in doing is cancelling out the glow. The flat is still drawn fullbright but the glow effect is gone.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: glowing flats in gzdoom

Postby Graf Zahl » Sun Feb 22, 2009 6:20 am

Didn't I say that it has not been properly tested yet? Apparently it's not working right now-.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: glowing flats in gzdoom

Postby Enjay » Sun Feb 22, 2009 10:59 am

Graf Zahl wrote:Didn't I say that it has not been properly tested yet?


You did. ;)

I just wasn't sure if the lack of it working was down to me not doing it right or the feature itself not working properly.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: glowing flats in gzdoom

Postby Xaser » Sun Feb 22, 2009 1:23 pm

Hasuak wrote:Hm, I can't seem to get my own textures to work. They are normal bmp flats and quite brightly coloured. Original Doom textures still work :I


Be careful -- BMP is not a supported format in the Doom universe. Make sure you either convert them to Doom GFX format (in SlumpEd, Right-click -> Convert To... -> 'Doom Gfx' or 'Doom Flat' if it's a flat) or use PNG (perfect for GZDoom). If you leave your graphics in BMP format, they won't work.
User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Re: glowing flats in gzdoom

Postby Xenaero » Sat May 09, 2009 5:31 pm

I hate to bump the topic but there's some serious problems!

http://xenaero.googlepages.com/glowingmap.wad (Run with Doom2 in GZDoom, map01)

Here's a test wad I constructed. Basic flat glows seem to work fine...I mean, all you really need is the 'flats' field, since if you define them in the 'walls' field, you essentially gain the same result, as you can see in the test wad. But here's where it gets tricky. 'walls' is apparently useless since I have two texture glows defined in there that are attached to textures that are both on the walls and floors/ceilings. Only the flat-based wall textures glow, while the ones on the walls do not, as you can see by Bigdoor1 and Cement9. If you define a texture (NOT A FLAT) in the 'flats' field, you achieve the exact same result, as you can see by my use of Crackle2. 'walls' is basically the same as 'flats', then. Can this be addressed? How about only textures/flats placed on floors/ceilings will glow with the 'flats' field, and textures/flats placed on walls will glow with the 'walls' field?

Also, the 'textures' definitions are out of whack. You can define the texture just fine, and fullbright works, but I cannot, for the life of me, figure out the proper syntax to make the texture glow per the color specified. Graf, you mentioned it doesn't work, but when it does, what kind of syntax is to be expected?

There's also absolutely nothing in the ZDoom wiki about the glow field in GLDefs to begin with. I mean I can add that in myself...But, what else could be missing? I'd have looked at the GZDoom documentation... But it got nuked and pointed to the ZDoom wiki instead. Problem is, it's not complete and updated with everything GZDoom has, obviously. That wasn't a very smart move, and I'm not about to look through the source for everything implemented. :/

Quoth Duke: "What a mess!"
User avatar
Xenaero
Well, what I thought I'd do was...
 
Joined: 05 May 2004
Location: Chief Sanchez's Kamikaze Emporium


Return to Editing (Archive)

Who is online

Users browsing this forum: No registered users and 3 guests