Page 1 of 1

grass in doom 3...

Posted: Wed Jul 06, 2005 8:39 pm
by o'dium
I've made grass in Q2E, and its exactly the same as doom 3 in terms of lighting and shaders...

Anyways, my grass so far is a bunch of polygons grouped together randomly, twoSided, noSelfShadow and noShadows, with a simple alpha tested stage that still loads diffuse, specular and bump.

The problem i'm having is that everything looks fine part from one thing, its very black. Far to black for no reason really.

Whats the best type of shader to use for such a thing?

EDIT: shader

models/mapobjects/grass_patch1/grass
{
twosided
noSelfShadow
noShadows
bumpMap models/mapobjects/grass_patch1/grass_local.tga
specularMap models/mapobjects/grass_patch1/grass_s.tga
{
blend diffuseMap
map models/mapobjects/grass_patch1/grass_d.tga
alphaTest 0.5
}
}

Posted: Wed Jul 06, 2005 8:41 pm
by o'dium
see:

Image

Posted: Wed Jul 06, 2005 9:00 pm
by o'dium
Hmm... this is the doom 3 shader:

textures/decals/hangingwires2
{
nonsolid
noimpact
noshadows
qer_editorimage textures/decals/hangingwires.tga
bumpmap addnormals ( textures/decals/hangingwires_local.tga , heightmap ( textures/decals/hangingwires2_b.tga , 2 ) )
{
blend diffusemap
map textures/decals/hangingwires2_d.tga
alphatest .25
}
specularmap textures/decals/hangingwires2_s.tga
}

Different loading order, and different alpha test value... i'll try this...

EDIT: Nah, no difference...

Posted: Thu Jul 07, 2005 8:51 am
by seremtan
looks to me like the grass sprites are taking their lighting info from somewhere other than where you want it, perhaps from within the brush on which the shader is applied? :shrug:

Posted: Thu Jul 07, 2005 11:53 am
by o'dium
Yeah ignore the lack of grass lol, its a temp model because i couldn't fix this problem...

And yes, it looks a lot like the model is getting the lighting info from the wrong place :shrug:

Posted: Fri Jul 08, 2005 12:21 am
by rep
Hey o'dium, do you remember the videos from MacWorld when they first showed DOOM 3? Remember how moody the lighting was? It looked like a TOOL video.

Could you make Q2E like this? I think they dropped the ball with DOOM 3's lighting because there are only a few places that really show off beautiful lighting and shadows.