Jump to content

Shadow Bug?


DudeAwesome
 Share

Recommended Posts

I create some kind of 3D menu for my game and started with a prototype to test if it works. I created a background and some buttons and added some models + a animated character.

 

 

if my cam is in front of the buttons (orange cuboids) shadows are ok but still ugly (MSAA 8x @ 1600x900)

how can I increase the quality of the shadows?

 

cam:

https://www.dropbox.com/s/nfv04j1sq8utlqx/Screenshot%202014-02-04%2023.46.59.png

 

output:

https://www.dropbox.com/s/vdrn8v8q9cjy12b/Screenshot%202014-02-04%2023.46.40.png

 

 

if I pull the camera a little bit to the right it looks like this and drops strange shadows

 

cam:

https://www.dropbox.com/s/2uz9o8zwluo4ixw/Screenshot%202014-02-04%2023.47.48.png

 

 

output:

https://www.dropbox.com/s/jxx82pn9bfxdu2c/Screenshot%202014-02-04%2023.47.28.png

 

 

 

first I thought it is because my lightning source but I changed the position from my light, nothing changed

 

 

 

I also noticed that the camera behavior is a little bit strange when you select a camera in the perspective window and use WASD to move the camera from the editor itsself. it looks like the blue camera lines have a wrong behavior.

It doesn´t work... why? mhmmm It works... why?

Link to comment
Share on other sites

I got that problems already.

Mainly from geometry problems :when they are boxes penetrating a big one , shadows or lights can do such glitches.

 

You could try to use simple models to see if it makes a difference ?

I made sam wall for you in FBX format , ready to import and test smile.png

wall.zip

Stop toying and make games

Link to comment
Share on other sites

mhmm I imported your model, resized it and added the orange grid in the model editor. (the UV maps are pretty ****ty btw. the lighting is strange wrong even without no material) but the material is not drawn. its just a small touch in orange.

 

https://www.dropbox.com/s/gpsormdfarrquot/Screenshot%202014-02-05%2000.18.43.png

It doesn´t work... why? mhmmm It works... why?

Link to comment
Share on other sites

It looks like that might just be a normal artifact from where directional light stages change. The further stages have less accuracy and will have more pronounced artifacts like that. This is just a normal thing that happens in any game using cascaded shadow maps:

gallery_1_8_26705.png

 

Fun fact: early in the development of Leadwerks 2 I experimented with parallel-split shadow maps and dual paraboloid shadow maps, but both had horrible glitches that could not be overcome, due to their fundamental design.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

but the problem only exists when I have my camera at position B. Is this a bug or I doing something wrong, its just a simple scene with no fancy stuff and I´m not even able to do such anything?

 

you also noticed the strange camera behavior when you click the camera in the editor (in perspective view) and move around with WASD. the "view" (blue lines) moving strange.

It doesn´t work... why? mhmmm It works... why?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...