Search the Community
Showing results for tags 'building'.
-
Hello everybody :-) I'm trying to use ExtrudeShape for creating a building shape and am having trouble with the cap. I understand that the cap is not tessellated (triangulated) so it would be faster. But when I have concave angles in the shape, it doesn't look good. I also tried using Ribbon for the roof polygon somehow, but the tessellation doesn't happen here either of course. Here is my code: http://www.babylonjs-playground.com/#1KQZAF#0 I tried using PolygonMeshBuilder but the mesh is rotated the way I don't want it to and some walls keep dissapearing depending on the angle of view: http://www.babylonjs-playground.com/#SJLOW#1 I don't need the mesh to be updated so the speed of tessellation doesn't bother me much. What am I doing wrong? What can I do to have a tessellated building? Thanks :-)
- 12 replies
-
- babylonjs
- extrudeshape
- (and 5 more)
-
Hi guys! First time poster here. I wanted to share my upcoming HTML5 mobile game, Pocket City. Screenshot: Animated Gfycat link: - https://gfycat.com/gifs/detail/ColorlessWatchfulHydra Thanks so much to PhotonStorm for creating Phaser! I've been using it for a year and a half on this game and it has been a blast to work with. My goal is to create a mobile city building game that has the depth and gameplay of traditional desktop city builders, but with a modern mobile interface. My plan is to release for iOS and Android, then if things go well, perhaps PC. Here's some links if you guys want to stay updated: Blog: https://blog.pocketcitygame.com Twitter: https://twitter.com/pocketcitygame/ Facebook: https://www.facebook.com/pocketcitygame Instagram: https://instagram.com/pocketcity Youtube: https://www.youtube.com/c/pocketcitygame Thanks for taking a look!
-
Hi, I forked the main repo and was able to build on one machine, but when I cloned to another machine, I'm getting an error with gulp-uglify: events.js:161 throw er; // Unhandled 'error' event ^ Error at new JS_Parse_Error (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1534:18) at js_error (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1542:11) at croak (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2089:9) at eval (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2239:21) at eval (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2136:24) at eval (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2904:23) at Object.parse (eval at <anonymous> (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2915:7) at /Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:71:33 at Array.forEach (native) at Object.exports.minify (/Users/jkelly/dev/Babylon.js/Tools/Gulp/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:66:15) Does anyone have any thoughts on what's going on? Thanks