Skip to main content
gamedev.net
🔒 Locked

solid texture bump mapping

Started by vanillacoke Jun 2, 2003 at 12:19 PM 0 replies 350+ views
Original Post
vanillacoke
vanillacoke
I''m wondering about this thing... Ken Perlin has that bump-mapped sphere on his website. If anyone has been there, it''s the black and gold one, with the color coinciding with the normal perturbation. Black is 0 height, gold is 1 height, above the surface of the sphere. Anyway, he said he used a height field-type function to make it. I was wondering how you would do that for an implicit surface. I know how to do bump mapping, from a height map, on a plane, that''s easy. What I want to do is have H(x,y,z) and use that for a sphere. The problem comes in when you try to find the normal gradient, which is normally very easy. I thought about using three different functions X(x,y,z), Y(x,y,z), Z(x,y,z) for normal displacement, but I can''t because I need to have only one function. Does anyone know how to do this?
You know what I never noticed before?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.