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

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

111. Sprite3D.instantiate不成功,总是报错 [ 62%]

...链接 提交 2 个回复 uu4uu 赞同来自: 解决了,原来clone的是MeshSprite3D,改为Sprite3D就好了 2018-03-21 0 1 分享 微博 QZONE 微信 qian 赞同来自: 你可以看一下 关于克隆的示例 http://layaair.ldc.layabox.com ... Clone 2018-03-21 0 0 分享 微博 QZONE 微信 ...

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

112. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { plane...

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

113. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 62%]

...载lm文件在29-43行、 // 载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/FBXtoolsdaochu/denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/deng...

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

114. 3D模型无法正显示和播放动作 [ 62%]

...ni.player.play();               var hero = sphere.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm")));         var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh"));  这两种加载方法有啥不同么 附件 :...

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

115. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 62%]

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

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

116. 如何使 3d 人物变半透明 [ 61%]

...andardMaterial(); mat.renderMode = 5; mat.albedo = new Vector4(1,1,1,0.5); meshSprite3D.meshRender.sharedMaterials = mat; 2017-10-31 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yoahuili 相关问题 laya引擎在3D中如何在人物...

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

117. 3d加载问题 [ 61%]

...x.lani, xx.lm 文件 怎么加载? var rigMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("./Assets/bianfuyu-body.lm"))); var rigAni = rigMesh.addComponent(Laya.RigidAnimations); rigAni.templet = Laya.Animation.Animation("./Assets/bianfuyu-Take_001.lani"); rigAni.player.play();      ...

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

118. 天空-天空盒 [ 61%]

...t laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.TextureCube; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import la...

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

119. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 61%]

...Laya.Handler.create(null, function(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya....

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

120. 3D模式下使用Tween使模型移动如何写法 [ 61%]

...使模型移动如何写法 //载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/deng...

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