Jump to content

CSG - Internet Explorer Problems


allecs
 Share

Recommended Posts

Hi guys,

 

I'm having some problems when using CSG on Internet Explorer (I have tried with IE 11 but the problem might appear on other versions as well). 

I am trying to create a dice shape using the intersection of a sphere and a box but when I use the intersect method, Internet Explorer crashes with an "Out of stack space" error. The code I'm using is the following:

 

http://babylonjs-playground.com/#L1YBN#1

 

 

Other browsers are working great.

 

Could you please let me know if I'm doing anything wrong or what can I do to prevent this?

 

Thanks alot in advance.

Link to comment
Share on other sites

Sorry to be so insistent but are there any news on this? Is there any way I could do this differently so that it works on internet explorer 11 as well? I really need this to work on all major browsers and I'm not really sure what to do with this.

Link to comment
Share on other sites

Update for anyone that might face this problem: I managed to make it work on internet explorer by reducing the number of horizontal segments in the sphere. The default is 32 so I reduced it to 20 and that works with only a minor impact on the aspect. However I'm still looking forward if any solution is found without the need for compromise.

Link to comment
Share on other sites

Well, I'm really new to Babylon.js so I'm not really sure but MeshBuilder has some extra methods that you can use like getVerticesDataKinds or setVerticesData which can help you customize the faces of your shapes better. I got some help with it on this forum when trying to apply texture to the faces of the dice shape constructed with CSG and I couldn't do it using Mesh namespace. Perhaps some experienced users can help us better understand this.

Link to comment
Share on other sites

Actually MeshBuilder and Mesh build the given same object.

Mesh is the legacy class with some fixed input parameters as a comma separated parameter list

MeshBuilder provides the same parameter than Mesh and many more to change the constructor behavior. There are no more methods, only input parameters.

The MeshBuilder parameters are a JS object whose property names are the parameter names and the property values the parameter values. So it's extensible : when we add some feature to a mesh built with MeshBuilder, the constructor call signature, as your existing code, doesn't change

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...