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("实景");
相关推荐
歡進3 小时前
开源 | Warpvas 实现扭曲的画布
javascript·webgl·canvas
3D小将5 小时前
SolidWorks 转 PDF3D 技术详解
3d·pdf·3d格式转换·模型格式转换
belldeep6 小时前
p5.js:模拟 n个彩色小球在一个3D大球体内部弹跳
javascript·3d·branch·p5.js·sphere
jimumeta6 小时前
一站式3D虚拟展厅搭建方案,让企业展示更高效
3d·数字人·虚拟展厅·3d展厅
nice-wyh6 小时前
3D匹配算法简述
3d
gaohualan6 小时前
点云数据处理--splat转3dtiles
数据结构·python·算法·3d
在下胡三汉10 小时前
在线编辑查看GLB/GLTF(免费)GLB/GLTF在线纹理编辑
3d
伶俜monster11 小时前
探秘 Threejs GUI:开启丝滑调试之旅
前端·webgl·three.js
_oP_i13 小时前
unity3d 背景是桌面3d数字人,前面是web的表单
3d