IrocJeff Posted June 12, 2015 Share Posted June 12, 2015 for shading my terrain... how do I make the blended texture? I have all the shaders from previous ones that I should be able to re edit...I just am not sure how to make the blended texture itself. Xycaleth likes this Link to comment
mrwonko Posted June 12, 2015 Share Posted June 12, 2015 I assume you're talking about blending between different textures as usually used in terrains. You either use vertex colors as alpha values for blending and set the vertex color using brushes as described here or you use an alphamapped terrain, which is typically created using EasyGen as described in this tutorial. (The easygen download link there is broken, try this one.) Link to comment
IrocJeff Posted June 12, 2015 Author Share Posted June 12, 2015 All my terrain is done by hand so Easygen is out. Also that site does not really help me in how to make the specific textures I need. I have alpha blends ranging from 0, 25, 50, 75, 100. Does that correspond to how many layers of opacity I need for the blended texture? That's what I don't really get. I know how to blend terrain and all that..but how is that specific blended .tga created? Link to comment
Boothand Posted June 12, 2015 Share Posted June 12, 2015 You don't need any special tga files with any sort of opacity settings or anything. The textures are only used by shaders. So you would apply a shader to a brush in GtkRadiant (for example a mud2grass shader on the ground between mud and grass), then encapsule each vertex that makes up that brush in those alpha blending brushes, specifying the opacity at that particular vertex. Link to comment
IrocJeff Posted June 12, 2015 Author Share Posted June 12, 2015 You don't need any special tga files with any sort of opacity settings or anything. The textures are only used by shaders. So you would apply a shader to a brush in GtkRadiant (for example a mud2grass shader on the ground between mud and grass), then encapsule each vertex that makes up that brush in those alpha blending brushes, specifying the opacity at that particular vertex. This is the shader I have from my old terrain. So, all I would need to do is replace the primary and secondary with the textures I want. Then I can make whatever I want for qer editor image..and I should be alright then? textures/icestationwampa/darkrock_dirt_blend { qer_editorimage textures/icestationwampa/darkrock_dirt_blend.jpg q3map_nonplanar q3map_shadeAngle 75 { // Primary map textures/icestationwampa/dirt.tga rgbGen identity } { // Secondary map textures/icestationwampa/darkrock.tga blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA alphaGen vertex rgbGen identity } { map $lightmap blendFunc GL_DST_COLOR GL_ZERO rgbGen identity } } Link to comment
Boothand Posted June 12, 2015 Share Posted June 12, 2015 So, all I would need to do is replace the primary and secondary with the textures I want. Then I can make whatever I want for qer editor image..and I should be alright then? Yeah, that's how I remember it. Link to comment
IrocJeff Posted June 13, 2015 Author Share Posted June 13, 2015 Yeah, that's how I remember it. I was able to get it to work alright. You can see it there to the right of the crosshair. Boothand, Langerd and Ramikad like this Link to comment
Langerd Posted June 14, 2015 Share Posted June 14, 2015 I was able to get it to work alright. You can see it there to the right of the crosshair. Wow this terrain looks very well made! I like it Link to comment
Ramikad Posted June 14, 2015 Share Posted June 14, 2015 I was able to get it to work alright. You can see it there to the right of the crosshair. Brothers in Arms? Link to comment
IrocJeff Posted June 14, 2015 Author Share Posted June 14, 2015 Wow this terrain looks very well made! I like it Thanks, it doesn't exist anymore, though.. lol I deleted this last night and started over. I found a more efficient method to manipulate the terrain like I wanted so I tried it out and it worked better. I'll probably start a new WIP thread tonight late on this when I get some better results in. Link to comment
IrocJeff Posted June 14, 2015 Author Share Posted June 14, 2015 Brothers in Arms? Well, Call of Duty 1 & 2, actually. Its a trench/bunker system. I'm trying out more outdoorsy stuff, weather, terrain, trees, ect.. Link to comment
Langerd Posted June 14, 2015 Share Posted June 14, 2015 Well, Call of Duty 1 & 2, actually. Its a trench/bunker system. I'm trying out more outdoorsy stuff, weather, terrain, trees, ect..For trees i recommend deformvertex shader of the leaves to make the effect of the wind. Cool idea btw Link to comment
Ramikad Posted June 15, 2015 Share Posted June 15, 2015 For trees i recommend deformvertex shader of the leaves to make the effect of the wind. I don't. At least not when you have lots of branches / leaves to apply this shader on, because deformVertexes causes heavy lag when spammed all over. If you're dealing with a lot of foliage, trees and bushes, a better solution is to use a tcMod stretch, which although doesn't look as good as deformVertexes it's surely much lighter. In the end, my suggestion is to test it: if it works fine with deformVertexes then that'll do. Langerd likes this Link to comment
Langerd Posted June 15, 2015 Share Posted June 15, 2015 I don't. At least not when you have lots of branches / leaves to apply this shader on, because deformVertexes causes heavy lag when spammed all over. If you're dealing with a lot of foliage, trees and bushes, a better solution is to use a tcMod stretch, which although doesn't look as good as deformVertexes it's surely much lighter. In the end, my suggestion is to test it: if it works fine with deformVertexes then that'll do.I mean yeah this or tcMod stretch .. I was in the school and only the deformvertexes was on my mind. Link to comment
IrocJeff Posted June 15, 2015 Author Share Posted June 15, 2015 I'm not really concerned about leaves or branches moving. I just want trees and shrubs..something along the lines of COD2 would be fine...I don't think those moved at all. I'm probably going to reinstall the game, download the mod tools, and take a look how they did stuff. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now