• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 161 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

11. 高级应用-寻路导航 [ 91%]

...块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/...

来源: Laya_示例 发布时间: 20240930

12. 寻路导航示例中添加Laya.PathFind组件报异常 [ 89%]

...一段关于导航的代码,如下: //获取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader....

来源: Laya_社区 发布时间: 20180309

13. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 88%]

...dler.create(null, function(tex:Texture2D):void { //使用纹理 var earth1:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat...

来源: Laya2.0_文档 发布时间: 20210715

14. 3D支持图集吗? [ 87%]

...texture, 0, 0); Laya.stage.addChild(sp);   //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhong...

来源: Laya_社区 发布时间: 20180331

15. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 86%]

...me=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Tex...

来源: Laya2.0_文档 发布时间: 20210714

16. 3D中如何限制角色的行走区域? [ 85%]

...子父级节点寻找可行走区域网格模型               var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;               var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D;               //通过...

来源: Laya_社区 发布时间: 20170505

17. WaterPrimaryMaterial的使用 [ 85%]

...l有demo吗? 我这里怎么调都是单一色块呢?   var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.Bli...

来源: Laya_社区 发布时间: 20181030

18. 材质-BlinnPhong-法线贴图 [ 84%]

...02, 0.002, 0.002); for (var i = 0; i < monster2._childs.length; i++) { var meshSprite3D = monster2._childs[i]; var material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.tr...

来源: Laya_示例 发布时间: 20240930

19. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 84%]

...创建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/gras...

来源: Laya2.0_文档 发布时间: 20210714

20. 自定义shader-地形shader [ 83%]

...); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMat...

来源: Laya_示例 发布时间: 20240930