Wingnut Posted March 20, 2014 Share Posted March 20, 2014 Hi gang! Here begins the never-ending thread... about babylon.js tutorials. Post freely in here - about any tutorial. Here in the early days of this thread, I would like us to talk mostly about 'the basic series' of tutorials: https://github.com/BabylonJS/Babylon.js/wiki/Tutorials We will need input from everyone. We will be doing test translations. We will be collecting pictures that are perfect for the tutorials. We will be collecting great ideas and always looking for ways to make things clear for all. Comment freely. Here are some early things that we are wanting your comments about: ----------#1: The use of 'arg' and 'arguments'. ie. function(arg, arg, arg, arg). Early tutorials called them 'parameters'. In tutorial #6, I started using 'arg' and args. Does anyone think that 'arg', 'args', 'arguments', etc... is outdated or wrong? Is ECMA officially calling them parameters? Should we avoid calling them args and get back to 'parameters'? Thoughts? Comments?----------#2: The use of the term 'one-line constructor' (see tutorial 6). Here, we used 'constructor' to define a one-line Babylon scene item maker such as var light0 = new BABYLON.HemisphericLight("Hemi0", new BABYLON.Vector3(0, 1, 0), scene); Does anyone think that 'constructor' is a bad term to use for that 'line'? For babylon.js, that single line scene item maker is not only a constructor... but also an 'installer', yes? In other frameworks, you first 'construct' (make) a scene item, and then you need to do scene.add(item). Babylon.js does the add for the user. Comments welcome... about 'constructor'.---------- Hey, thanks, everyone! We will be watching this thread forever. No hurry on commenting, and feel free to change your minds and comments later. A special thanks to Dad72 for recently showing me that light.isEnabled PROPERTY... has been changed to .isEnabled() ... a getter FUNCTION. And that the new way to change a scene item 'enabled'... is with .setEnabled() function. His information not only fixed a section at the top of the #6 lights tutorial, but it fixed some personal projects as well. Thanks again, Dad72. camera_or_light_or_mesh.setEnabled(1 or 0); ... that is the way. But don't forget about light.intensity and scene.setActiveCamera[by](something) and mesh.visibility and StandardMaterial.alpha. All are good ways to think about... when you want to make things appear and disappear. Do not trust my typing. Be sure to visit http://doc.babylonjs.com to find the perfect syntax. The #6 lights tutorial is still being edited. I (Wingnut) hope to clarify the .direction property somewhat. Tutorial #5 about cameras... is scheduled for some work, soon. Feel free to comment about those things, or about anything in the GitHub tutorials. We are listening carefully. Be well! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.