Author Topic: WebGL test  (Read 2209 times)

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
WebGL test
« on: December 13, 2012, 12:21:21 pm »
Well just tried three.js today, still need to find a way to add textures and animations though.

Clilck here with a browser that supports WebGL.
For example, Chrome, Safari, Opera, Firefox...


FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: WebGL test
« Reply #1 on: December 14, 2012, 05:54:53 pm »
I tried it in Firefox and Safari on my iPod, but I'm seeing only a gray page with a blank box. I wonder if the user needs some plugins?

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1761
    • View Profile
Re: WebGL test
« Reply #2 on: December 14, 2012, 07:38:28 pm »
Works just fine for me in Firefox on my laptop. The Wikipedia page on WebGL says it's supposed to not need plug-ins. I did some searches on WebGL; it looks like on mobile devices, WebGL has to be enabled in the browser settings.
Also, looks like utunnels got the textures working now.
« Last Edit: December 14, 2012, 07:44:38 pm by Vehek »

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: WebGL test
« Reply #3 on: December 14, 2012, 09:28:10 pm »
Yeah, looks like this toy doesn't get along well with some browsers. Plus the model in JSON format is too huge for internet, there must be a way to compress it.

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: WebGL test
« Reply #4 on: December 15, 2012, 11:27:20 am »
A small update with animation.

Bone animation would be too complicated to implement, and it appears three.js doesn't support multi-texture + morphing (or I haven't figure it out yet). *Edit* OK it does, not bad.
« Last Edit: December 15, 2012, 11:33:15 am by utunnels »

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: WebGL test
« Reply #5 on: December 15, 2012, 12:30:07 pm »
Oooh, it worked for me in Chrome! Wow, I have to wonder what utunnels is planning here. Chrono Cross ported to WebGL!?

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: WebGL test
« Reply #6 on: December 15, 2012, 12:54:43 pm »
LOL that'll be a too ambitious goal.

But an online model viewer isn't out of question.

tushantin

  • CC:DBT Dream Team
  • Hero of Time (+5000)
  • *
  • Posts: 5645
  • Under Your Moonlight, Stealing Your Stars
    • View Profile
    • My Website
Re: WebGL test
« Reply #7 on: December 16, 2012, 01:40:36 am »
Just because it's too ambitious doesn't mean it's impossible.  :wink:

WebGL is a sweet little innovation that brings the wonders of 3D to your browser. But just like any other 3D software, it depends on your graphics capabilities -- if it doesn't support OpenGL well enough, then WebGL will be difficult. But it's still entirely possible to have Chrono Cross ported as a Web Application!

Here's an example for a FPS: https://developer.cdn.mozilla.net/media/uploads/demos/a/z/azakai/3baf4ad7e600cbda06ec46efec5ec3b8/bananabread_1348775105_demo_package/game.html?low,low


Note: Not every browser supported will display WebGL on every computer, because as I said some graphics card aren't supported, and hence blacklisted. Even the latest Firefox on my netbook didn't display it, because Firefox blocks it (and for a good reason), and all I saw was a grey box.

To fix this (if only temporarily to view utunnel's toy), on Firefox type "about:config", then search for "WebGL" and double-click "webgl.force-enabled" to make the value "True". But it's always good to revert the changes.

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: WebGL test
« Reply #8 on: December 16, 2012, 07:01:14 am »
Yeah I have tried lots of demos, unfortunately most of them ran too slowly on my pc.
Well it was just an experience. :P Maybe I should spend time on more useful things.

tushantin

  • CC:DBT Dream Team
  • Hero of Time (+5000)
  • *
  • Posts: 5645
  • Under Your Moonlight, Stealing Your Stars
    • View Profile
    • My Website
Re: WebGL test
« Reply #9 on: December 17, 2012, 10:41:44 am »
Well it was just an experience. :P Maybe I should spend time on more useful things.
As far as I've known you, man, there's hardly a thing you do that isn't useful. XD The very experiments on WebGL here will prove an interesting level-up on your aptitude for future developments. Your interests in OpenBOR development and other projects has benefited countless people already, especially here at the Compendium.

If anything, you're probably the most valuable member here!

BFG

  • Porrean (+50)
  • *
  • Posts: 62
    • View Profile
Re: WebGL test
« Reply #10 on: December 21, 2012, 01:31:14 am »
Well, there's another reason to get something besides IE9.  Heck, it doesn't even fully support HTML5 yet.

Schala Zeal

  • Radical Dreamer (+2000)
  • *
  • Posts: 2148
  • 7th Elemental Innate, and vtuber
    • View Profile
Re: WebGL test
« Reply #11 on: January 12, 2013, 07:46:06 am »
Zero percent body fat