Shadow
Shadow
I'm using volumetric shadow casted by an animated character, and the shadow is rendered correctly on the environment, but unfortunatelly also on the character : the part of the character which is not facing to the light, is much darker than the same character without shadow (I hope my explanations are clears).
In the drawAll() method, if I change the order, by render first, normal objects except the character, then shadows and then the character, everything is correct, because the character is rendered after its shadow.
So, is there something I am doing wrong? Or do I have to declare my character as a transparent object (rendered after shadows) or do I have to rewrite drawAll() method, as I did ?
By the way, shadows are consuming a lot of CPU power, so I am about to implement a solution where I have two models for my character : one for the render, and one, a much lower level version of the first one, for the shadow.
In the drawAll() method, if I change the order, by render first, normal objects except the character, then shadows and then the character, everything is correct, because the character is rendered after its shadow.
So, is there something I am doing wrong? Or do I have to declare my character as a transparent object (rendered after shadows) or do I have to rewrite drawAll() method, as I did ?
By the way, shadows are consuming a lot of CPU power, so I am about to implement a solution where I have two models for my character : one for the render, and one, a much lower level version of the first one, for the shadow.
Re: Shadow
Isn't this correct? I mean, if the character is selfshadowing, it getting darker again where shadows fall on it. A solution to disable selfshadowing is how you did it. Another would be to call the render()-Method directly from the Character Scene Node.Haddock wrote: the part of the character which is not facing to the light, is much darker than the same character without shadow
To explain my issue properly, here is an example taken directly from the last Techdemo:
Without shadows
With shadows
You can notice on the second image that the character has some artifacts (on its right upper arm and rigth part of the body), because it is affected by the its own shadow, and because the character is rendered before its shadow.
I don't think this is a driver issue. If I'm not wrong, in order to calculate the shadow, the engine extrudes, opposed to the light, a volumetric shadow and everything that is inside this volume is shadowed. Unfortunatelly, a part of the character is in this volume, and then it is affected by the shadow.
Without shadows
With shadows
You can notice on the second image that the character has some artifacts (on its right upper arm and rigth part of the body), because it is affected by the its own shadow, and because the character is rendered before its shadow.
I don't think this is a driver issue. If I'm not wrong, in order to calculate the shadow, the engine extrudes, opposed to the light, a volumetric shadow and everything that is inside this volume is shadowed. Unfortunatelly, a part of the character is in this volume, and then it is affected by the shadow.
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
Ugh! On Linux the techdemo looks radically different! The textures are grey-blue! The shadows are black. Mipmapping seems to be missing.
I'll uploaded a screenshot, is this normal for the OpenGL/Linux path on a Geforce3?
See second set of shots:
http://bloodgate.com/perl/irrlicht/techdemo.html
Best wishes,
Tels
I'll uploaded a screenshot, is this normal for the OpenGL/Linux path on a Geforce3?
See second set of shots:
http://bloodgate.com/perl/irrlicht/techdemo.html
Best wishes,
Tels
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
yeh man i thought that shadpw looked great...
i think it might be that he just want likes spot shadows on the ground, not truly dynamic shasows...
-Ted
-Ted
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
Cool )niko wrote:Currently this is normal for linux, but I am working on it.
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game