Jump to content

Home

Check it out: I got phonged-up metashaded terrain working!


rgoer

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

Hate to double post, but the EXACT line from radiant that includes the error is:

 

WARNING: Activate shader failed for textures/common/terrain

 

Also, I suppose showing everyone what I changed in my .shader might help

 

It's gone from this:

textures/ejkterrain/terrain_0
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/jung8.jpg
	rgbGen vertex
	tcmod scale 1.000 1.000
}
}

textures/ejkterrain/terrain_1
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/rockwall.jpg
	rgbGen vertex
	tcmod scale 1.000 1.000
}
}

textures/ejkterrain/terrain_2
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen vertex
	tcmod scale 1.000 1.000
}
}

textures/ejkterrain/terrain_0to1
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/jung8.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
}
{
	map textures/yavin/rockwall.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/ejkterrain/terrain_0to2
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/jung8.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
}
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/ejkterrain/terrain_1to2
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/rockwall.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
}
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen vertex
	alphaGen vertex
	tcmod scale 1.000 1.000
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

textures/ejkterrain/terrain.vertex
{
surfaceparm nolightmap
q3map_novertexshadows
q3map_forcesunlight
{
	map textures/yavin/jung8.jpg
	rgbGen vertex
	tcmod scale 1.000 1.000
}
}

 

To this (self-edited):

textures/ejkterrain/baseterrain
{
q3map_lightmapsamplesize 8
q3map_lightmapsampleoffset 8
q3map_lightmapaxis z
}

textures/ejkterrain/terrain_0
{
q3map_baseshader textures/ejkterrain/baseterrain
{
	map textures/yavin/jung8.jpg
	rgbGen identity
	tcMod scale 0.1 0.1
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}

}

textures/ejkterrain/terrain_1
{
q3map_baseshader textures/ejkterrain/baseterrain
{
	map textures/yavin/rockwall.jpg
	rgbGen identity
	tcMod scale 0.1 0.1
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}
}

textures/ejkterrain/terrain_2
{
q3map_baseshader textures/ejkterrain/baseterrain
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen identity
	tcMod scale 0.1 0.1
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}
}

textures/ejkterrain/terrain_0to1
{
q3map_baseshader textures/ejkterrain/baseterrain

{
	map textures/yavin/jung8.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.1 0.1

}
{
	map textures/yavin/rockwall.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.05 0.05
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}
}

textures/ejkterrain/terrain_0to2
{
q3map_baseshader textures/ejkterrain/baseterrain

{
	map textures/yavin/jung8.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.1 0.1

}
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.05 0.05
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}
}

textures/ejkterrain/terrain_1to2
{
q3map_baseshader textures/ejkterrain/baseterrain

{
	map textures/yavin/rockwall.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.1 0.1

}
{
	map textures/korriban/os_outsidebasef.jpg
	rgbGen identity
	alphaGen vertex
	tcmod scale 0.05 0.05
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
	map $lightmap
	blendFunc GL_DST_COLOR GL_ZERO
	tcGen lightmap
	rgbGen identity
}
}

textures/ejkterrain/terrain.vertex
{
{
	map textures/yavin/jung8.jpg
	rgbGen vertex
}
}

textures/common/terrain 
{ 
  q3map_terrain 
  surfaceparm nodraw 
  surfaceparm nolightmap 
  surfaceparm nomarks 
}

 

Any help is appreciated.

 

 

 

[EDIT]Hmm....it loaded in radiant, but no textures...all of the surface is the 'missing shader' texture...

Link to comment
Share on other sites

I assume you are the dude that emailed me about this? Radiant will never show the true textures for terrain--that's just not the way the Team Arena terrain system works. The terrain entity (really just a func_group) is textured with one texture ("common/terrain")... the compiler does the rest based on your terrain blending .shader definitions and the .pcx alphamap (both of which are defined in the key/value pairs of said terrain entity). You will never see a "true" representation of your terrain's shader blending in the editor, the most you will get is whatever image you defined in common/terrain's qer_editorimage line. If the red and black "shader not found" checkerboard bugs you, feel free to use whatever image you want for qer_editorimage; otherwise, don't sweat it, because it don't mean a damned thing.

Link to comment
Share on other sites

Well well...aren't we the professor of mapping. Good to see your ugly mug on the forums man. I don't usually come here much anymore. But I might stop in from time to time. Great tutorials as always rgoer. If anyone should be working for RAVENSOFT or even ID........:D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...