JohnnyDevNull

Members
  • Content Count

    9
  • Joined

  • Last visited

About JohnnyDevNull

  • Rank
    Newbie
  • Birthday 07/05/1988

Contact Methods

  • Website URL
    http://www.jplace.de/

Profile Information

  • Gender
    Male
  • Interests
    Programming, Web-Technologies, 3D Modeling, Astronomy, Bicycling
  1. JohnnyDevNull

    Angular + BabylonJS and Angular + ThreeJS Template

    Push
  2. JohnnyDevNull

    What the best 3d framework?

    ThreeJS and BabylonJS are the most active projects for webgl and pure web frameworks. Most active means in my opinion stars and commits on github. For playing around you can also use my template projects from there
  3. JohnnyDevNull

    Angular + BabylonJS and Angular + ThreeJS Template

    There is something: https://github.com/nicolaspanel/three-orbitcontrols-ts Looks like this is the solution.
  4. JohnnyDevNull

    Angular + BabylonJS and Angular + ThreeJS Template

    I think OrbitControl must be imported seperate, i will take a look at... Edit: Ok this looks strange... the problem is, that many extensions of ThreeJS are not modules. Here at the last post should be a workaround: https://github.com/mrdoob/three.js/issues/9562 I will test it and come back later...
  5. Dear ladies and gentleman, for playing around with some web gl rendering i started playing with threeJS a few years ago, but wanted also to get a look in babylonJS. So here are two angular template projects which i want to share with all of you who also want to play something around with or maybe to built a real app from with it: Angluar 6 + BabylonJS https://github.com/JohnnyDevNull/ng-babylon-template Angular 6 + ThreeJS https://github.com/JohnnyDevNull/ng-three-template Both have the example code running. Have some fun!
  6. JohnnyDevNull

    Getting Babylon.js to work in OBS Browser

    Maybe the playground has a browser check? https://stackoverflow.com/a/9851769/3634274 Or http://php.net/manual/de/function.get-browser.php Then you could test it with a local installment. Do you know the user agent of this browser? Or can you fake it?
  7. JohnnyDevNull

    TS2339: Property specularColor does not exist on type Material

    ok, thats easy 😂 set the properties on the materials instance not over the parent way. thanks a lot for the help!
  8. JohnnyDevNull

    TS2339: Property specularColor does not exist on type Material

    Sorry but i'am a little bit confused... my workaround for now is as followed: let makeTextPlane = function(text: string, color: string, textSize: number) { let dynamicTexture = new BABYLON.DynamicTexture('DynamicTexture', 50, $scope.scene, true); dynamicTexture.hasAlpha = true; dynamicTexture.drawText(text, 5, 40, 'bold 36px Arial', color , 'transparent', true); // @todo fix <any> - actual a hack for @types Error... let plane = <any>BABYLON.Mesh.CreatePlane('TextPlane', textSize, $scope.scene, true); plane.material = new BABYLON.StandardMaterial('TextPlaneMaterial', $scope.scene); plane.material.backFaceCulling = false; plane.material.specularColor = new BABYLON.Color3(0, 0, 0); plane.material.diffuseTexture = dynamicTexture; return plane; }; Sorry i'am not as familiar with typescript than with javascript or php, but how can i overwrite an existing propeties type from an instance?
  9. Hi there, i have ported the world axes example from http://doc.babylonjs.com/snippets/world_axes into my Angular-Babylon template, but getting the following error: let makeTextPlane = function(text, color, size) { let dynamicTexture = new BABYLON.DynamicTexture('DynamicTexture', 50, $scope.scene, true); dynamicTexture.hasAlpha = true; dynamicTexture.drawText(text, 5, 40, 'bold 36px Arial', color , 'transparent', true); let plane = BABYLON.Mesh.CreatePlane('TextPlane', size, $scope.scene, true); plane.material = new BABYLON.StandardMaterial('TextPlaneMaterial', $scope.scene); plane.material.backFaceCulling = false; plane.material.specularColor = new BABYLON.Color3(0, 0, 0); plane.material.diffuseTexture = dynamicTexture; return plane; }; webpack: Compiled with warnings. ERROR in src/app/engine/engine.service.ts(91,22): error TS2339: Property 'specularColor' does not exist on type 'Material'. src/app/engine/engine.service.ts(92,22): error TS2339: Property 'diffuseTexture' does not exist on type 'Material'. I can only fix it with an <any> in front of the BABYLON.Mesh.CreatePlane() function. Am i doing something wrong here? I don't think that this should be the right way...