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

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

1. 动态阴影被切割了?为啥没有显示完成的阴影 [ 100%]

...   2018-04-03 0 0 分享 微博 QZONE 微信 qqyemingqq 赞同来自: var LayaAir3D = (function () { var currentCube; var moveTimer; var currentTexture = 0; var prevBox; var boxList = []; var initBoxW = 1; var initBoxH = 1; var initBoxL = 0.5 function myCube(x, y, z, textureUrl, posX, posY, posZ) {...

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

2. 3d下阴影渲染问题求解 [ 99%]

...ild把box群组中去掉几个, 也会影响其他box接收person的功能 LayaAir3D.prototype = { creatBox:function(parent,poolBox,boxSize){ // var i = Math.random()*10; // var j = Math.random()*10; for (var i = 0; i < 10; i++) { for (var j = 0; j < 10; j++) { // var box = parent.addChild(new...

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

3. 飞机大战地图滚动报错,麻烦看下? [ 98%]

飞机大战地图滚动报错,麻烦看下? Laya.init(650, 316, Laya.WebGL); var bg1 = null; var bg2 = null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");...

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

4. 3D阴影无法渲染出来 [ 97%]

...法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight.shadowResol...

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

5. 如何获得box单独每个面的material [ 96%]

...理, threejs做起来这个很简单, 这个就搞晕我了 var mesh = new Laya.BoxMesh(ConstValue.boxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position...

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

6. LayaAir3D 坐标系统与矩阵变换 [ 96%]

LayaAir3D 坐标系统与矩阵变换         先扯些闲话,(以下闲话只针对小白,老鸟直接跳过)。在laya做3d也有一段时间了,我平时看到了很多开发者在QQ群和社区中提到的问题,当我看到百分之八十以上的问题,我的内心是崩溃...

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

7. hitTestPrior点击穿透 [ 96%]

... 提交 2 个回复 cuixueying 赞同来自: lllzzz6311 package { import laya.display.Sprite; import laya.events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphic...

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

8. laya默认模型的阴影没有渲染 [ 96%]

laya默认模型的阴影没有渲染 //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); //添加3D场景 va...

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

9. 分享:Graphics下cmds命令流的使用! [ 95%]

...、位置设置等      举个例子: 代码展示:package { import laya.display.Sprite; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function Gr...

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

10. 类似抠图、挖空效果的实现 [ 94%]

...回复 cuixueying 赞同来自: a4362928 package  {          import laya.display.Sprite;     import laya.display.Stage;     import laya.utils.HitArea;          /**      * ...      * @author yung      */     public class LayaAirDemo {         private var red:Sprit...

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