Shadows?

Get support for Unvanquished.
User avatar
Chomps123
Dretch
Posts: 57
Joined: Mon Apr 02, 2012 7:18 pm UTC
Location: Fultonville, New York

Shadows?

Post by Chomps123 »

You said there are new shadows but they don't seem to work for me

I've taken the new .zip file and extracted it over the old unv but i've seem to of lost shadows all together (except for the blobs)

Help me out please...

Don't just live life with work.
Find some time every day to have some fun. ;)

User avatar
kharnov
Granger
Posts: 1851
Joined: Tue Mar 06, 2012 10:54 pm UTC
Clan: GT
Location: New York City

Re: Shadows?

Post by kharnov »

Please describe this further. Which renderer are you using? Did you set the cvars I listed in the article?

User avatar
Chomps123
Dretch
Posts: 57
Joined: Mon Apr 02, 2012 7:18 pm UTC
Location: Fultonville, New York

Re: Shadows?

Post by Chomps123 »

i click on deamon.exe like always and started a test server fired my gun while in third person view and saw no shadow from the gun flash, normally there would be but now...nope.

I had alpha 16 and i just overwritten it with alpha 17.

Also i tried to type in cg_playershadows 1 but it didn't work, it said cg_playershadows didn't exist.

Don't just live life with work.
Find some time every day to have some fun. ;)

User avatar
icaro440
Marauder
Posts: 183
Joined: Fri Mar 23, 2012 10:46 am UTC
Location: [SP]ain

Re: Shadows?

Post by icaro440 »

Shadows look very good, but I have noticed a small problem; it is as if the models (player models) shine and illuminate the map in its path.

also when I activated the shadows, I perceived a slight drop in fps. (wich is logical)

And a few question:

r_smp, good for something?.

cpu or gpu? which one is responsible for calculating shadows.

I guess you agree with me that modern computers are real monsters, it would be fantastic that the engine could take well advantage of modern processors, and separate some processes in different threads (I'm thinking of the work of calculating the shadows)

Congratulations.

User avatar
danmal
Posts: 193
Joined: Thu Mar 08, 2012 1:44 am UTC

Re: Shadows?

Post by danmal »

Don't extract it over an old copy of Unvanquished. You may end up loading old assets or code. Just extract to a new directory and run it from there.

User avatar
Fuma
Programmer
Posts: 58
Joined: Wed Mar 07, 2012 6:49 pm UTC

Re: Shadows?

Post by Fuma »

icaro440 wrote:

r_smp, good for something?.

cpu or gpu? which one is responsible for calculating shadows.

I guess you agree with me that modern computers are real monsters, it would be fantastic that the engine could take well advantage of modern processors, and separate some processes in different threads (I'm thinking of the work of calculating the shadows)

r_smp is a dead cvar that does nothing because the support for it was compiled out.
All shadows are done on the gpu. Doing it on the cpu would be terribly slow.
The only things the cpu does is setup a few matricies and vectors and passes references to the gpu after doing a bit of occlusion culling using the static visibility data and frustum culling using the viewport. All of this is so cheap it basically isn't even a factor in the speed.
The gpu handles all the work of creating the shadow and projecting it on the scene.

The work the cpu does for shadows is very minimal. Unless you have an absolute beast of a gpu, it is unlikely to be the bottleneck in shadows rendering.
If you do have such a gpu, then you can already run at a constant 150+ fps at all times anyway, so I doubt you would care what the bottleneck was ;).

User avatar
icaro440
Marauder
Posts: 183
Joined: Fri Mar 23, 2012 10:46 am UTC
Location: [SP]ain

Re: Shadows?

Post by icaro440 »

Fuma wrote:

r_smp is a dead cvar that does nothing because the support for it was compiled out.
All shadows are done on the gpu. Doing it on the cpu would be terribly slow.
The only things the cpu does is setup a few matricies and vectors and passes references to the gpu after doing a bit of occlusion culling using the static visibility data and frustum culling using the viewport. All of this is so cheap it basically isn't even a factor in the speed.
The gpu handles all the work of creating the shadow and projecting it on the scene.

The work the cpu does for shadows is very minimal. Unless you have an absolute beast of a gpu, it is unlikely to be the bottleneck in shadows rendering.
If you do have such a gpu, then you can already run at a constant 150+ fps at all times anyway, so I doubt you would care what the bottleneck was ;).

Crystal clear, thank you.

User avatar
Chomps123
Dretch
Posts: 57
Joined: Mon Apr 02, 2012 7:18 pm UTC
Location: Fultonville, New York

Re: Shadows?

Post by Chomps123 »

thanks that worked

now i got this going on

Attachments
unvanquished_2013-07-20_161258_000.jpg

Don't just live life with work.
Find some time every day to have some fun. ;)

User avatar
Chomps123
Dretch
Posts: 57
Joined: Mon Apr 02, 2012 7:18 pm UTC
Location: Fultonville, New York

Re: Shadows?

Post by Chomps123 »

can someone help me fix this?

Don't just live life with work.
Find some time every day to have some fun. ;)

User avatar
Viech
Project Head
Posts: 2139
Joined: Fri Aug 03, 2012 11:50 pm UTC
Location: Berlin

Re: Shadows?

Post by Viech »

I experienced similiar issues. I don't think shadows are ready yet.

Responsible for: Arch Linux package & torrent distribution, Parpax (map), Chameleon (map texture editor), Sloth (material file generator), gameplay design & programming, artistic direction

Post Reply