Search the Community
Showing results for tags 'angular2'.
Found 6 results
Pixi.js and Angular2
Shadowstep33 posted a topic in Pixi.jsHey y'all, I made a package that I have been heavily using and honing in a game I'm working on. It allows you to use markup to create PIXI scenes. I'm hoping it'll help someone out there (and help make PIXI easier to use with angular2). Currently, it's not really optimized for performance as it's in its early stages (and I'm not that talented). If anyone has suggestions, feedback, or just wants to give it a whirl here is the github and npm info. It is being actively developed and maintained. https://github.com/Shadowstep33/Angular2Pixi https://www.npmjs.com/package/angular2pixi FYI: on the roadmap is more support and out-of-the-box components that implements PIXI's built in features.
angular2 importMesh of undefined from undefined
tetley_tea posted a topic in BugsHi, I'm trying to use Angular 2 to create a BabylonJS scene - but seem to having some difficulty getting the OBJ loader to bring in the OBJ model. I'm getting this error: Unable to import meshes from http://localhost.cdn.com/b_azir.obj: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse. http://localhost.cdn.com is just an IIS website that points to a localhost website that contains the model files. (OBJ, MTL and textures). I can navigate to http://localhost.cdn.com/b_azir.obj fine. So that's no issue. I can include the code if one wishes. I would create a playground. But does it support TS? Thanks, Pete.
Importing plugins/spine in angular2
rpurushotma posted a topic in Pixi.jsAnyone know the correct way to get plugins like pixi-spine into Angular 2 or Ionic 2? import * as PIXI from 'pixi.js'; works for getting the base pixi library in. But, how do you do something like import * as PIXI from 'pixi.js' and 'pixi-spine';
GrandSchtroumpf posted a topic in Questions & AnswersHello Guys, I am developing a game with Angular2 and Bablyon.js. So far no problems, but I recently used the Water material and I couldn't add it to my mesh : var waterMat = new BABYLON.WaterMaterial("waterMat", newScene, new BABYLON.Vector2(512,512)); waterMat.bumpTexture = new BABYLON.Texture("assets/scenes/home/img/water.png", newScene); water.material = waterMat; //water is a plan mesh I downloaded it from the Babylon.js Generator, and when I the console told me : "Unable to load src/Shaders/water.vertex.fx" I tried to change the Shader Repository, but it didn't change the error. So I assumed it' not linked to that. BABYON.Engine.ShadersRepository = "../Shaders"; I tried with a stand-alone project, and it worked perfectly. I have no idea where the error come from, and where to add this "water.vertex.fx" file ... BTW : I import my BABYLON with require in node_modules. Thank you for your help =)
I am currently converting my working Babylon typescript code into an angular 2 component, but it doesn't seem to render on the screen. It is finding the correct canvas, and everything including the render loop (which calls scene.render) is running without errors and I am not sure why everything is working except for making it show up on the canvas, I had no issues with this prior to adding the code to a component and all of the code works except for that single part. Any suggestions regarding what could be going wrong?
I'm trying to make an Angular2-Beta9 component that contains a canvas for the Babylonjs call but the console provide me an error : Uncaught Error: WebGL not supported angular2-polyfills.js:1250 Engine @ babylon.2.1.debug.js:5344 (anonymous function) @ SceneLoader.js:980 Zone.run @ angular2-polyfills.js:1243 zoneBoundFn @ angular2-polyfills.js:1220 If i use the canvas outside Angular works well. I'm not sure if there is a specefic method to integrate BabylonsJs with Angular2-beta9. Im ready to migrate to an other Angular2 beta-x if it provides a solution.