1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
Everywhere
  • Everywhere
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Members
  3. Ray

Posts by Ray

  • Problems with Alpha-Channel in HL2

    • Ray
    • October 10, 2006 at 8:18 AM

    Thank you very much, guys That was real fast help!

    Yeah, with "$alphatest" 1 it's working. The model is low-poly coz a map is supposed to have like hundreds of them (using LOD, too).

    hessi: Thx, gonna watch ur tuts right now

  • Problems with Alpha-Channel in HL2

    • Ray
    • October 9, 2006 at 10:41 AM

    Hi there!

    I'm currently working on a fern in 3dsmax for a HL2-mod. I started modelling 1 low-poly leaf of it and then put some together to get a bunch of them

    For the leaf I simply use a picture of a real leaf, saved as a tga-file with alpha-channel.

    Well, the alpha-channel kinda works, but not the way it's meant to be. In 3dsmax, everything looks fine, but in-game there is some strange error:

    The first leaf I put for the model is shown correct. The second one is almost perfect, but doesnt work correct when being on front of the first leaf. The third one is correct except when it is in front of the first or the second leaf and so on... here's a picture showing the converted fern via hlmv with different rotation:

    The numbers are for better orientation and show the order I placed the leafs within 3dsmax.

    [Blocked Image: http://img82.imageshack.us/img82/7809/fern1fs2.th.jpg]

    With leaf 1, everything is correct, there are no errors in viewing it

    [Blocked Image: http://img174.imageshack.us/img174/884/fern2cp1.th.jpg]

    Leaf 2 is shown correct for leaves 3-5, but on this picture u might see that leaf 1 is somehow shown IN FRONT of leaf 2, but should be hidden by leaf 2

    [Blocked Image: http://img82.imageshack.us/img82/5541/fern3en7.th.jpg]

    Leaf 3 isn't shown correct if leaf 1 or leaf 2 are behind it. Somehow leaf 1 can be seen at the front, the viewer places leaf 3 BEHIND leaf 1 and leaf 2, but it should be at the front.

    [Blocked Image: http://img183.imageshack.us/img183/5436/fern4ft6.th.jpg]

    Here's some close-up screenshot. There's leaf 4 in the front, but get's rendered by hlmv in the back, showing leaves 1-3 first.

    I don't know what I'm doing wrong and it's really weird. Here is my complete .vmt for the fern-texture:

    Code
    "VertexLitGeneric"
    
    
    {
    
    
    	"$baseTexture" "(removed)\plants\fern\Fern3"
    
    
    
    
                    // Used by a model
    
    
    	"$model" 1
    
    
    
    
                    // Using alpha-channel
    
    
    	"$translucent" 1
    
    
    
    
                    // Shows back-faces. Needed, because otherwise I can't see
    
    
                    // the downside of the leaf.
    
    
    	"$nocull" 1
    
    
    
    
    	"$compilepassbullets" 1
    
    
    }
    Display More

    Is there anything wrong or missing here?

    Another problem is that white line around my texture. The line isn't visible when viewing the model very close (see picture 4), but from some distance the white line gets ever thicker, making the model look stupid and not fitting the green / brown-colored rest of the forrest. But the alpha-channel fits perfectly...

    Hopefully someone can help me I would be REALLY thankful for any help I get!!!

    I already wasted 3 days with reading tons of pages of Valve's documentation and trying many things, but couldn't find anything useful.

Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™