Jump to content

Sprite Rendering Issue (...surprise surprise)


static

Recommended Posts

Hey all, I've implemented Miquel's updated sprite shader into a simple scene to mess around with it and I'm getting some artifacts around the edge of my sprites. Here is an example of the artifact:

spriteImage.jpg

After digging through the forums, I found an old thread from cellchuk:

http://forums.odforce.net/index.php?showto...8&hl=sprite

So I added the $F3 to my depth-map file, and it wrote out correctly, but I still received artifacts. I also turned off motion-blur but that didn't fix the problem either. I tried moving the light casting the shadows, based on old school's post, and it did indeed reduce the banding. So now I'm trying to figure out how to fake the orientation of the sprites. I've taken some of the other posts into consideration but I'm kind of confused by the implementation. I'm using 9.5 at work and have attached an example of the problem. Feel free to post suggestions or mess around with the file. There are around 3500 sprites and it's rendering at HD720 so I'd advise lowering the count and render quality for testing. Thanks in advance!

spriteTest.hip

Link to comment
Share on other sites

When you render out the depth map, the cards will orient themselves to the light. The depth map is then valid for cards facing the light and not the camera. When you actually render the cards they are oriented to the camera somewhat invalidating the depth map.

So to correct this error add another source of error: Blur your deep shadow map (shadow softness).

In your example file if I set the Shadow Softness to 1 then the artifacts are greatly reduced with only a slight softening to the final look.

If you render with much smaller sprites (as Miguel does) and add a bit of blur (say 0.1 to 0.5) in practice the artifacts will essentially be blurred out as well.

post-371-1221690964_thumb.jpg

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.

×
×
  • Create New...