Back to plugins

Bas relief from texture for AC3D

Released under the GNU GENERAL PUBLIC LICENSE.

Latest release
Download Windows version 1.0
Download source code 1.0


Description

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.

Installation

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.

Usage

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.

Limitations

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):

# MAXIMUM SIZE OF AN IMAGE (width * height)
# This is the maximum number of vertices that will be created from a texture.
# Change at your own risk.
set ddhbasrelief_maxsiz 65536

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.

 

Back to plugins



All content Copyright © 2006 Dennis Hawthorne, except where explicitly noted
supercoldmilk © 2006 Dennis Hawthorne