allecs Posted January 11, 2016 Share Posted January 11, 2016 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. Quote Link to comment Share on other sites More sharing options...
allecs Posted January 11, 2016 Author Share Posted January 11, 2016 Does anyone please have any suggestion on this? It is really just a basic CSG operation, it should be supported by Internet Explorer 11, am I missing something ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 11, 2016 Share Posted January 11, 2016 Unfortunately this is a bug with IE internal script engine. We do not have control over it Quote Link to comment Share on other sites More sharing options...
allecs Posted January 11, 2016 Author Share Posted January 11, 2016 Thank you for your time David. Is there any work-around this issue possible? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 11, 2016 Share Posted January 11, 2016 I'll check with Chakra team Quote Link to comment Share on other sites More sharing options...
allecs Posted January 13, 2016 Author Share Posted January 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
allecs Posted January 13, 2016 Author Share Posted January 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
chg Posted January 13, 2016 Share Posted January 13, 2016 What's the difference between the Mesh namespace's CreateSphere() and MeshBuilder's for me in IE11 it seems to work with the former but not the latter Quote Link to comment Share on other sites More sharing options...
allecs Posted January 13, 2016 Author Share Posted January 13, 2016 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. Quote Link to comment Share on other sites More sharing options...
jerome Posted January 13, 2016 Share Posted January 13, 2016 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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 13, 2016 Share Posted January 13, 2016 Don't expect news before many weeks from Chakra team :0 Quote Link to comment Share on other sites More sharing options...
adam Posted January 13, 2016 Share Posted January 13, 2016 ChakraCore is now open source! https://blogs.windows.com/msedgedev/2016/01/13/chakracore-now-open/ https://github.com/Microsoft/ChakraCore/ https://github.com/Microsoft/ChakraCore/issues jerome 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.