Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to perturbate surface normal from height map
    primarykey
    data
    text
    <p>I'm working on a bumpmapping implementation in my own 3D tracer. And to be really short - I want this result:</p> <p><img src="https://i.stack.imgur.com/y0PhB.jpg" alt="result wanted"></p> <p>I've been reading pages and pages about bumpmapping, heightmaps, normal maps, ... and I think I understand most of the subject, the difference between all above etc etc. (I got perlin-bumpmapping to work - <a href="http://31.media.tumblr.com/de7103181b9ad82dfa587ad1ac423b35/tumblr_mwmp4qDFG91t0c6bwo1_1280.png" rel="nofollow noreferrer">result</a> ) The only thing I don't get is how to actually perturbate the surface normal from an object given a texture image. Most papers and pages are more than slightly vague on that subject.</p> <p>First I figured you'd just add an image-texture to your object, for a given pixel you'd calculate the rgb color from the texture and then calculated a lightness factor from the rgb value (something like a grayscale value,...) and perturbated the normal with it before adding light effects. - I want(ed) to calculate the normal on the fly.</p> <p><strong>Question</strong>: if the above is even possible: how to perturbate the normal given the lightness-factor? And if I'm wrong here, any tips/links that could help me work my way up to given result would be greatly appreciated.</p> <p><strong>Question 2</strong>: If the above is not possible with any given rgb image, could anyone explain how to perturbate an image given a heightmap? like the first image on <a href="http://en.wikipedia.org/wiki/Bump_mapping" rel="nofollow noreferrer">wikipedia</a> Thanks a lot.</p> <p>P.S: I'm doing/have to do the implementation in Java.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload