1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Creative Chat

[source]selfillum on alpha texture?

  • Steppenwolf
  • December 8, 2009 at 3:02 PM
  • Steppenwolf
    • December 8, 2009 at 3:02 PM
    • #1

    Anyone know how this works? No matter what i try i cant get both things to work at the same time.

    I remember that i had the same problem when i worked for Insurgency and i remember that i figured it out eventualy (i created a glowing aimpoint for one of the weapons that was visible on night maps). They seem to have removed that lense tho so i cant look there how i did it

  • Pampers
    • December 8, 2009 at 3:06 PM
    • #2

    what have you tried to do so far?

  • Steppenwolf
    • December 8, 2009 at 7:58 PM
    • #3

    Got it working now. You need two alphachannels. One in the diffuse texture and the other in the specular texture. The later will be used for the selfillum info. The stupid thing is that this seems to override the vertexlighting on a model (selfillum is set to 50% but still each plane has the same brighness now). So its not really what i tried to accomplish (which is kickass foliage) :/

    My vmt looks like this:

    Code
    "VertexLitGeneric"
    
    
    {
    
    
    	"$basetexture" "Cherrytree/cherryleafes01"
    
    
    	"$envmapmask" "Cherrytree/cherryleafes01_spec"
    
    
    	"$envmap" "env_cubemap" 
    
    
    	"$alphatest" 1
    
    
    	"$nocull" 1
    
    
    	"$model" 1
    
    
    	"$surfaceprop" "foliage"
    
    
    	"$selfillum_envmapmask_alpha" 1
    
    
    
    
    }
    Display More
  • Steppenwolf
    • December 8, 2009 at 8:48 PM
    • #4

    oops sorry for your message step; i wanted to edit my post, and i forgot i was a moderator ;xxxx - kokos

  • KoKo5oVaR
    • December 8, 2009 at 11:48 PM
    • #5

    Very cool tree , what i wonder actually... is how you managed to have a good resolution like that for your tree leaves ? When i use the render to texture option in tree[d], it seems to be stuck to 512*512, and always give me dirty pngs

  • Steppenwolf
    • December 9, 2009 at 12:19 AM
    • #6

    lol Kokos @fucking up my post

    Here is the picture again for the people who missed it:

    [Blocked Image: http://i50.tinypic.com/2qsuzyf.jpg]

    On the left the tree with only diffuse and alpha, on the right the same tree with selfillum added after i got it to work properly (probably needs a little tweaking because the shadow areas might be a little too bright now).

    Quote from KoKo5oVaR

    Very cool tree , what i wonder actually... is how you managed to have a good resolution like that for your tree leaves ? When i use the render to texture option in tree[d], it seems to be stuck to 512*512, and always give me dirty pngs

    That is a 512x512 texture for the leafs. However the single leaf that i used for the render in tree[d] was custom made. And i did some photoshopping afterwards to the colors and to the masking to give it a little more depth.

    [Blocked Image: http://i49.tinypic.com/359e44i.jpg]

  • Pampers
    • December 9, 2009 at 12:56 AM
    • #7

    ah cool, thats a neat trick

  • ultradr3mer
    • December 11, 2009 at 5:42 PM
    • #8

    if you dont need to brighten only spechial parts you can use unlitgeneric shader

    but in case u use it on model, you need to set "$model 1", if you dont it wont render.

  • robert.briscoe
    • December 18, 2009 at 12:21 PM
    • #9
    Quote from Pericolos0

    cool tree!Another thing you can do to make the lighting look nice is point all the normals of the alpha planes upwards, so every vertex gets the same lighting.

    That's an interesting idea! There is also an option in OB hammer to ignore the surface normals for lighting (possibly does the same thing)

  • Warby
    • December 18, 2009 at 7:35 PM
    • #10

    the normals pointing up trick is what i used on wanda:

    http://warby.bitproll.de/projects/0036_ ... nda_03.jpg

    it come swith its very own set of problems but it is a convent quick solution i guess

    with the texture you have thee with ao painted in and all this could be used to a much better effect than what i have in my map

  • KoKo5oVaR
    • December 18, 2009 at 7:41 PM
    • #11

    The solution for trees i found with unity is just to paint your vertexcolors in max before exporting the model; (painting shadows by selecting vertices with the soft selection tool to have something really smooth) but i'm not sure if it's even possible to export vertexcolors in source

  • Warby
    • December 18, 2009 at 7:44 PM
    • #12

    i am sure it is not possible !

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
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

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™