Author Topic: Bumpmapping doesn't work  (Read 3851 times)

m0wlwurf

  • Guest
Bumpmapping doesn't work
« on: January 21, 2007, 04:22:30 pm »
Hallo,

I decided to start mapping for Tremulous therefore i wanted to start creating Textures first but I determined that Bumpmap-Shaders don't work...

thats my shader:

Code: [Select]
textures/peagasus_shader/metall_grid

{
qer_editorimage textures/shader_files/METAL_005.tga
q3map_normalimage textures/shader_files/METAL_005_fbump.tga
surfaceparm metalsteps
{
map $lightmap
rgbGen identity
}
{
map textures/shader_files/METAL_005.tga
blendFunc GL_DST_COLOR GL_ZERO
rgbgen identity
}
}


and thats the images i used:



Does anyone know whats going wrong?

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Bumpmapping doesn't work
« Reply #1 on: January 21, 2007, 04:54:39 pm »
use smaller lightmapscale and thresh (0.5)
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

m0wlwurf

  • Guest
Bumpmapping doesn't work
« Reply #2 on: January 21, 2007, 05:14:27 pm »
that dosn't work too...

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Bumpmapping doesn't work
« Reply #3 on: January 21, 2007, 07:30:49 pm »
/r_lightmap 1 still shows a plain wall with no structure?

Anyway, even if it is rendered, you won't see a big difference, because the color-texture is still baken with a normal map.
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

m0wlwurf

  • Guest
Bumpmapping doesn't work
« Reply #4 on: January 21, 2007, 07:45:35 pm »
Sorry, it was my mistake, its now bumpmapped,
but you are right i cant see any significant difference.

vcxzet

  • Guest
Bumpmapping doesn't work
« Reply #5 on: January 21, 2007, 07:49:48 pm »
because
1) it is baked into the lightmap
2) no support for real lightmaps
3) no dynamic lights

WolfWings ShadowFlight

  • Posts: 140
  • Turrets: +0/-0
Bumpmapping doesn't work
« Reply #6 on: February 01, 2007, 07:25:06 pm »
Quote from: "vcxzet"
because
1) it is baked into the lightmap
2) no support for real lightmaps
3) no dynamic lights


2 is patently false. Lightmaps were originally defined by Quake 1. Newer techniques specifically avoid calling themselves lightmapping for that reason.

And 3 is also patently false with q3map2. You're limited on the number of dynamic lights that can fall on a single surface, and the lights cannot move relative to the surface they're illuminating, but the lighting is not required to be entirely static. Almost nobody bothers to go through the steps to set up dynamic lighting though.

1 is true, but bumpmapping can make a large difference when used properly in Tremulous. For example, compare these two pictures:
Lightmapped w/ Bump and Specularity Map
Vertex-Lit

One is lightmapped with bump and specularity maps used, the other is vertex-lit without either. The vertex-lit image shows I'm not cutting into the geometry to make the details in the lighting, but the bumpmapping is most definately adding shadow and highlight details, in particular in the walls.

Trying to use a bumpmap to add fine detail to something like diamond-plate flooring though, I agree, is futile. It simply won't work, there's not enough feasable lightmap resolution in a Q3A-based map to accomplish it.
img]http://wolfwings.us/sigs/WolfWings.jpg[/img]

vcxzet

  • Guest
Bumpmapping doesn't work
« Reply #7 on: February 01, 2007, 07:42:58 pm »
meh they both look like crap
define me real lightmap
this is neither true nor false
wth is 2) no support for real lightmaps
I think I managed to write normalmaps