• Content Count

  • Joined

  • Last visited

  1. Hi Luaacro, That is great to hear. Do you have a rough time line for the camera movement to come? I'd like to avoid reinventing a wheel. -Dan
  2. I am trying to add a Pan command to the Babylonjs Sample Editor: https://github.com/BabylonJS/Editor/tree/develop. Is there an API function in Babylonjs for panning/moving camera to the left, right, up and down? -Thanks, Dan
  3. Deltakosh, sorry for the confusion, I should have been more specific in my question. Maybe we can refer the Editor as Babylonjs Sample Editor to differentiate it from the Source Code Editor in the sandbox. I think i figured out what is wrong: the intellisense has been working all along, but I was expecting it to work on variables with no type definition, such as "this._core" in many .js files in the Editor. Well, since such variables have no type definition, how could intellisense know what type it is? So we need .ts .ts files... Luaacro, assume you are also using the Sample Editor source code, have you created the .ts file from those .js files ? Dan
  4. The Editor I am referring to is: https://github.com/BabylonJS/Editor/tree/develop It is under Apache open source license.
  5. Thanks, that works now. However, I am having a hard time to get intellisense to work for the Babylon Editor source code. Is there any trick to it? I dragged Editor's js files into the .js file where I want to have intellisense, but it refuse to work.
  6. It does not seem to work. Do I need babylon.max.js file? I could not find it in the Babylon distribution. I am using the Babylonjs Editor source distribution.
  7. This is great. However, I do not even know how to get intelisense to work for Babylonjs in VS 2012. Any hint? I am new to Babylonjs.
  8. I think the following would be great for 3D modelling or CAD applications: 1) Zoom All or Zoom Extent to show all visible objects 2) Pan when the middle mouse button is being held down and dragged. 3) Zoom Window (allowing the user to specify a 2D rectangle to zoom into): this one is not easy. 1) and 2) are pretty much must-have for CAD editors. 3) would be nice to have.
  9. Hi Do_it, It works! Thanks a lot for the suggestion. Now, do you or anyone know if Babylon.js has a built-support for Panning operation? i.e., Pan while mousewheel is being held down and dragged? Thanks, Dan
  10. There is no zooming on scrolling mouse wheel in the Editor. I added the following code to the beginning of createReleaseScene() (which is called in index.html): //Adding an Arc Rotate Camera var canvas = document.getElementById("renderCanvas"); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0.8, 100, new BABYLON.Vector3.Zero(), scene); camera.attachControl(canvas, true); But it does not work. Any advice? -Thanks
  11. I can already run the Editor (and hence load the shaders) as is. My problem right now is not being able to open the VS2013 solution with my VS2012. I understand my VS version is lower than VS2013 that creates the solution file, but the "http://localhost:1411" error does not appear to be caused by the version difference. Peeking into the solution file, it seems to refers to /localhost_1411 specifically (seems that the Visual Studio solution requires a local server to be running???). Below is the complete solution file for the Editor: Microsoft Visual Studio Solution File, Format Version 12.00# Visual Studio 2013VisualStudioVersion = 12.0.21005.1MinimumVisualStudioVersion = 10.0.40219.1Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BabylonJSEditor", "http://localhost:1411", "{3D481FEA-281D-4E78-BE69-62A1841C25D7}" ProjectSection(WebsiteProperties) = preProjectUseIISExpress = "true"TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"Debug.AspNetCompiler.VirtualPath = "/localhost_1411"Debug.AspNetCompiler.PhysicalPath = "..\BabylonJSEditor\"Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_1411\"Debug.AspNetCompiler.Updateable = "true"Debug.AspNetCompiler.ForceOverwrite = "true"Debug.AspNetCompiler.FixedNames = "false"Debug.AspNetCompiler.Debug = "True"Release.AspNetCompiler.VirtualPath = "/localhost_1411"Release.AspNetCompiler.PhysicalPath = "..\BabylonJSEditor\"Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_1411\"Release.AspNetCompiler.Updateable = "true"Release.AspNetCompiler.ForceOverwrite = "true"Release.AspNetCompiler.FixedNames = "false"Release.AspNetCompiler.Debug = "False"SlnRelativePath = "..\BabylonJSEditor\"EndProjectSectionEndProjectGlobalGlobalSection(SolutionConfigurationPlatforms) = preSolutionDebug|Any CPU = Debug|Any CPUEndGlobalSectionGlobalSection(ProjectConfigurationPlatforms) = postSolution{3D481FEA-281D-4E78-BE69-62A1841C25D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU{3D481FEA-281D-4E78-BE69-62A1841C25D7}.Debug|Any CPU.Build.0 = Debug|Any CPUEndGlobalSectionGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSEEndGlobalSectionEndGlobal
  12. I figured out the first part, i.e., how to run the Editor. The issue was that the Editor does not come with Babylon.js files, I have to copy them into the Babylon.js folder. The 2nd problem still remains though: i.e., error on loading the solution to VS2012.
  13. I tried to run it by opening index.html and got almost a blank screen with only two tabs on the left side: General and Material (I ran chrome like this: start chrome --allow-file-access-from-files) Then I tried to load the sln project into vs2012 and got the the following error in the VS output window: http://localhost:1411 : error : Error opening web http://localhost:1411. Unable to open the Web site 'http://localhost:1411'. The Web server 'http://localhost:1411' could not be found. I am new to Babylon, so I definitely do not know what I am doing here. For one thing, I have VS2012 ultimate, not 2013 which the solution is created for. But I think the "localhost:1411" error shall be due to something else though. -Thanks Dan
  14. Is the source code for the editor open source? I saw an empty github project for it at https://github.com/BabylonJS/Editor. Thanks, Dan