Stencil Shadows

Hi all,

I'm looking to make stencil shadow work for my tracks objects & I'm frustrated right now, cuz I can't find the info anymore. My actual car runs OK with it, so I have a shadow.dof with use_shaders=1.

So what I've done for the track objects :

- racer.ini was modified to enable SS
- in geometry.ini of my track (Lil Lake), I added the shadows tree as follow :

Code:
shadows
{
  my_track_ads_1_shadows
  {
    file=my_track_ads_1_shadows.dof
    extrude=100.0
  }
}
- in track.shd, I added my shadow material (just one as Ruud recommends) :

Code:
shader_shadow~vf_standard
{
  layer0
  {
    map=shadows.dds
  }
}
I've also executed a boolean op on the shadow object, so I have 1 object & 1 material only.
No matter what I try, I can't see them !
The shadows.dds is a simple black tex without any alpha for sure.
I checked my material name, so that's OK too.

2 questions already somewhere answered :

Is 'my_track_ads_1_shadows' correct ? Could I choose another name or does it depend on the dof file name ?
Why in car.ini, you use a different structure to output car shadows, with use_shaders=1 in the graphics tree ? I tried that same for geometry.ini ?

Until now, I never managed to see my track fully 'stencil shadowed' which could be useful for lower systems once I'll release my update.

Some help to make them work definitely would be appreciated !

P.S.: Since I see my car stencil shadow with the actual settings, I'm deducting somewhere something's wrong...

Thx
 
Stencil shadows were never fully implemented, so don't bother. Only the car shadow worked, track ones didn't.

I'm assuming you are running an old Racer version? It's all about CSM nowadays anyway...
 
Thx Some1, Dave told me the same & Ruud (couldn't find where in the forum) told the inverse.

The reason is CSM on my actual 3 screens config will drop FPS, so that's one reason. (2 x ATI 4670 1.5 GB)
I know Mitch continues to implement nice CSM shader into Racer, but that will probably last before having something really 'stable' from all perspective views (TC=tracks cams) for example.

Ok, so I'll definitely move on & leave those SS alone, hm that should be just deleted from official docs.

Too bad there weren't further developed in Cg ! Hope CSM won't get abandoned too soon...lol
 
CSM will be here to stay for a long time I think.

It's simply too generalised to be replaced by anything that can be even more effective. All I can see happening is maybe a move to allowing tinted shadow casting, somehow... perhaps another pass for just those things (semi-transparent with tints?)

Hmmm

Dave
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 86 12.8%
  • < 2 years

    Votes: 63 9.4%
  • < 3 years

    Votes: 69 10.3%
  • < 4 years

    Votes: 42 6.3%
  • < 5 years

    Votes: 92 13.7%
  • < 10 years

    Votes: 91 13.5%
  • < 15 years

    Votes: 60 8.9%
  • < 20 years

    Votes: 34 5.1%
  • < 25 years

    Votes: 32 4.8%
  • Ok, I am a dinosaur

    Votes: 103 15.3%
Back
Top