jorgenoro Posted September 14, 2015 Share Posted September 14, 2015 Hi, Have anyone managed to load a scene in a game running on node-webkit? Regards Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2015 Share Posted September 14, 2015 Hello, this seems complicated as node does not support webgl Quote Link to comment Share on other sites More sharing options...
jorgenoro Posted September 14, 2015 Author Share Posted September 14, 2015 Hi, I've seen a topic where the user @Temechon says he has been using node-webkit to a number of projects, here's the link:http://www.html5gamedevs.com/topic/13037-using-babylonjs-in-mobile-app-and-desktop-app-for-non-game-application/ I've a simple scene and I am able to run it on NW.JS.It's just when I'm trying to load a scene, this shows up (see attached). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2015 Share Posted September 14, 2015 In this case node is used as the web server actually (but perhaps this is what you want to do?) Quote Link to comment Share on other sites More sharing options...
jorgenoro Posted September 14, 2015 Author Share Posted September 14, 2015 In this case node is used as the web server actually (but perhaps this is what you want to do?) Exactly Quote Link to comment Share on other sites More sharing options...
fenomas Posted September 15, 2015 Share Posted September 15, 2015 In this case node is used as the web server actually (but perhaps this is what you want to do?) node-webkit is a way of wrapping HTML/node apps into standalone executables. It wraps together a node server and a Chromium front end. Jorgenoro, loading assets works for me, can you share details of how you're doing it? In my case I believe that in all cases I just specify asset URLs as relative links. Are you using file:/// links? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 15, 2015 Share Posted September 15, 2015 Indeed, node-webkit works well for Babylon projects (and I have some projects quite complex).Can you share your code please? Quote Link to comment Share on other sites More sharing options...
jorgenoro Posted September 15, 2015 Author Share Posted September 15, 2015 Hello, I'm at work, but later today I'll post the code here.Just one thing, I am not adding mime types to node, and I don't know how to... Is this a critical step?Thank you very much. Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 15, 2015 Share Posted September 15, 2015 No, I never had to do this. Quote Link to comment Share on other sites More sharing options...
jorgenoro Posted September 16, 2015 Author Share Posted September 16, 2015 Hello, sorry de late answer!My problem was in the path to the folder were the scene was.A beginner problem, but hey, got to start from somewhere Anyway, thank you all for the concern and will to answer 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.