phaselock

Members
  • Content count

    38
  • Joined

  • Last visited

About phaselock

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    judebi.sg
  1. yh, and that's a problem... can't have clients run my app with QoS issues and I don't know what happened. It would be nice to be able to see all my backend processes logged when I run an intensive debug session, all the way to the browser, gpu, os level. *whine *whine *whine...
  2. Dunno what happened, sigh...I'm seeing my original animation playing fine today. Nothing to do with console error, thanks tho @Deltakosh I think my system is giving me grief. Closing this, thks all for the help. edit: btw, just as a footnote, I'm running ffox quantum on an old laptop/gpu and after I dunnno which, babylon update or ffox, the fps isn't what I expected. If I just open the basic pg scene in a new tab, tab to it, the scene loads at 30fps max, I F5 refresh, it still stays at 30fps, then when I move to another tab and tab back, its shoots up to 60fps again. Happens infrequently tho, weird...
  3. My scene camera used to be able to animate zoom to whichever spot i clicked on a mesh. This was working yesterday, this morning I found it didn't work. Repro in pg with latest version of babylon. Using ffox, I'm seeing the camera animating only on the 1st click on the plane mesh, but all subsequent clicks don't trigger the animation effect. Is this a bug or is it just me ? https://playground.babylonjs.com/index.html#VPFT13
  4. Gui elements not aligned on mesh ?

    haha, figured it out. Thanks to clues left in the other posts of this forum. For keeps: https://www.babylonjs-playground.com/#5XB8YT#8 I tested zoom and rotations, the mouse-over still works. Lesson learnt I guess...Although, design-wise, it would be really so much easier to have an option toggle for post-process not affecting GUI. This way, there is no need for a 2nd camera and extra codes for syncing views. Cheers !
  5. Gui elements not aligned on mesh ?

    Hi wingnut, thanks for the help. It seems like the bgCamera is responsible for the gui elements and separates the post processing. If its commented out, when you try to, say, toggle bloom, the bloom will affect the gui itself. I guess it can't be removed. I tried setting the bgcamera's position and orientation vectors similar to camera but it still seems off during mouse-over and the frame rate stutters pretty badly. You can try it here: https://www.babylonjs-playground.com/#5XB8YT#7 Mouse-over the top of the skull and try to mouse-over the jaw, it should be quite obvious that the cameras are somehow offset ? Not sure... Btw, the post processing GUI is not done by me, its from the post-processing tutorial, I just wanted to stress test the codes, hope it helps.
  6. erm, I'm not sure what to classify this problem as or what its title should be. So, I tried to combine the PG (from the GUI announcement) I made a few mths back (https://www.babylonjs-playground.com/#FBKE1P#1) with the default rendering post processing tutorial and erm...I honestly don't quite understand the problem I'm seeing on my screen. The recreated PG is https://www.babylonjs-playground.com/#5XB8YT#5 All I did was port some codes from FBKE1P to the post processing part. I was hoping to get the same mouse-over text on the skull while being able to play with the sliders. It seems like the entire skull is offset virtually ? or the GUI elements are in the wrong place ? or or... loss of words, sorry Any help, guys?
  7. skeleton animation for AI

    @aWeirdo @Raggar , thanks guys for all the input ! Learnt smthg new today about delta time. Doesn't entirely solve my core issue but does solve THIS thread's. I'm gonna go ahead and mark it solved. Cheers !
  8. skeleton animation for AI

    Cool, thanks @Raggar ! Did a quick test on the dude, https://www.babylonjs-playground.com/#11BH6Z#319 This could work. Now to test if 3 getTime function calls per frame per AI worker consume resources when scaled. Cheers !
  9. Hi, I've gone through the stuff on skeleton animations on the babylon docs, virtually all examples involve some form of scene.registerBeforeRender or scene.registerAfterRender stuff. I would like to make an humanoid character, say, pathfind and start walking from A and then stopping automatically at B. So, the usual way to do it in C# or other languages is to have the character be at rest pose at A, blend into walk pose and then blend into rest pose at B with the waypoints given. I found that babylon scene.registerBefore/AfterRender calls will not run when the browser tab is not active. So I could have my AI start walking, tab out and then to tab back after a few minutes to find that it hadn't left Point A yet. I'm new to animating characters on the web and tried to solve it in the PG (with the dude) but can't seem to animate his position without pausing when browser tab is not active. How should I go about solving this issue ?
  10. babylon 3.1 errors in ffox 57

    solved after a browser reboot...closing. Sorry for the false alarms I guess.
  11. Babylonjs 3.1 - beta phase

    oops, posted on bugs...then I saw this. Lemme know if I should consolidate to this thread, thks http://www.html5gamedevs.com/topic/34112-babylon-31-errors-in-ffox-57/ edit: topic closed, errors went away after a reboot, sry for the false alarms.
  12. babylon 3.1 errors in ffox 57

    So, trying to get my simple project loaded in ffox this morning and ran into a whole bunch of console log errors. I presume its with the new ffox quantum update or with the new 3.1 beta preview. PG is showing some of the same errors, I haven't narrowed down to causes yet. Also seeing some rendering artifacts on my imported meshes. Should I be worried ? Or are these mostly teething issues ? BJS - [10:33:57]: Babylon.js engine (v3.1-beta-5) launched babylon.js:3:18630 Error: WebGL warning: Failed to create WebGL context: WebGL creation failed: * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Error during ANGLE OpenGL init. * Exhausted GL driver caps. babylon.js:4:11836 BJS - [10:33:58]: Unable to compile effect: babylon.js:3:19000 BJS - [10:33:58]: Uniforms: world, view, viewProjection, vEyePosition, vLightsType, vAmbientColor, vDiffuseColor, vSpecularColor, vEmissiveColor, vFogInfos, vFogColor, pointSize, vDiffuseInfos, vAmbientInfos, vOpacityInfos, vReflectionInfos, vEmissiveInfos, vSpecularInfos, vBumpInfos, vLightmapInfos, vRefractionInfos, mBones, vClipPlane, diffuseMatrix, ambientMatrix, opacityMatrix, reflectionMatrix, emissiveMatrix, specularMatrix, bumpMatrix, lightmapMatrix, refractionMatrix, diffuseLeftColor, diffuseRightColor, opacityParts, reflectionLeftColor, reflectionRightColor, emissiveLeftColor, emissiveRightColor, refractionLeftColor, refractionRightColor, logarithmicDepthConstant, vTangentSpaceParams, vLightData0, vLightDiffuse0, vLightSpecular0, vLightDirection0, vLightGround0, lightMatrix0, shadowsInfo0, depthValues0, diffuseSampler, ambientSampler, opacitySampler, reflectionCubeSampler, reflection2DSampler, emissiveSampler, specularSampler, bumpSampler, lightmapSampler, refractionCubeSampler, refraction2DSampler, shadowSampler0 babylon.js:3:19000 BJS - [10:33:58]: Attributes: position, normal, uv, color, matricesIndices, matricesWeights, matricesIndicesExtra, matricesWeightsExtra babylon.js:3:19000 BJS - [10:33:58]: Vertex shader: default 1 #define MAINUV1 2 #define DIFFUSE 3 #define DIFFUSEDIRECTUV 1 4 #define AMBIENTDIRECTUV 0 5 #define OPACITYDIRECTUV 0 6 #define EMISSIVEDIRECTUV 0 7 #define SPECULARDIRECTUV 0 8 #define BUMPDIRECTUV 0 9 #define SPECULARTERM 10 #define NORMAL 11 #define UV1 12 #define VERTEXCOLOR 13 #define NUM_BONE_INFLUENCERS 7 14 #define BonesPerMesh 46 15 #define LIGHTMAPDIRECTUV 0 16 #define NUM_MORPH_INFLUENCERS 0 17 #define VIGNETTEBLENDMODEMULTIPLY 18 #define SAMPLER3DGREENDEPTH 19 #define SAMPLER3DBGRMAP 20 #define LIGHT0 21 #define HEMILIGHT0 22 23 #define SHADER_NAME vertex:default 24 precision highp float; 25 26 uniform mat4 viewProjection; 27 uniform mat4 view; 28 #ifdef DIFFUSE 29 uniform mat4 diffuseMatrix; 30 uniform vec2 vDiffuseInfos; 31 #endif 32 #ifdef AMBIENT 33 uniform mat4 ambientMatrix; 34 uniform vec2 vAmbientInfos; 35 #endif 36 #ifdef OPACITY 37 uniform mat4 opacityMatrix; 38 uniform vec2 vOpacityInfos; 39 #endif 40 #ifdef EMISSIVE 4… babylon.js:3:19000 BJS - [10:33:58]: Fragment shader: default 1 #define MAINUV1 2 #define DIFFUSE 3 #define DIFFUSEDIRECTUV 1 4 #define AMBIENTDIRECTUV 0 5 #define OPACITYDIRECTUV 0 6 #define EMISSIVEDIRECTUV 0 7 #define SPECULARDIRECTUV 0 8 #define BUMPDIRECTUV 0 9 #define SPECULARTERM 10 #define NORMAL 11 #define UV1 12 #define VERTEXCOLOR 13 #define NUM_BONE_INFLUENCERS 7 14 #define BonesPerMesh 46 15 #define LIGHTMAPDIRECTUV 0 16 #define NUM_MORPH_INFLUENCERS 0 17 #define VIGNETTEBLENDMODEMULTIPLY 18 #define SAMPLER3DGREENDEPTH 19 #define SAMPLER3DBGRMAP 20 #define LIGHT0 21 #define HEMILIGHT0 22 23 #define SHADER_NAME fragment:default 24 precision highp float; 25 uniform vec4 vDiffuseColor; 26 #ifdef SPECULARTERM 27 uniform vec4 vSpecularColor; 28 #endif 29 uniform vec3 vEmissiveColor; 30 31 #ifdef DIFFUSE 32 uniform vec2 vDiffuseInfos; 33 #endif 34 #ifdef AMBIENT 35 uniform vec2 vAmbientInfos; 36 #endif 37 #ifdef OPACITY 38 uniform vec2 vOpacityInfos; 39 #endif 40 #ifdef EMISSIVE 41 uniform vec2… babylon.js:3:19000 BJS - [10:33:58]: Error: C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded Warning: D3D shader compilation failed with default flags. (vs_3_0) Retrying with avoid flow control C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded Warning: D3D shader compilation failed with avoid flow control flags. (vs_3_0) Retrying with prefer flow control C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded Warning: D3D shader compilation failed with prefer flow control flags. (vs_3_0) Failed to create D3D shaders. babylon.js:3:19000 BJS - [10:33:58]: Trying next fallback. babylon.js:3:19000 BJS - [10:33:58]: Falling back to CPU skinning for Body babylon.js:3:18630 Error: WebGL warning: linkProgram: Failed to link, leaving the following log: C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded Warning: D3D shader compilation failed with default flags. (vs_3_0) Retrying with avoid flow control C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded Warning: D3D shader compilation failed with avoid flow control flags. (vs_3_0) Retrying with prefer flow control C:\fakepath(89,30-147): error X4505: maximum temp register index exceeded C:\fakepath(89,2-148): error X4505: maximum temp register index exceeded C:\fakepath(89,2 And yes, the last line of the errors is as attached...I presume some limit reached in the display...
  13. blender 2 babylon exporter v5.4 ranges bug

    oh, I see, understood, thanks. Gonna go ahead and mark this as solved, cheers.
  14. blender 2 babylon exporter v5.4 ranges bug

    After a little more testing, frame start seems to be more than just off by 1. I made a 3 frames action and did the below: 1) If my action starts at frame 1 and ends at frame 3, the ranges exported shows "from":40,"to":43. 2) If my action starts at frame 0 and ends at frame 2, the ranges exported shows "from":40,"to":42. 3) If my action starts at frame -1 and ends at frame 1, the ranges exported shows"from":40,"to":41. 4) If my action starts at frame -2 and ends at frame 0, the ranges exported shows "from":40,"to":40. 5) If my action starts at frame -3 and ends at frame -1, the ranges exported shows "from":40,"to":39. weird...
  15. Hi, was testing my personal project: a low poly mesh with a few actions exported using the b2b exporter v5.4. The animation range in the start frames are off by 1. My actions start from frame 1, exported babylon file shows frame 0 and testing confirms the animation when triggered doesn't loop nicely. Currently, the mesh has 4~5 actions, project upon completion should have a few hundred or so. Just curious, is this bug from the exporter or blender ? Should I start thinking about coding a fix when ImportMesh is called from babylon ? Or is this like a quick 2s fix on the exporter ? Pls do not tell me that I have to edit it manually... Thanks for reading and hope it helps, cheers