Shadow duplication glitch

Posted By: the_mehmaster

Shadow duplication glitch - 06/07/09 23:55

Hey guys!
I have a problem with an rts game I'm developing. For some reason the shadow of my power station model is duplicating over the earth. If you don't understand just look at the picture:



Any suggestions?

p.s: if you want to know how i got the earth to glow in extra edition (no shaders) just ask.
Posted By: Anonymous

Re: Shadow duplication glitch - 06/08/09 06:45

i guess the shadow like in ur picture is "normal" in 3DGS, bcs shadows will go thru walls and objects (entities).
Posted By: the_mehmaster

Re: Shadow duplication glitch - 06/08/09 07:44

your right, but is there any way to hide it besides turning self shadows on?(looks really jagged)
Posted By: KiwiBoy

Re: Shadow duplication glitch - 06/08/09 07:53

Fake it with decal.
Posted By: Anonymous

Re: Shadow duplication glitch - 06/08/09 08:31

Originally Posted By: KiwiBoy
Fake it with decal.


yeah u could try that!
like this?!
Code:
 ENTITY* ent_carshadow = { type = "car_shadow.tga"; }

action race_car(){
  ...
  set(my,SHADOW);
  my.shadow = ent_carshadow; // car-shaped shadow sprite
  ...

Posted By: the_mehmaster

Re: Shadow duplication glitch - 06/08/09 20:44

That works, thanks!!
© 2024 lite-C Forums