Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

J3D - webgl engine + Unity3D exporter

Discussion in 'General Discussion' started by bartekd, Jul 9, 2011.

  1. bartekd

    bartekd

    Joined:
    May 26, 2009
    Posts:
    24
    Hi everyone,

    I want to share a small lib I started to work on recently. Basically it's composed of a webgl engine/wrapper in JS and an exporter from Unity3D. It not only exports geometry and textures but can export whole scenes. Here's an example:

    http://www.everyday3d.com/j3d/demo/008_Lightmap.html

    and more examples as well as link to the source code (on github) is here:

    http://www.everyday3d.com/j3d/

    The project lacks proper documentation but the source code in some demos is commented with some explanations on how to use it. Looking forward for your feedback and ideas. Also, maybe someone wish to contribute? (This would be awesome!)

    Thanks
    Bartek
     
  2. Andrea-Monzini

    Andrea-Monzini

    Joined:
    Oct 9, 2008
    Posts:
    448
    Incredible! i'm very interested and i would like to contribute.

    I will test J3d Unity exporter !

    Andrea
     
    Last edited: Jul 10, 2011
  3. Unified

    Unified

    Guest

    Joined:
    Mar 25, 2009
    Posts:
    236
    nice!..

    Make me wish Unity's web player had the option to take up the full browser window like WebGL, as 3D environments seem trivial and pointless inside a little window.
     
  4. bartekd

    bartekd

    Joined:
    May 26, 2009
    Posts:
    24
  5. Unified

    Unified

    Guest

    Joined:
    Mar 25, 2009
    Posts:
    236
    oh yeah, I've seen it done before. But I was thinking more along the lines of an option in Unity rather than a html hack.
     
  6. theflashguy

    theflashguy

    Joined:
    Apr 11, 2010
    Posts:
    5
    Great work!

    Is there a project / tutorial for recreating this in Unity?
     
  7. joaopaulo

    joaopaulo

    Joined:
    Sep 30, 2011
    Posts:
    8
    I can't visualize your demo. All I get is a black screen. What could be happening?
     
  8. MooseMouse

    MooseMouse

    Joined:
    Sep 14, 2011
    Posts:
    500
    Very cool! Headlamp did not work for me in Google Chrome. But it did work in Firefox. (Windows 7 x64)


    EDIT: Ooops did not realize how old this thread was.
     
    Last edited: Mar 15, 2012
  9. Ekta Mehta D.

    Ekta Mehta D.

    Joined:
    Feb 25, 2013
    Posts:
    19
    hey.. this github demo is not working.
     
  10. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    10,218
    This thread is over four years old. I'm shocked that those links actually go somewhere other than 404.
     
    Kiwasi likes this.
  11. Ekta Mehta D.

    Ekta Mehta D.

    Joined:
    Feb 25, 2013
    Posts:
    19
    Do you have any other working demo link ?
     
  12. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,475
    Unity has WebGL support now so probably all old/hacky projects are dead
     
  13. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    10,218
    No, but I have found the Github for the exporter. It seems like it may have had potential at one time but the project's readme indicates it barely made any real progress and the commit history seems to indicate it has been dead for some time now.

    https://github.com/drojdjou/J3D

    It may have some limited use as a starting point for a JSON exporter, but I can't help but feel like it is a complete waste of time for WebGL as Unity now has their own solution for that.
     
  14. Ekta Mehta D.

    Ekta Mehta D.

    Joined:
    Feb 25, 2013
    Posts:
    19
    Ok but WebGL is not supporting all browser. And i want unity to work without webplayer in browser. Do you have any idea related to it ? Any other plugin which can help me out .
     
  15. Ekta Mehta D.

    Ekta Mehta D.

    Joined:
    Feb 25, 2013
    Posts:
    19
    Ok. Thanks.
     
  16. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    10,218
    According to Khronos the five major browsers - Chrome, Firefox, Internet Explorer, Opera and Safari - all have good support for WebGL.

    https://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation

    According to the W3's browser statistics, the number of users not on those browsers is less than 2%.

    http://www.w3schools.com/browsers/browsers_stats.asp

    No. Unless you want to find a new engine. The only solution I am aware of is Unity's official exporter.
     
  17. Ekta Mehta D.

    Ekta Mehta D.

    Joined:
    Feb 25, 2013
    Posts:
    19
    Hii have a look at this : http://forum.unity3d.com/threads/build-unity-3d-for-html-5-without-plugin.348320/
     
  18. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    351
    The issue is Unity WebGL is still in preview state and I guess WebPlayer will remain the best way of providing 3d quality content from Unity for the web for a quite long time.
    That is why the people look for alternative ways for publishing to WebGL. J3D doesn't seem alive but there are others like sketchfab. I made a small comparison demo, which is a number of scenes published to webplayer, webgl player and sketchfab from Unity:
    http://virtualplayground.d2.pl/WebGL/st15/galleries/comparison.php
    Most will not even have enough patience to wait until webgl player loads, while the rest loads fast.
     
    Ryiah likes this.
  19. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    10,218
    Only if you don't mind having to force your browser to use plugins. This most likely won't be feasible for games but other audiences should at least be capable of following the instructions to enable plugins on their machines.
     
  20. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    351
    When I publish in both WebPlayer and WebGL - then for those who do mind - I have on offer WebGL, long waiting time and worse performance.
    But let's hope it will be getting better.