Jump to content

  • Log In with Google      Sign In   
  • Create Account

Exporting "to WebGL"!?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 DareDeveloper   GDNet+   -  Reputation: 977

Like
0Likes
Like

Posted 27 March 2014 - 04:37 AM

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?


Given enough eyeballs, all mysteries are shallow.

ProcGames.com


Sponsor:

#2 Hodgman   Moderators   -  Reputation: 31851

Like
3Likes
Like

Posted 27 March 2014 - 05:04 AM


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...



#3 DiegoSLTS   Members   -  Reputation: 1897

Like
1Likes
Like

Posted 27 March 2014 - 06:48 AM

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.



#4 Scourage   Members   -  Reputation: 764

Like
1Likes
Like

Posted 27 March 2014 - 06:32 PM

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



Halfway down the trail to Hell...

#5 DareDeveloper   GDNet+   -  Reputation: 977

Like
0Likes
Like

Posted 28 March 2014 - 01:34 AM

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.


Given enough eyeballs, all mysteries are shallow.

ProcGames.com





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS