Sign in to follow this  
DareDeveloper

Exporting "to WebGL"!?

Recommended Posts

DareDeveloper    1018

Hi,

 

I am currently trying to figure out how synthetically generated data can be stored in memory (by web applications).

 

While researching, the Wikipedia article confused me a little:

http://en.wikipedia.org/wiki/WebGL

 The scenes are then exported to WebGL. There are also services to publish interactive 3D content online using WebGL.

What does the article try to tell me? Is WebGL also a filetype? Is the content exported as WebGL instructions (JavaScript instructions, maybe)?

Does WebGL support a JSON formatted 3D scene / model format out of the box?

 

Or has the article been written carelessly and in reality there is no standard filetype for WebGL?

Share this post


Link to post
Share on other sites
Hodgman    51223


Or has the article been written carelessly and in reality there is no standard filetype for WebGL?
Yes, it means they're exported to a format that will be able to be easily rendered by WebGL...

 

You'll also see this careless lingo with game engines that support "exporting to WebGL/HTML5" as a target. In that case they mean they're converting your code to JavaScript, making some boilerplate HTML/CSS, exporting your assets to Javascript/browser-friendly formats, etc...

Share this post


Link to post
Share on other sites
DiegoSLTS    2113

WebGL is just a standard definition for a graphic library like OpenGL, and doesn't specify a file format (that's not a graphic concern). Anyway, you can use an API like Three.js that has some loaders implemented for different file formats, and I guess others have too.

Share this post


Link to post
Share on other sites
Scourage    1198

You may want to look at glTF, it's a runtime format from Khronos.  It's designed originally for webGL.  Currently the way to get models in the format is to convert from Collada using their tool, but I'm working on a Blender import/export for it.

 

cheers, 

 

Bob

Share this post


Link to post
Share on other sites
DareDeveloper    1018

Thanks all, that is pretty much what I thought. I just feared I might be missing something fundamental.

 

glTF might be interesting in the relatively near future, but right now I am collecting information ... mostly the more basic kind, so far.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this