Jump to content
The Dark Mod Forums

Request for generic snow decal


grayman

Recommended Posts

I spent a couple hours last night trying to create a generic snow decal to represent a light snow that had been falling for an hour or so, but wasn't successful. I don't know if it's a problem with only having white in the diffuse image and screwing up the alpha channel or what.

 

Could someone please create one that tiles?

 

Here's an example of a snowy grass texture I made. It represents the type of snow pattern I'm interested in.

 

post-3633-0-78416900-1379777256.jpg

 

I used a few custom snow textures in In the North, but a simple transparent decal is eluding me. I'm not inclined to create numerous opaque diffuse images for rooftops, wall tops, and other surfaces that would catch a light dusting of snow.

 

Thanks.

Link to comment
Share on other sites

How about that one?

 

textures/darkmod/decals/snow
{

   qer_editorimage   textures/darkmod/nature/snow/snow_rough01_ed

   description "A snow decal"


   {
       maskcolor                
       map makealpha(textures/darkmod/decals/dirt/dirt_001_crumb_alpha01.jpg)
       alphatest parm5
   }

diffusemap textures/darkmod/nature/snow/snow_rough01

}

 

post-11230-0-52267100-1379796003_thumb.jpg

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

The alphamap is from a dirt decal. I guess other ones could be used a as well. I didn't scaled it so it lookes a bit rough ingame. Scaling the alphamap may do the trick.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

@Obs, I haven't been able to see a satisfactory result using this workaround. As Biker said, it looks like splats of paint. And I don't know shader syntax enough to scale the alpha.

 

I don't want people to assume the problem is solved, so hopefully there's an artist out there who can make an actual transparent texture.

 

If not, then I guess I'll put in the time to make the individual non-transparent snowy textures I'd like to have.

Link to comment
Share on other sites

Right, can you post images or give me the shader paths for the textures you want snow on, as I maybe able to make "snow" versions like I did for the TDM 2.0 version of Business as usual. (Looks at the cobblestones and some of the wood textures in the mission)

 

Otherwise I can have a go at feathering the edges of Obs snow texture above, but you'll need to pm a download link.

 

Otherwise found this link, we are free to use them inside the mod or missions - http://texturelib.com/license/

 

- http://texturelib.co...frozen%20ground

 

ground_frozen_ground_0039_01_preview.jpg

 

ground_frozen_ground_0027_01_preview.jpg

 

ground_frozen_ground_0029_01_preview.jpg

Link to comment
Share on other sites

Thanks for the offer, but I don't want to bother you for specific textures; I can do that myself. I haven't decided which textures need the treatment yet, anyway.

 

I was hoping for a general snow overlay I could use on anything.

 

I originally designed the map with full snow on everything, but the story line requires that be scaled back to a light dusting.

Link to comment
Share on other sites

@Obs, I haven't been able to see a satisfactory result using this workaround. As Biker said, it looks like splats of paint. And I don't know shader syntax enough to scale the alpha.

Scaling alpha is something I found hard to do with the material definitions, too. However, the actual result depends on the image used to create the alpha. So if one wants a more softer fading between snow and now snow, the image has to look different. If I find the time I'll try to create a custom one and post a shot here.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I don't want people to assume the problem is solved, so hopefully there's an artist out there who can make an actual transparent texture.

 

There may be tricks I don't know about, but the general rule is that semi- transparent textures that react to light are not possible in D3. In other words, if you have snow with transparent bits missing, then the transparency has to be all or nothing. The visible parts will therefore have hard edges, not feathered, and will look like blobs of paint. You can make white, semi-transparent snow with an additive blend, but it will then not react to light and would glow in the dark. Unfortunately there's no in between.

Link to comment
Share on other sites

Dirt decals don't have any feathering either, and they often don't look very successful. That's part of the reason Obs worked on that vertex colour exporter for DR.

Link to comment
Share on other sites

The best you can do without a custom fragment program is fixed function blending modes like addition or multiplication. The light interaction shader handles the diffuse, bump, and specular stages of a material shader. All other stages are composited in a fashion similar to layer blending modes in an image editor.

 

I'm not terribly familiar with all the blending options available but you can google "glBlendFunc" if you're curious. Those same parameters can be used for a stage in a material shader. Multiplication is passable for things like dirt because black pixels stay black. Addition is good for things that should glow. I have yet to find a suitable combination for something that should brighten the underlying pixels but not glow in the dark.

  • Like 1
Link to comment
Share on other sites

@Obs, talking which have you got horizontal exporting working yet..?

Dude, your english... Do you mean this?

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I know you do, but sometimes I just don't get what you are saying. Don't know if this is slang, though. :P

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I've just tried

blend gl_dst_color, gl_one

 

This does brighten the underlying texture and it reacts to light corrrectly, but even where the image is white you can see the color of the underlying image, so not really perfect for snow...

 

post-483-0-13764400-1380094417_thumb.jpg

 

Maybe you could use this in combination with the alphatested image to mask the edges a bit.

Link to comment
Share on other sites

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

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...