Jump to content

Search the Community

Showing results for tags 'babylon.csg'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. var b1=new BABYLON.Mesh.CreateBox("box1",3.0,scene); var b11=new BABYLON.StandardMaterial("b11",scene); b11.diffuseColor=new BABYLON.Color3(1,1,0); b1.material=b11; i have created one box and applied material property and i have also subtracted another box from b1 box using babylon.csg like var b2=new BABYLON.Mesh.CreateBox("box2",1.0,scene); var b1CSG=BABYLON.CSG.FromMesh(b1); var b2CSG=BABYLON.CSG.FromMesh(b2); subCSG=b1CSG.subtract(b2CSG); b1.dispose(); b2.dispose(); subCSG.toMesh("csg",new BABYLON.StandardMaterial("mat",scene),scene); After this, hole is created inside box1 but the material property i have given is not applied to the box1. How can i apply this material property to box1 after dispose method? Thanks...!!
×
×
  • Create New...