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

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

31. 3D开启多线程报错 [ 76%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

32. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 76%]

...0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错。 请...

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

33. 射线检测-选取物体 [ 76%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider); boxCollider.setFr...

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

34. laya.gltf.glTFUtils_API3.0 [ 75%]

...c getTexturewithInfo getTexturewithInfo(glTFTextureInfo: glTFTextureInfo): Texture2D Defined in laya/gltf/glTFUtils.ts:485 根据 glTFTextureInfo 获取 Texture2D Parameters glTFTextureInfo: glTFTextureInfo Returns Texture2D Static pickMeshMaterials pickMeshMaterials(glTFMesh: glTFMesh): Material[] ...

来源: Laya3.0_api 发布时间: 20231102

35. material材质平铺 [ 74%]

material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...

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

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

...。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载的纹理设置为他的纹理。这个操作实际上和3D简单示例的操作是相同的。 ```typescript //加载纹理 Texture2D.load("res/thre...

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

37. 图层叠加的实现 [ 74%]

...只是不知道怎么把绘制出来的新纹理变成3D模型能识别的texture2d的贴图? 2018-06-05 0 0 分享 微博 QZONE 微信 伐木工人 赞同来自: 没必要用laya2d来做,可以直接用原生canvas-2d来叠加图层产生新图片,然后转base64字符串,然后转HTMLImage...

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

38. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 74%]

...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...

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

39. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 73%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

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

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

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

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