About Store Forum Documentation Contact



Post Reply 
Shadow glitches...
Author Message
Fluxor Offline
Member

Post: #1
Shadow glitches...
Hey there,

I have some strange shadow glitches.

I've made a .gif where you can get a better idea what I am talking about.

I tested this on OSX->AMD and Win10-> Nvidia , same thing.

Any idea what that might be?

Thanks,
tL.

   
(This post was last modified: 08-21-2021 07:40 PM by Fluxor.)
08-21-2021 07:39 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Shadow glitches...
Never seen something like that, does it happen only on movement?
Maybe you're rendering shadows with wrong matrixes (like from previous frame).
Is TAA/TSR on or off?
08-22-2021 04:36 AM
Find all posts by this user Quote this message in a reply
Fluxor Offline
Member

Post: #3
RE: Shadow glitches...
TAA was on. Same thing with TAA off though. TSR is off.
Deferred and Forward same thing.
This also happens when just orbiting/panning the camera.
Interesting is that this happens only with the shadows from the point light.
directional light is fine.



The dark shadow here is from the LightDir.
The other one from LightPoint.

   

This shadow glitch occurs on geometry without any code (parented to terrain)
as well though. So not sure about any errors in code.
Checked the size of the light as well, doesn't make any difference.
I'll see what else I can find.


The code:

Code:
void StaticGeo::create(Object &obj)
{
   super.create(obj);
   scale = obj.scale3();
   mesh = obj.mesh();
   phys = obj.phys();
   phys->density=0;
   _matrix = obj.matrixFinal().normalize();
   _scaledMatrix = _matrix;
   _scaledMatrix.scaleOrnL(scale);
  
if(phys)
   {
      actor.create(*phys, 1, true).matrix(_matrix);
      actor.obj(this);
   }
}

Bool StaticGeo::update()
{
   return 1;
}

UInt StaticGeo::drawPrepare()
{
   if(mesh) mesh->draw(actor.matrix());
   return 1;
}

void StaticGeo::drawShadow()
{
   if(mesh) mesh->drawShadow(actor.matrix());
}
(This post was last modified: 08-22-2021 04:25 PM by Fluxor.)
08-22-2021 04:21 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Shadow glitches...
Can you send me the *.EsenthelProject project via forum private message link or on the main website contact page?
I'll check it by myself and will can say more.
08-23-2021 03:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Shadow glitches...
Hi,

I've checked your project.
It appears to be working fine.
How can I reproduce the error? Do I need to do something special?

I've tested on GeForce 1050 Ti Mobile Max Q, and Integrated Intel GPU.
Both on Windows

(also this code is invalid: Physics.timestep(PHYS_TIMESTEP_NUM); )


Attached File(s) Image(s)
   
08-24-2021 06:49 AM
Find all posts by this user Quote this message in a reply
Fluxor Offline
Member

Post: #6
RE: Shadow glitches...
Hmm. This is very odd...
As it seems, it's indeed a Mac thing.
Mac regularly glitches out all the time, I know that.
The Editor itself even more than the build Projects.
But I thought I noticed this happened on Windows as well.
Just exported to Win again to double check and Win 10 is fine.
Also on another Win Laptop all is good. So clearly a Mac thing.
Sorry 'bout that.
Thanks for testing.



(OT/BTW: Copy here: World -> Does nothing? gives an empty world? Is that known?)
08-24-2021 01:41 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
RE: Shadow glitches...
(OT/BTW: Copy here: World -> Does nothing? gives an empty world? Is that known?)

Yes at the moment it works like that.
08-24-2021 03:48 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #8
RE: Shadow glitches...
there is a work around that i posted a while ago

https://esenthel.com/forum/showthread.php?tid=10249
08-24-2021 03:55 PM
Find all posts by this user Quote this message in a reply
Fluxor Offline
Member

Post: #9
RE: Shadow glitches...
Alright, thanks!
08-26-2021 08:38 PM
Find all posts by this user Quote this message in a reply
Post Reply