Author Topic: make decals stay for a long time? (Quake 4)  (Read 648 times)

0 Members and 1 Guest are viewing this topic.

Tehstrelok

  • Newbie
  • *
  • Posts: 23
  • Karma: +2/-0
  • The underdog
    • View Profile
make decals stay for a long time? (Quake 4)
« on: September 07, 2015, 02:42:01 PM »
Hi, there is a particular thing Ive been trying to change in quake for, and is the duration of decals such as blood and bullet holes, however, it seems to work very differently from doom 3 where you just change some values and that is it, any ideas here?

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 754
  • Karma: +17/-69
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #1 on: September 07, 2015, 04:48:44 PM »
Look in the material files. Find the decal u want to alter and then increase one of the numbers in the code. Can't remember which one. Not at my PC right now. It's very easy.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

Tehstrelok

  • Newbie
  • *
  • Posts: 23
  • Karma: +2/-0
  • The underdog
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #2 on: September 07, 2015, 06:22:17 PM »
Look in the material files. Find the decal u want to alter and then increase one of the numbers in the code. Can't remember which one. Not at my PC right now. It's very easy.

ok, I found it, was simple enough,however, I am not sure which line Id have to edit here, for example:

textures/decals/bullethole
{
   DECAL_MACRO
   noSelfShadow
   noShadows
   noImpact
   nonSolid
   qer_EditorImage   gfx/effects/decals/bullethole.tga
   {
      if ( glslPrograms == 1 )
      blend          GL_DST_COLOR, GL_SRC_COLOR
      rgba         decalFade[ DecalLife ]
      vertexColor
      glslProgram       glsl/MultiplyBlend.glsl
      shaderTexture      Image         gfx/effects/decals/bullethole.tga
   }   
   
   {       
      if ( glslPrograms == 0 )
            blend         gl_zero, gl_one_minus_src_color
      map         gfx/effects/decals/bullethole_multiply.tga
      clamp         // we don't want it to tile if the projection extends past the bounds
      rgba         decalFade[ DecalLife ]
      vertexColor      // oblique projections will be slightly faded down
   }
}

What line should be edited or added?

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 754
  • Karma: +17/-69
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #3 on: September 07, 2015, 06:57:58 PM »
Add this line and adjust the 300 to your liking. Its in seconds so 300 would be 5 minutes.

Code: [Select]
textures/decals/bullethole
{
   DECAL_MACRO
   noSelfShadow
   noShadows
   noImpact
   nonSolid
   qer_EditorImage   gfx/effects/decals/bullethole.tga

decalInfo 300 5 ( 1 1 1 1 ) ( 0 0 0 0 )

   {
      if ( glslPrograms == 1 )
      blend          GL_DST_COLOR, GL_SRC_COLOR
      rgba         decalFade[ DecalLife ]
      vertexColor
      glslProgram       glsl/MultiplyBlend.glsl
      shaderTexture      Image         gfx/effects/decals/bullethole.tga
   }   
   
   {       
      if ( glslPrograms == 0 )
            blend         gl_zero, gl_one_minus_src_color
      map         gfx/effects/decals/bullethole_multiply.tga
      clamp         // we don't want it to tile if the projection extends past the bounds
      rgba         decalFade[ DecalLife ]
      vertexColor      // oblique projections will be slightly faded down
   }
}
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

Tehstrelok

  • Newbie
  • *
  • Posts: 23
  • Karma: +2/-0
  • The underdog
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #4 on: September 07, 2015, 09:29:27 PM »
Add this line and adjust the 300 to your liking. Its in seconds so 300 would be 5 minutes.


In doom 3 that works perfectly, yet here it just causes the decal to become a square and still dissapears in 10 seconds, very odd, I do not understand why it works in the other game but not here.

VGames

  • PD3 Beta Testers
  • Hero Member
  • *
  • Posts: 754
  • Karma: +17/-69
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #5 on: September 07, 2015, 10:04:11 PM »
Oh man I completely missed the fact that this a question regarding quake 4. Sorry about that.
Get the latest on Perfected Doom 3 here - http://www.moddb.com/mods/perfected-doom-3-version-500

bkt

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +12/-2
  • Doom Newbie
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #6 on: September 08, 2015, 11:08:22 AM »
Raven changed a lot of small parts of the engine and gamecode in Q4.  You'll need the SDK to fix it probably. 

Tehstrelok

  • Newbie
  • *
  • Posts: 23
  • Karma: +2/-0
  • The underdog
    • View Profile
Re: make decals stay for a long time? (Quake 4)
« Reply #7 on: September 08, 2015, 12:27:21 PM »
Raven changed a lot of small parts of the engine and gamecode in Q4.  You'll need the SDK to fix it probably.

I see, thanks