Blitz Toolbox/Other libs/BSM_Renderer
BSM_Renderer by Shodan |
About
This Function-Library is designed for Blitzbasic3D V1.90 and higher. It generates special Cubemaps to handle Dot3-Bumpmapping, Specular-Mapping and Glossmapping easier.The functionality bases on textures with special gradients and alpha-channel, that will be textured on a grey sphere. The grey color around the gradient let dot3-textures appaer completely black. Sphere is flipped, to be seen from inside. A Camera is placed at centre, to render 6 pictures at low resolution, each for any axis-direction. These rendered pictures are given to a cubemap. This cubemap now can be textured on every object you like. The cubemap should have the first layer. Now you can place a dot3-texture as next layer on this object. As result you get a correctly highlighted bumpmap.
Now this Library will manage this for you. You simply set a cubemap for an object. Also you can set one or more lights for this map. The same map can be used by other objects. If light-directions are changed, the cubemaps will be updated automatically.

Download
