Jump to content
The Dark Mod Forums

Recommended Posts

Posted

I wanted to make a dog/wolf model for a little atmosphere. I found this tutorial which looks like it would give great results if it will work. Basically it involves putting several 2d sprites around the dog. Would i be able to have several unconnected sprites around the dog model, or would they have to be connected to the dog model to work?

 

14301_500.jpg

Posted

You don't have to connect the alpha mapped polygons to the body of the wolf. They will animate with the rest of the model just fine.

 

The bigger question is transparency. With id Tech 4 you only have three options and none of them are going to yield results like you see depicted in that tutorial.

 

The first option is the translucent material shader keyword. No alpha maps are used, the entire surface is rendered at 50% opacity, and you maintain light interactions. This won't be of any use here. It's better suited for things like glass windows.

 

The second option is the "blend" blend mode. Alpha maps are used here to their full 8-bit capacity but you lose light interactions. That means whatever colors you paint in the texture are what you will see in game. It's rendered at full brightness, i.e. red hair glows red even in a pitch black room.

 

The last option is alpha test. Alpha maps are used here as well but they are reduced to 1-bit images essentially making them behave like clip maps. The plus side is that you maintain light interactions.

 

vgh_hair_02.jpg

 

The problem is demonstrated well in this image from the tutorial. You paint an alpha map like that on the left and end up with a result like that on the right.

 

This is one of the first things I'd like to see get sorted out when the engine goes open source. Transparency in id Tech 4 is nasty.

Posted
If i used only a fur color of 0,0,0, (totally black) would that make the interactions with light and shadows look ok?

 

It wouldn't look black like a black dog's fur, it would look black as in "completely black on the screen no matter what", like the staff in Robbing the Cradle.

Posted

You don't have to connect the alpha mapped polygons to the body of the wolf. They will animate with the rest of the model just fine.

 

We already have a commoner head model with some hair, you could ask Springheel how he had done it. I thin since the fur is mainly black, you can possible get away with alphatest if you use it for only some sprites along the body to provide the silouette - the base fur will still be rendered ok.

 

This is one of the first things I'd like to see get sorted out when the engine goes open source. Transparency in id Tech 4 is nasty.

 

Indeed.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Posted

You can get coloured alpha blending with faked lighting via specular. however you have to use half depth alpha, which isnt too bad for something like this.

 

I suspect you could even reuse the alpha for specular and tone it down. However I'm unsure as to how this would all act with HDR and postprocessing so I haven't really gone much farther down the road.

 

Otherwise you can use an alphatested surface with 2nd blend stage ontop of that to soften the edges, however the edges wont react to light at all.

Posted

If i used only a fur color of 0,0,0, (totally black) would that make the interactions with light and shadows look ok? Thanks for the detailed answer Rich.

 

OrbWeaver is right. Like I said above you lose light interactions completely when you use the mode "blend". Black is less noticeable but it's still very unnatural looking.

 

That might work if accompanied by some wispy specular maps... hmm... :huh:

 

Nope. Specular reflections are light interactions. Black is still black.

  • 3 weeks later...
Posted

I ran into two examples on transparent black hair, one actually in Doom 3 and it doesn't look bad at least in dark environments. The other is in Fable 3, and i can't tell if light is affecting it, it almost looks like its not. Since modeling the wolf was just for fun and to learn Maya, i may just make it, or part of it to test.

 

Fable3( at 2:20 )

 

doomae.jpg

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

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...