Mesh displacement mapping

Blender's renderer and external renderer export

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Mesh displacement mapping

Post by ideasman » Sat May 17, 2003 2:37 pm

A lot of people talk about blender supporting other types of displacement mapping. (sphere, cube, torus... etc)

Though this has been done in python I think a good way for blender to do displacement mapping (mesh based) is to use the normal (bumpmap) of the texture to displace the vertex in the direction is facing (is this called a vertex normal?)

This could be done in a script but I don't know If the bumpmap value can be accessed from python. Anyone know?

Posts: 289
Joined: Wed Oct 16, 2002 2:38 am

Post by z3r0_d » Sat May 17, 2003 6:22 pm

python doesn't have access to the bumpmap
and tecnically bumpmapping changes the normals on each pixel, not the hieght of that vertex. One would have to find a way to go from normals to geometry changes. Not fun.

though when you use a greyscale image in blender you get bumps, like it is a height map. Blender appears to only for images convert height changes into new normals. other textures (cloud, linear, plugin...) do not work this way.

python can do displacement mapping, but it would do it seperate from the material's settings.

Post Reply