I'm trying to get an obj model parsed for webGL content. I'm using Java Spring with thymeleaf and have my resource as an obj file in my resources/static/ folder. I need to get the contents of the obj file as a string to parse it in the javascript on the html web page and feed it into my WebGL, but I'm not sure on how to access it.
Do I need to do an ajax html call to return the data as a JSON? Or is there a way of just accessing that resource from the URL similar to embedding an image on a webpage.
I'm quite new to this web development business, so it might sound dumb but I am stuck here.
Thank you.