简体   繁体   English

将3D阵列转换为3D模型

[英]Converting a 3D array to a 3D model

I'm trying to find a type of software that I could use to convert a 3D Java array to a 3D voxel model. 我试图找到一种可以用来将3D Java数组转换为3D体素模型的软件。 I'm developing a voxel terrain generator in Java and I need some way to visualize the 3-dimensional integer arrays. 我正在用Java开发体素地形生成器,并且需要某种方式来可视化3维整数数组。 What software (or APIs) would be good for this purpose? 哪种软件(或API)适合此目的?

Also, the array I'm trying to convert is a 3D array of integers where each integer should correspond to a voxel with a specific color. 另外,我要转换的数组是整数的3D数组,其中每个整数应对应于具有特定颜色的体素。

I'm guessing that you are going to define your terrain surface as a surface of constant value in your voxel value array. 我猜您将要定义地形表面为体素值数组中恒定值的表面。 You can polygonalize this surface with a method like Marching Cubes. 您可以使用Marching Cubes之类的方法对该表面进行多边形处理。 Adding controls to rotate the data set and move the contour level up or down makes it possible to visualize the whole data set. 添加控件以旋转数据集并向上或向下移动轮廓线可以可视化整个数据集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM