Author Topic: Player shadows.  (Read 5001 times)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Player shadows.
« on: September 25, 2006, 08:19:51 am »
http://www.tremulous.net/screenshot.php?id=131

All I get on my game are circular shadows under the player characters. In this screenshot, there's actual projected shadows from the characters. How do I enable that? Am I missing something in my config?

Stof

  • Posts: 1343
  • Turrets: +1/-1
Player shadows.
« Reply #1 on: September 25, 2006, 09:47:15 am »
Use r_shadows 2 instead of r_shadows 1

It is rather buggy but a good way to spot a trapper behind a door though.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Player shadows.
« Reply #2 on: September 25, 2006, 10:14:33 am »
This are sadly the only stencel shadows available in Q3, but some peeps wanna port them for all objects. Could me quite cool, if it were not so buggy ;)
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]

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Player shadows.
« Reply #3 on: September 25, 2006, 11:44:54 am »
/r_shadows 2 does nothing. They still have the circular shadows.

tomek-k

  • Guest
Player shadows.
« Reply #4 on: September 25, 2006, 05:52:58 pm »
hey. wtf?

i type /r_shadows in the console and it claims that there is no such command :x

Stof

  • Posts: 1343
  • Turrets: +1/-1
Player shadows.
« Reply #5 on: September 25, 2006, 06:27:04 pm »
That's because the command/var is cg_shadows, not r_shadows :oops:

Remark about setting it to 2 instead of 1 still holds.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Player shadows.
« Reply #6 on: September 25, 2006, 09:24:20 pm »
/cg_shadows 2 disables the shadows, and /cg_shadows 3 produces somewhat the effect I was thinking of, but the shadows do not follow the terrain well, and actually go over ledges. Is /cg_shadows 2 only a Windows thing? I asked around on my clan server and the only people able to get /cg_shadows 2 working are the people who were running Windows.

Moofed

  • Posts: 89
  • Turrets: +1/-0
    • http://moofed.org
Player shadows.
« Reply #7 on: September 25, 2006, 09:59:01 pm »
I think stencil bits has something to do with shadow support.

Stof

  • Posts: 1343
  • Turrets: +1/-1
Player shadows.
« Reply #8 on: September 25, 2006, 11:10:04 pm »
Quote from: "Odin"
/cg_shadows 2 disables the shadows, and /cg_shadows 3 produces somewhat the effect I was thinking of, but the shadows do not follow the terrain well, and actually go over ledges. Is /cg_shadows 2 only a Windows thing? I asked around on my clan server and the only people able to get /cg_shadows 2 working are the people who were running Windows.

I'm running Linux too and I got the shadows "working" with cg_shadows 2
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Player shadows.
« Reply #9 on: September 25, 2006, 11:16:59 pm »
That's weird. Am I missing something in my configs then?

Stof

  • Posts: 1343
  • Turrets: +1/-1
Player shadows.
« Reply #10 on: September 25, 2006, 11:31:59 pm »
Well, from what I've seen, check that your framebuffer is in 32bit and that r_stencilbits is at 8. Except from that, no idea.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

tomek-k

  • Guest
Player shadows.
« Reply #11 on: September 26, 2006, 11:40:33 am »
If they are stencil shadows then you should also check for your gfx card's stencil buffer support (how many bits the stencil buffer can have), and how many bits of the stencil buffer Tremulous requires for drawing shadows (Stof wrote that 8 ). So this is your OpenGL driver's thing, not windows :wink:
But I think it's wired that it depends on the framebuffer color depth - the buffers should be separate, but maby the game's engine does not use the hardware stencil buffer and uses framebuffer to store the stencil bits? But what about the transparency then?

BTW. I tried the /cg_shadows and it works now. (I have r_stencilbits set to 8 and use 32bit framebuffer, and of course use linux :wink: )

BTW2. I wonder how many more secret options are there in the engine just waiting for me to try 'em :wink:

Lava Croft

  • Guest
Player shadows.
« Reply #12 on: October 04, 2006, 01:58:42 pm »
Hay Odin, how about using the goddamn Search function.

Click me for instant knowledge