Jump to content

Faceted displacement


Recommended Posts

I'm getting a faceted appearance using a disp map, corresponding to the pixels in the disp map. Any way to smooth this out *without* increasing map resolution, increasing shading quality etc? Do I need to create vertex normals from the displaced geometry normals somehow? The displacement map is a float exr image, so color depth is not a problem. The vex code doing the displacement is as follows:

vector mapclr=0;
float mult=1.0;
mapclr=texture(map,s,t);
P+=mult*mapclr.r*normalize(N);
N = computenormal(P);

Disp.jpg.926f36140addd2cabbe4ebd3d9f02240.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...