Jump to content
The Dark Mod Forums

Recommended Posts

Posted

I've been trying to figure out the reason why my more special effect-laden textures refuse to show up in the editor or the game recently, I'm wondering if I'm doing the materials wrong or if something else on my comp is borked.

 

If you still have your transparent window could you send it to me? I know it works both in the editor and the game cuz of the screenshots, so if it doesn't work for me then I could probably rule out coding errors at least for the time being.

Posted

Breathe in.

 

textures/Darkmod/Objects/Windows/windowpane/Windowpane
{
noSelfShadow
noshadows
twosided
translucent
glass
forceoverlays
//sort decal

qer_editorimage Textures/custom/Winyel1_d.tga
{
               Program           heatHazewithmaskandvertex.vfp
               vertexParm              0       time * 0 , time * 0 // texture scrolling
               vertexParm              1       .5        // magnitude of the distortion
               fragmentProgram 	 heatHazewithmaskandvertex.vfp
               fragmentMap             0       _currentRender
               fragmentMap             1       textures/sfx/vp1  
fragmentMap             2       textures/glass/4x4 	 
            
   }
{	
 maskcolor    
    map	makealpha(textures/glass/glass1)
}	
{
    blend gl_dst_alpha, gl_one
   maskalpha
         cubemap  env/gen2
        red  Parm0
        green   Parm1
        blue	Parm2
                 texgen  reflect
vertexcolor
}
{
       blend filter
map Textures/custom/Winyel1_d.tga
}
{
       blend diffusemap
map Textures/custom/alpha1.tga
alphatest .1
}


}

 

The bit with the actual fragment shader parsed is this line:

Program heatHazewithmaskandvertex.vfp

 

But try the whole thing. The rest is a mish-mash of trying to get the alpha transparency to work properly. It's probably more complicated than needs be.

Posted

Just as long as you know it works. I still haven't figured out why my more complex stuff doesn't work...so far I haven't figured out jack. : \

 

If this doesn't work I'm gonna have to assume it's a problem with the editor and reinstall Doom 3...anyway, thanks for the helping hand. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 2 replies
    • datiswous

      Is there a script command to make a screenshot?
      I just though it could be interesting to be able to create a screenshot at a certain point in time. Then use that screenshot possibly in a debrief.
      I guess the second question is: Can you use a (in-game made) screenshot in a (debrief) gui?
      · 1 reply
    • Bikerdude  »  Display Cement

      So what type, and what ratio of portland to sand 😏
      · 1 reply
    • JackFarmer

      Our esteemed professional mapping predecessors from 20 years ago faced the same challenges we do today!
      · 2 replies
    • snatcher

      TDM Modpack 5.1 is out!
      · 0 replies
×
×
  • Create New...