• Content count

  • Joined

  • Last visited

About ian

  • Rank
    Advanced Member

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
  • Location
  • Interests
    nodejs, javascript, typescript, mongodb, tomcat, html, babylonjs, physics, blender

Recent Profile Visitors

3,643 profile views
  1. getLasltFrameDuration - HOW

    thank you aWerdo your previous answare works also fine. I'll try tomorrow with engine.getDeltaTime on the latest babylon.js engine. I don't know if babylon did fix this problem, so we will not nedd deltatime anymore. The problem is if same things is running on PS (faster gpu) or phone/tablet (slowest gpu) ??? I don't know if rendering and physics works with same speed regardless of hardware (cpu,gpu) speed ??? @Deltakosh Is there any playground example to test/see this? greetings
  2. function getDeltaTime() { return scene.getLastFrameDuration() / 1000; } How can I get same function with EngineInstrumentation? I am playing around instrumentation. Can any body help me getDeltaTime? getLastFrameDuration is not working anymore. Which counter can get me solve getDeltaTime like code above? Any help hint? http://doc.babylonjs.com/how_to/optimizing_your_scene#instrumentation function instrumentFun() { //console.log(instrumentation.gpuFrameTimeCounter.current); //console.log(instrumentation.gpuFrameTimeCounter.average); //console.log(instrumentation.gpuFrameTimeCounter.average); console.log( "current frame time (GPU): " + (instrumentation.gpuFrameTimeCounter.current * 0.000001).toFixed(2) + "ms" ); console.log( "average frame time (GPU): " + (instrumentation.gpuFrameTimeCounter.average * 0.000001).toFixed(2) + "ms" ); console.log( "total shader compilation time: " + (instrumentation.shaderCompilationTimeCounter.total).toFixed(2) + "ms" ); console.log( "average shader compilation time: " + (instrumentation.shaderCompilationTimeCounter.average).toFixed(2) + "ms" ); console.log( "compiler shaders count: " + instrumentation.shaderCompilationTimeCounter.count ); } I am useing chrome (with debian) And I get "current frame time (GPU)" and "average frame time (GPU)" 0. I always get current frame time (GPU): 0.00ms average frame time (GPU): 0.00ms Should I get also CPU time anyhow? Should I get also CPU frame time? Can anybody help me code getDeltaTime function with instrumentations counters? I test chrome with http://webglreport.com/ and I get WebGL 1 Platform: Linux x86_64 Browser User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36 Context Name: webgl GL Version: WebGL 1.0 (OpenGL ES 2.0 Chromium) Shading Language Version: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit Renderer: WebKit WebGL Unmasked Vendor: Intel Open Source Technology Center Unmasked Renderer: Mesa DRI Intel(R) Sandybridge Desktop Antialiasing: Available ANGLE: No Major Performance Caveat: No Vertex Shader Max Vertex Attributes: 16 Max Vertex Uniform Vectors: 4096 Max Vertex Texture Image Units: 16 Max Varying Vectors: 32 Best float precision: [-2127, 2127] (23) Transform Feedback Coming in WebGL 2 Rasterizer Aliased Line Width Range: [1, 7.375] Aliased Point Size Range: [1, 255] Fragment Shader Max Fragment Uniform Vectors: 4096 Max Texture Image Units: 16 float/int precision: highp/highp Best float precision: [-2127, 2127] (23) Framebuffer Max Color Buffers: 8 RGBA Bits: [8, 8, 8, 8] Depth / Stencil Bits: [24, 8] Max Render Buffer Size: 8192 Max Viewport Dimensions: [8192, 8192] Textures Max Texture Size: 8192 Max Cube Map Texture Size: 8192 Max Combined Texture Image Units: 48 Max Anisotropy: 16 Uniform Buffers Coming in WebGL 2 Supported Extensions:
  3. Added new level - Level 40
  4. Control Panels Widget

    @Deltakosh Maybe it will be good if it will be separated UI panel for camera_switching and fullscreen ?? And yes in inspector it will be good to
  5. Control Panels Widget

    OK thank you for your link. I'll try use your this code. @Deltakosh Just ask. Could be possible to add camera Would it be possible to add switching between cameras inside "inspector-debug UI panel" gui controls, and full screen switch inside "inspector-debug UI panel" OR maybe similar separate panel like "inspector-debug UI". So users of BabylonJs could use widget (fullscreen, switching between camera or any togglers component.. Maybe this component could be reusable (and now html and css coding). If this is possible to do. I think this could be good because many projects would like to switching between cameras and common togglers and such things.... I'm just wondering with curiosity greetings
  6. Hi, Does Babylon have any common Documentations/Widget_UI/Settings for switching between cameras and control panel (debug/fullscreen)? Is there any simple playground showcase how to include those widgerts like on this picture? Or should/must we hack (code) how it is made greetings
  7. New Level

  8. Added now

  9. Perplexus in VR mode How did I play it.
  10. scene.getLastFrameDuration()

    answer without reply
  11. Hi, I have code function getDeltaTime() { if(scene) { return scene.getLastFrameDuration() / 1000; } return 0; } I add new BabylonJS version in project Babylon.js engine (v3.2.0-alpha3) launched and I get message getLastFrameDuration is deprecated. Please use SceneInstrumentation class How can I replace/fix this code? Any advice? Greetings, Ian
  12. VR gear?

    https://techcrunch.com/2017/02/09/oculus-gloves/ (nice to see this)
  13. Here is one beautiful chrome extension https://chrome.google.com/webstore/detail/webrtc-desktop-sharing/nkemblooioekjnpfekmjhpgkackcajhg which allow you to stream your desktop full screeen (or browser fullscreen with f11 to your mobile. Expecially if you enable VR camera in desktop game in chrome browser and want to stream this to your mobile for your VR gear. And you don't need VR extra bloototh convroller because you can play your game with your keyboard+mouse of Desktop PC and get mirror of your desktop chrome to your mobile browser for your VR gear. Even your friends can watch your chat room with password you give them in URL. No extra coding just reuse chrome RTC extension. Mobile browser (chrome,firefox,opera) are receiver of your desktop PC chrome browser (game with VR camera). Greetings Ian
  14. VR gear?

    What are good and less expensive VR gear for mobile with joystick and gloves/sensors for VR interaction with heands ? Any advices ?