Jump to content

View more

Image of the Day

「筋肉兄貴のスーパーラン!」
夕焼けにガラス・・・(´・ω・`)
ガラスは割りたいでしょうけど、割ったらクリアできないですよ。
(o・ω・o)
 #indiedev  #indiegame #screenshotsaturday https://t.co/fhKO5NJ5ee
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Exporting "to WebGL"!?

2: Adsense

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+   

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

MeAndVR


#2 Hodgman   Moderators   

50321
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   

2113
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   

1156
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+   

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

MeAndVR





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.