Geo3D建筑材质切换+屋顶纹理

一、简介

基于Threejs开发封装建筑渲染管线,利用简单二维建筑矢量面轮廓程序化生成3D建筑,支持材质一键切换,支持多样化建筑墙面材质和屋顶材质,支持建筑透明,支持地形高程适配,支持按空间范围裁剪挖洞等。

二、效果

三、代码

TypeScript 复制代码
///建筑///
const buildingPipline = new Geo3D.BuildingPipline({
    themeName: Geo3D.ThemeName.Theme_Realistic,
    pbfUrl: map.staticPath + '/static/' + 'shijingshan.bpf',
    heightProp: 'height',
    bottomHeight: 67,
    extent: extentCoords as Geo3D.Point[],
    exclude: excludeCoords as Geo3D.Point[],
    scene: scene
})
buildingPipline.add();

GUI//
const vm = {
    simpleTheme: () => {
        Geo3D.ThemeUtil.setTheme(Geo3D.ThemeName.Theme_Simple);
    },
    realTheme: () => {
        Geo3D.ThemeUtil.setTheme(Geo3D.ThemeName.Theme_Realistic);
    },
};
const gui = new GUI();
gui.domElement.style.transform = 'scale(1.5)';
gui.domElement.style.transformOrigin = 'right top';
//@ts-ignore
gui.add(vm, "simpleTheme").name("白模");
//@ts-ignore
gui.add(vm, "realTheme").name("实景");
相关推荐
CG_MAGIC18 小时前
用Blender制作室内效果图宜居之地
3d·blender·效果图渲染·渲染引擎·渲云渲染
井队Tell18 小时前
打造高清3D虚拟世界|零基础学习Unity HDRP高清渲染管线(第十二天)
学习·3d·unity
Minecraft红客18 小时前
复原大唐3d项目测试版
c++·3d·青少年编程·电脑·娱乐
小-黯19 小时前
OpenGL使用C++实现相机模块功能
c++·3d·opengl
梦凡尘1 天前
webgl 变换矩阵:旋转、平移、缩放
webgl
yychen_java1 天前
基于Java3D与Jzy3D的三维建模深度开发:从架构到实践
java·3d·架构
倚剑仙2 天前
Unity-WebGL开发——用IIS(Internet Information Services)部署webGL工程
unity·游戏引擎·webgl
暴风鱼划水2 天前
三维重建【0-D】3D Gaussian Splatting:相机标定原理与步骤
算法·3d
井队Tell2 天前
打造高清3D虚拟世界|零基础学习Unity HDRP高清渲染管线(第十天)
学习·3d·unity
wenjie学长2 天前
[3D Max 基础知识分享]—多孔结构模型制作与编辑
3d·三维模型·多孔结构模型编辑