시작하기 시작하는 것

Aspose.3D FOSS를 Java로 시작하십시오.

환영합니다 아스포지 3D-Foss,무료, 오픈 소스 Java 라이브러리 3D 장면을 충전, 건설 및 수출.이 가이드는 몇 분 안에 신선한 프로젝트에서 작업 장치로 이동합니다.


원칙들

요구사항세부 사항
JavaJDK 21 또는 이후
건설 도구마벤 또는 그라델
OS윈도우, macOS 또는 Linux

설치

당신의 의존성을 Maven에 추가하십시오. pom.xml:

<dependency>
  <groupId>org.aspose</groupId>
  <artifactId>aspose-3d-foss</artifactId>
  <version>26.5.0</version>
</dependency>

확인하기 :

import com.aspose.threed.Scene;

public class Main {
    public static void main(String[] args) {
        Scene scene = new Scene();
        System.out.println("aspose-3d-foss loaded successfully.");
    }
}

보세요 The 설치 가이드 Gradle 설정 및 검증 단계를 위해.


무엇을 할 수 있는가

설치되면 즉시 사용할 수 있습니다 :

  • 부하 OBJ, STL, glTF 2.0 / GLB 및 FBX 파일을 통해 scene.open()
  • 검사기 장면 히어로시 : traverse Node 나무, 읽기 Mesh 지질학, 접근 척추 정상 및 UV
  • 변환 노드 : 번역, 회전 및 스케일을 통해 설정 Transform 클래스
  • 재료 적용: 주인공 Material 또는 PbrMaterial 노드에 대하여
  • 수출 지원되는 모든 형식으로 scene.save()
  • 지질학을 구축하기: 창조하기 Mesh 컨트롤 포인트와 폴리곤을 가진 객체를 프로그래밍합니다.

빠른 시작

3D 파일을 업로드하고, 장면 히어로를 인쇄하고 GLB 형식으로 다시 저장합니다.:

import com.aspose.threed.Scene;
import com.aspose.threed.Node;

public class QuickStart {
    public static void main(String[] args) throws Exception {
        Scene scene = new Scene();
        scene.open("input.obj");

        System.out.println("Root children: " + scene.getRootNode().getChildNodes().size());
        for (Node node : scene.getRootNode().getChildNodes()) {
            String entityType = node.getEntity() != null
                ? node.getEntity().getClass().getSimpleName()
                : "no entity";
            System.out.println("  " + node.getName() + " [" + entityType + "]");
        }

        scene.save("output.glb");
        System.out.println("Saved output.glb");
    }
}

다음 단계

 한국어