Opened 9 years ago

Last modified 9 years ago

#2953 new defect

Terrain incorrect shadow rendering

Reported by: Niek Owned by:
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description

It appears that the shadow on terrain is rendered incorrectly. This is especially evident on rough terrains. http://i.imgur.com/4xpu417.jpg My investigation shows that this is being introduced @L99 in terrain_common.vs when the object shadows(?) are rendered on the terrain. (at least removing that line gives the result in the 2nd image)

The shadows should look (more or less) like this: http://i.imgur.com/2O9ePev.jpg

Attachments (1)

2953.1.diff (501 bytes ) - added by Stan 9 years ago.
Follow niektb's suggestion.

Download all attachments as: .zip

Change History (7)

comment:1 by Stan, 9 years ago

Keywords: review patch added
Summary: Terrain incorrect shadow rendering[PATCH] Terrain incorrect shadow rendering

Maybe it's supposed to be v_shadow.xy = shadowScale.xy; instead of "v_shadow.xy *= shadowScale.xy; "

Last edited 9 years ago by Stan (previous) (diff)

by Stan, 9 years ago

Attachment: 2953.1.diff added

Follow niektb's suggestion.

comment:2 by Niek, 9 years ago

You shouldn't remove that line. (that line renders the object shadows on the terrain, check the tree in the 2nd image)

comment:3 by Stan, 9 years ago

Keywords: review removed

comment:4 by Itms, 9 years ago

Keywords: patch removed
Milestone: Alpha 18Backlog
Summary: [PATCH] Terrain incorrect shadow renderingTerrain incorrect shadow rendering

comment:5 by historic_bruno, 9 years ago

Related to #2070?

comment:6 by Niek, 9 years ago

Could be, although this one is static. Is #2070 with or without shadow filtering?

Note: See TracTickets for help on using tickets.