Buzul

Members
  • Content Count

    26
  • Joined

  • Last visited

About Buzul

  • Rank
    Member
  • Birthday 06/16/1985

Profile Information

  • Gender
    Male
  • Location
    Turkey

Recent Profile Visitors

102 profile views
  1. Buzul

    loading screen with a video

    @kcoley and @aWeirdo sorry for my late response.. @aWeirdo thank you. i solved video issue with your way.. And now i'm working on progress bar and waiting items.. Thanks for your support..
  2. Hi everyone.. I'm here again with a fresh question... I'm trying to do create custom loading screen.. A lot of topic inside of the forum anf i have already read document about loading screen, and also i did some thing (you can find PG link below and if you want you can update it) but how we can add a video to the loading screen background i couldn't find a solution or sample, and also i can't count items on the scene... PG Link: https://playground.babylonjs.com/#WV4PLS Somebody can show me the way about this? Thanks in advance..
  3. Buzul

    Free the memory used by a scene

    Hi @Deltakosh Can you give us PG sample about this?
  4. Buzul

    Hello

    HoĊŸgeldin birader
  5. @ozRocker Hi; Did you solve this problem?
  6. @JohnK Thanks for your information..
  7. @Wingnut thanks again i'll try carry my project to assestManager i'll try it write here..
  8. Hi everyone.. I have solved my problem with global veriable. I separated all files, it's working fine.. I accept more effective solutions if somebody have. Thanks for all supports..
  9. Hi @Deltakosh thanks for your reply.. My codes ar in PG now https://www.babylonjs-playground.com/#82XMQB If i use those codes in html directly no problem. But i have to use from separate files like first.js, second.js etc.. In this time babylon giving "BJS - [13:09:59]: Unable to import meshes from Hall/small_hall.babylon: Error in onSuccess callback babylon.js:1:106826" error message how can i fix this issue i don't know.. I'm out of ideas I need your helps about this issue, thanks in advance
  10. Hi everyone again me.. I solved that issue with parent mentality. Thank for idea and helps to @Wingnut But i have one mode issue.. If my all codes are inside of the index.html, working fine... But i need to use with seperate js files; and issue point is: When i want to import index js (I have index.html, fist.js,second.js) crating error message of "Unable to import meshes from xxxxxx.babylon: Error in onSuccess callback". There is a topic with this error in the forum, I saw it but i couldn't solve it. is there any suggestion?
  11. Hi John; Thanks for your valuable solution suggestions. I think my issue will be solved with @Wingnut 's way. Because him's story is similar with my situation. I simulated somethings yesterday with that way. I will try to entegrate this solution to my main project today.
  12. @Wingnut Thanks for your guide.. I will take a look what can i do with parent-child mentality. I will let you know about result. Thanks for your support
  13. Hi again; I'm adding my script codes, may be somebody can see samething.. I'm trying to do when i import multiple scene to different locations run to those codes that coordinates. Another approaching: For example please think a space (biggest one) i'm importing this scene different locations in this space. My codes are in the small space (small space is each scene). I'm trying to do carry my codes to related coordinates each scene. How can i to do this i'm trying to find a solution. Any idea can help me.. Thanks advance... var canvas = document.getElementById("renderCanvas"); var createScene = function () { var scene = new BABYLON.Scene(engine); var light = new BABYLON.DirectionalLight("dir01", new BABYLON.Vector3(0, -0.5, -1.0), scene); var camera = new BABYLON.FreeCamera("Camera", new BABYLON.Vector3(250, 100, 0), scene); // This attaches the camera to the canvas camera.attachControl(canvas, true); // Camera Key Controll camera.speed=15; // Speed camera.keysUp.push(87); // W camera.keysDown.push(83); // S camera.keysLeft.push(65); // A camera.keysRight.push(68); // D BABYLON.SceneLoader.ImportMesh("", "./", "bob.babylon", scene, function (newMeshes2) { //bringing babylon file hall = newMeshes2[1]; hall.rotation.y = 0; hall.position = new BABYLON.Vector3(0, 0, 0) }); /////////////////// trying to import from external file and carry this block (start) ////////// var optionsBro = { //cube size 1 width: 18, height: 18, depth: 18, }; var box = BABYLON.MeshBuilder.CreateBox('box', optionsBro, scene); var mate = new BABYLON.StandardMaterial("Mat",scene); box.position.x = 25; box.position.y = 10; box.position.z = -35; mate.alpha=0; box.material=mate; //click event for cube 1 box.actionManager = new BABYLON.ActionManager(scene); box.actionManager.registerAction( new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function (event) { var pickedMesh=event.meshUnderPointer; alert("this is cube"); })) var optionsBro2 = { //cube size 2 width: 18, height: 18, depth: 18, }; var box = BABYLON.MeshBuilder.CreateBox('box', optionsBro2, scene); var mate2 = new BABYLON.StandardMaterial("Mat",scene); box.position.x = 5; box.position.y = 10; box.position.z = -5; mate2.alpha=0; box.material=mate2; //click event for cube 2 box.actionManager = new BABYLON.ActionManager(scene); box.actionManager.registerAction( new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function (event) { var pickedMesh=event.meshUnderPointer; alert("this is teapod"); })) ////////////////////////////////// finish /////////////////////////////// return scene; }; var engine = new BABYLON.Engine(canvas, true, { preserveDrawingBuffer: true, stencil: true }); var scene = createScene(); engine.runRenderLoop(function () { if (scene) { scene.render(); } }); // Resize window.addEventListener("resize", function () { engine.resize(); });
  14. Hi John.. Thanks for your reply.. if you've examined the example, let me explain You can think of this as a room. Within a larger area (again babylon js scene) there are dozens of this sample If i put to the origin point scene and codes it's working fine but when i put scene to special coordinate how can organize codes i dont know is there any way we can think of scenes and codes together as a whole object and place them together in a coordinate?
  15. Hi John; Thanks your reply and your samples. You will find a scene in atteachment file, you can think this scene like a room and will be multiple rooms from like this rooms in biggest room; and also i added some js codes to this file for click events. My issue is when i put multiple rooms to inside of the biggest room i have to create special js codes each rooms (i know this). But how can i put to coorect coordinates those codes i don't know. I can position the "bob.babylon" file that I took on the stage with the import mesh method. I want to keep the codes I added for click events in a separate file and move them together with the room when the room position is changed. Thanks for your sharing issue_sample.rar