• Content count

  • Joined

  • Last visited

  1. Hey All, When you set inertia to 0 on the ArcRotateCamera, you can't rotate on a single mousedown/mousemove a great distance. You have to reset your mouse towards the center and drag again to turn a large degree. Can someone tell me what parameter makes it so that moving the mouse traverses more rotation? I've tried neither of these seem to do anything: camera.moveSensibility = 50; camera.angularSensibility = 50;
  2. thanks for this. I'm totally aware of the probe position in relation to the window. I was wondering about the waviness, but I figured it out and I should have known. The sphere in my Babylonjs scene is actually very slightly rotating at the center of its axis whereas in the three.js example it is not. This is what is causing the waviness. Thanks for taking the time help me with this! I love the flexibility of the fresnels! The anti-aliasing is very subtle, I can't really tell the difference, but it already looks amazing so it doesn't matter : )
  3. Hi @Deltakosh! Yes of course! Here's a picture (No FresnelParameters) clearly showing the difference. Babylonjs is on the left. This white edge occurs when a lighter color (such as in the windows) is behind the sphere and is being reflected along the edge of the sphere. The edge flickers/undulates in a way the original does not. To use an analogy, it's like looking into the distance on an extremely hot desert day where the air diffraction creates waves. The FresnelParameters you added in change the overall color (darkening) too much. If I up the bias it helps, but there's still a black edge rim that gives a slight cartoon shader look. Once I cross that bias thresh-hold where the black edge gets thinner (around 0.5) the flickering light is back. Any ideas? I am using your setHardwareScalingLevel code, but can I also add anti-aliasing on top of it? I can't get the anti-alias options in the post proc docs to work. Black and white for example does work. The picture comparison isn't accurate because the placement of the reflection probe does make a difference as to whether the window from the skybox texture falls along the edges, but even when it does in the original, the difference in behavior/rendering is apparent.
  4. I have come a long way now. It's almost identical except the rotation. The only difference I notice is an interesting way the edges of the center sphere light up and flicker when near a window. I'm not sure what setting is causing that or if it's just a difference in the light/rendering. I am trying to understand why I can't tell the difference in the scene with the follow code commented out: (of course all of this is the modified reflection probe example) // var probe = new BABYLON.ReflectionProbe("main", 512, scene); // probe.renderList.push(knot1); // probe.renderList.push(box1); // probe.renderList.push(skySphere); // probe.renderList.push(sphere1); I am also wondering if I can get rid of this function even if it means repeating more code to assign the material and the probe to the appropriate objects such as with the code above? var generateSatelliteMaterial = function (root, others) { material = new BABYLON.StandardMaterial("satelliteMat" +, scene); probe = new BABYLON.ReflectionProbe("satelliteProbe" +, 128, scene); for (var index = 0; index < others.length; index++) { probe.renderList.push(others[index]); }; I will keep commenting out and breaking stuff, until hopefully I understand.
  5. What the! @adam, @Deltakosh you two are amazing thank you!. This looks wonderful! That's really interesting about the redundant scene.render. I can't wait to get off work and tweak this! If you happen to have a comment on my question as to whether I needed to use PBR materials, I'm still very curious. Since I'm using the reflection probe maybe another less advanced material would do the same? I simply tried the PBR material and of course it looked great so I went with it. I'm sure in time the docs and experimenting will answer this question for me and many more!
  6. @Deltakosh (Sorry the scene will take a while to load). Here is a Playground: The skybox texture is here. It's very important for recreating this scene. I don't yet know how to work with external textures in Playground. Do I need to use PBRs to achieve this copy? How can I get the antialiasing to be similar to the original example I am copying : ) I haven't had much luck with getting code I've googled for anti-aliasing to work for some reason. Thanks!
  7. @Deltakosh rock on. I will as soon as possible. I encountered a weird bug with the playground on a mac that misaligned the highlighting when selecting text so I haven't used it much. Seems to work on Windows fine though.
  8. So I got everything working in Babylonjs with a probe and PBRMaterial, but as you can see the jagged lines are pretty bad. I think this is something about PBRMaterials? Do I even need to use PBRMaterial here? I assume not, but it worked when i tried it. How can I get a standard material to look metallic and have the reflection probe do the reflection work? Or any other ideas?
  9. @Luaacro Yup. I'm going to work off that example I think. I can't seem to get the antialiasing the same as that Three example. Is that just a difference between the two renderers right now? I know Babylonjs has been re-working their post-processing. FXAA 4x doesn't quite get there and I haven't gotten any Babylonjs code that can take you higher to work.
  10. I'd like to recreate a Three.js demo in Babylonjs for fun: I'm guessing a Reflection Probe is my best best? I'm just now beginning to transition from Three.js to Babylonjs so any pointers are welcome! If there is any technical limitation to doing this that would also be valuable info. I've read a few forum posts touching on the techniques I'll need here, but now with 3.0 and the 3.1 preview I thought it's worth asking. Do you think I could get it so close you couldn't tell the difference?
  11. Webmidi or OSC + Babylonjs?

    scene.registerBeforeRender( function( ) { object1.rotation.x = cc1 * 0.05; I switched over to this for rotating the object and it worked : )
  12. Webmidi or OSC + Babylonjs?

    @RaananW Do you know why I'm getting NaN? fade1 is the variable with a CC value between 0-127. I am very new to Babylonjs, Javascript and WebGL. Please bear with me. I learn quickly : ) I thought the screenshot code might work since object1.rotation.y += 0.02; rotates my mesh. scene = createScene( ); engine.runRenderLoop( function( ) { object1.rotation.y = fade1 * 0.02; scene.render( ); } );
  13. Webmidi or OSC + Babylonjs?

    I would definitely give it a go!
  14. Webmidi or OSC + Babylonjs?

    Thank you! I'm going to take you up on your help offer. Please get ready for some very basic questions heading your way in the future : ) Open sound control is much more ideal considering your concerns yes, but it's tougher to setup, not to mention it's not native in any browser. If I can find a way to work with OSC instead (even if i'm restricted to a local web server), I will! Despite people trying to retire midi for a long time, it's just omnipresent as far as support goes and of course every music application can send it, which opens up a lot of possibilities for me to incorporate any music applications. Also, it's very easy for any non-technical person to plug in a usb midi controller, open Chrome and have everything working. I'm not interested in developing for the general public right now, but you never know. I loath the idea of sweeping a filter with 0-127 steps. I would just never do it : ) But maybe for visuals, I can make it work. Fingers crossed.
  15. Webmidi or OSC + Babylonjs?

    I make electronic music. Lately I've been live coding. Long story short: I would like to make performance pieces that allow me to create music and interact with visuals at the same. The wonderful thing about midi is of course that I can use its data for both at the same time. I have web midi working in another webgl engine, but I'm hoping to switch to Babylonjs. I'm just getting started with Babylonjs and I don't know what to expect : ) I'm not a game developer at all. P.S. You are definitely not off-topic. Any conversion about these things is good conversation : )