_decal projection, something I discovered.
Posted: Wed Jan 25, 2012 2:01 pm
Many of you may already know this, but I stumbled upon a problem and solution today that I thought might be useful for someone else at some point.
Back in the last Maverick competition I was using chunks of geometry and models side by side. To avoid having some sections marked by gunfire and some not, I added surfaceparm nomarks to all my shaders. Later I wanted to project some decals onto the uneven geometry and discovered that with surfaceparm nomarks _decal projection does not work.
After feeling slightly screwed over by the results of that competition I promptly forgot about my little discovery....until today.
Today I felt inspired to start a little map for Entity Plus. I saw in my head the player starting in an Indiana Jones-esque rain forest ruin. I have been working on some new rock and organic textures and I wanted to test those too.
After making the little forest/ruin starting area I dressed it up with some fern and palm tree models. To complete the picture I added some top-down _decal projections, projecting from above the foliage, to help hide obvious seams or texture repartitions.
That's where I hit my problem. The aplha masked textures of my foliage received the _decal projection. I could have moved things about to avoid the problem, but remembered what I learned in the Maverick map.
That's about it really, rambling post just to say, if you haven't thought of it before surfaceparm nomarks is a good tool for controlling what your projected decals gets drawn on.
Back in the last Maverick competition I was using chunks of geometry and models side by side. To avoid having some sections marked by gunfire and some not, I added surfaceparm nomarks to all my shaders. Later I wanted to project some decals onto the uneven geometry and discovered that with surfaceparm nomarks _decal projection does not work.
After feeling slightly screwed over by the results of that competition I promptly forgot about my little discovery....until today.
Today I felt inspired to start a little map for Entity Plus. I saw in my head the player starting in an Indiana Jones-esque rain forest ruin. I have been working on some new rock and organic textures and I wanted to test those too.
After making the little forest/ruin starting area I dressed it up with some fern and palm tree models. To complete the picture I added some top-down _decal projections, projecting from above the foliage, to help hide obvious seams or texture repartitions.
That's where I hit my problem. The aplha masked textures of my foliage received the _decal projection. I could have moved things about to avoid the problem, but remembered what I learned in the Maverick map.
That's about it really, rambling post just to say, if you haven't thought of it before surfaceparm nomarks is a good tool for controlling what your projected decals gets drawn on.