Search the Community
Showing results for tags 'cloning'.
-
Has anyone been changing the BabylonJS Codebase that has to do with cloning or physics engine and may maybe abstract meshes... Something. I had a Space Shooter Demo Game (Some Have Seen It) all the Ships and Enemies were all being instantiated at runtime (Basically I clone a whole Mesh Hierarchy). If I just switch to the latest and greatest beta... Now none of ships or laser bolts or anything are visible... They show up in the mesh list (also the physics collision not working, problem because of something in the cloning... Dunno) Can you please tell me WHAT changed so I can try and redo the runtime instantiation. Its alot of work being there and now, something changed... I can fix it if I know what Update... Solved... I think... Will have to hammer at it once some of the 3.1 beta performance and cannon.js issues are fixed
-
Hey! I will just link the relevant code and then ask the question (ignore the material parameter, is from an older build still have to get rid of it): function GenerateRandomObject(scene, material){ var nekej = BABYLON.Mesh.CreateBox("box1", 1, scene); nekej.position = new BABYLON.Vector3(getRandom(8, 90, true), 0.5, 90); nekej.rotation.y = getRandom(0, 360, true); nekej.isVisible = false; BABYLON.SceneLoader.ImportMesh("", "_resources/", "Drevo2.babylon", scene, function (newMeshes, particleSystems) { newMeshes[0].parent = nekej; }); return nekej; } So this is the way I create every new instance of a background object. This happens about 0.5 - 2 times every second for this type of object. More with others that I create with similar functions just different imported meshes. So my question is if there is a better way to import/use an imported mesh so i would not need to import the same mesh over and over again every single time i create a new object with that mesh. Thank you very much for any answers you might provide, with best regards, Satiana
-
Clones, Ripoffs, Original Ideas, where do you draw the line?
orange08 posted a topic in General Talk
Hello, fellow forum dwellers. I am a game developer. I've been making games for about 7 years, since before I was a teenager. The reason I created this topic is because there is a definite problem in the world of game development, in particular, the commercial realm, where HTML5 games are being sold and licensed out to gaming portals. During the years that I made games, I often would copy other people's ideas. At the beginning all I wanted to do was clone Chip's Challenge, because that was my favorite game when I was growing up... and I wanted to make my version of the game, with levels designed by me, with new things and ideas that I had thought of, that I thought would be cool additions to the game. not Chip's Challenge, but (freeware)Tim's Titanic Test! As I progressed in programming expertise, my games were more like mix ups between games. I would take ideas from my most favorite games, and combine them all to make a totally new creation. Even now I will occasionally create a "clone" or "ripoff" of someone else' game idea(putting my own personal spin on the idea, of course), however, these games have all been freeware... because I was cloning them for fun, not for money. Making games has been a thrilling and exciting hobby for me all these years... and I think that cloning other people's games is an acceptable practice, up to a point. You see, all the games I copied, I copied for fun... I wasn't selling any of these games. All of my clones were freeware, and that meant I wasn't trying to profit off of someone else' creativity or hard work, I was simply trying to grow and improve as a game developer. I've given a lot of consideration to this topic and I believe it is wrong to take/steal other people's ideas for your own financial gain, unless, of course, you get their expressed permission. I think this goes for everything, not just games. That's why we have patents, because they encourage creativity and new inventions. The ability to create new things without the fear that everyone is going to steal it and leave you in the dust with $0 in your pocket. I'm a game developer, and I know what it's like to be an inventor, to discover an idea that is original, and then to have someone come along and steal that idea, and use it not only to make money, but also to make it less likely that someone will want my idea when they might have already bought a cheap clone of it. eat a cookie or a cupcake... and leave behind four spikes... Having one of my game ideas stolen has helped me to be even more firm in my standings. I have resolved not to steal other people's ideas... because if I do steal, then I'm just as bad as the people who steal from me. Has anyone ever cloned one of your games? Have you ever cloned someone's game? Please discuss. -
I have a complex model with lots of submeshes and each submesh has a different texture file attached to it. When I clone the model, the materials seem to be set on the clone, but none of them show up. The new model just looks pink all over. Is there a way to force Babylon to simply re-apply the textures?