mcjVoxelTerra

================================================================================

Introduction

================================================================================

A script that converts images into props ( wavefront .obj files )

the brightness of a pixels corresponds to the height of the terrain

there's a mode where the object is made of tall cubes and one where it's simple facets

================================================================================

History

================================================================================

January 18th 2018 4:40 AM - Release V1

================================================================================

Installation

================================================================================

The zip package is found at the bottom of this page

unzip it in your daz content folder,

typically :

C:\Users\USERNAME\Documents\DAZ 3D\Studio\My Library

once installed, it will appear in your content library, under

The Daz Script will be found in My Library / Scripts / mcasual

Starting with Windows 7 if you right click on the downloaded zip file

and select the [Extract All ....] pop-up menu item

you simply browse up to your Daz Studio Content Folder

and the files will fall in the proper folder

================================================================================

Use

================================================================================

Specify a size (cm) for the object that will be created.

The height is the size for the full-white pixels in the image.

Also specify the tesselation / divisions.

If you press the "Build Voxel-like" button with tesselation = 64x64

then 4096 tall-cubes will be created

If you press the "Build Terrain-like" button with tesselation = 64x64

then 4096 welded facets will be created

After you press one of those 2 buttons, You will be asked for an output

filename. ex :c:/tmp/myobject.obj

Then you will have to supply a path to an existing image.

The combined brightness of each pixel (R+G+B)/3 sets the height of the tall-cubes

The 'Load' button will load the last saved .obj file. You can use it repeatedly.

Note that the export/import units are 1unit = 1cm

================================================================================

License

================================================================================

// by mCasual/Jacques

// You can use this script freely for personal or commercial use.

// You may not resell, distribute for profit, sub-license or rent this script in any way.

// you may credit this script to mCasual/Jacques

//

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,

// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR

// PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE

// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,

// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.