Bas relief from texture for AC3DReleased under the GNU GENERAL PUBLIC LICENSE.
Given a texture alreday loaded in AC3D, creates a grid at the World origin. The grid will have the width/height of the specified texture in vertexes along the X/Z axes, and the Y coordinates will contour along the color data of the texture.
Copy the basrelief.tcl and basrelief.p files to your AC3D plugins folder (for example, if using Windows, C:\Program Files\AC3D\plugin) and (re)start AC3D.
You will find the "Bas relief from texture..." menu item under the "Tools" menu.
Select the "Bas relief from texture..." item from the Tools menu. Select a texture from which you wish to create a heightmap. If you have no textures loaded, close the bas relief tool and load a texture onto a dummy object.
Use the "Maximum width/depth" textbox to set the maximum size of the new grid in units on the X/Z axes.
Use the "Maximum height" to set the maximum height on the Y axis.
Textures with more than 65536 pixels will be scaled down to fit <= 65536 vertices in AC3D. You may change this behavior by editing the basrelief.tcl file in the AC3D plugins folder with a text editor and finding the below code (near the bottom of the file):
Change the 65536 to whatever number you wish, but keep in mind that objects created with this many vertices may be very difficult and time consuming to manipulate.
|All content Copyright © 2006 Dennis Hawthorne, except where explicitly noted
supercoldmilk © 2006 Dennis Hawthorne