Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Mar 2013
Offline Last Active Apr 12 2015 01:50 PM

Posts I've Made

In Topic: Serving html file for webgame.

29 March 2015 - 05:05 AM

I managed to get it working using express.static middleware to serve all the scripts and resources, by adding the following lines:

app.use('/Scripts', express.static(__dirname + '/Scripts'));
app.use('/Images', express.static(__dirname + '/Images'));
app.use('/Sounds', express.static(__dirname + '/Sounds'));

I tried using a '/public' folder to do this but I couldn't get it working. I'll probably play around with it to find out why as I think it would be cleaner. 

Thanks for your help!

In Topic: Serving html file for webgame.

29 March 2015 - 04:26 AM

I tried removing the '../' but unfortunately I'm still getting the same error: "Failed to load resource: the server responded with a status of 404 (not found)".

I was under the impression that it would look for the scripts from where the html file that is trying to link them is. In this case the html file is in Views, and would need to go up one level in order to get into Scripts. Or does it look from the root directory regardless of which file is searching?

In Topic: Texture Mapping problems with Assimp

09 March 2015 - 03:36 PM

That was indeed the problem I was having. I remember actually changing a 3 to a 2 before for the UV coords thinking "there's only 2 components in a texture coordinate"! 

Thanks so much for the help!

In Topic: Reference/Value types in C#

10 November 2013 - 08:58 AM

Alright thanks. That simplifies it a lot for me. 

In Topic: Problem setting up GLSurfaceView.Renderer

10 September 2013 - 03:02 AM

I created another project and it worked perfectly fine, and also helped me realise where I made a mistake, and a very stupid mistake it was. In my GLSurfaceView implementation, I still had overridden, empty stubs for its onSurfaceCreated() and onSurfaceChanged() methods. 


Thank you for the help Angex.