How can I compile zigfu to webplayer

516 views
Skip to first unread message

董維誠

unread,
Apr 19, 2013, 3:49:04 AM4/19/13
to unity...@googlegroups.com
Hello! sorry about my poor English first.
I am a student. I want to achieve like the zigfu web sample work. (http://zigfu.com/en/samples/sample/avatarfrontfacing/)
It all okay when the platform was on PC/MAC, but I just switch the platform to webplayer it something wrong. First error was "Depth camera input will not work in editor when target platform is Webplayer. Please change target platform to PC/Mac standalone.
UnityEngine.Debug:LogError(Object)
Zig:Awake() (at Assets/ZigFu/Scripts/Zig.cs:19)". I actually know what it mean, but if I want to work on web what should I do is suitable way. Thanks watching! Any suggestion is appreciated. 

dan8...@gmail.com

unread,
May 2, 2013, 2:52:10 AM5/2/13
to unity...@googlegroups.com
Have the same problem for building zigfu into webplayer!
I tried to build zigfu's sample, but it couldn't work successfully on the browser.
Camera didn't work with showing a black image.
Could you please share your solution if you have found it. thanks a lot

dan8...@gmail.com

unread,
May 2, 2013, 2:59:02 AM5/2/13
to unity...@googlegroups.com
I notice that there is a similar question before.
The solution it found is that the version of OpenNI.Net he use is 1.5.4.0, but ZDK samples use version 1.4.0.2. Then he upgrade OpenNI.Net file in ZigFU assets the program starts successfully.
But I still have a problem is that how can I upgrade OpenNI.Net file in Zigfu?
Can anyone help me? Thanks

Amir Hirsch

unread,
May 2, 2013, 11:16:07 AM5/2/13
to unitykinect
A user found the solution and informed me: the problem with the webplayer compiles is that Unity4 web player compiles include UnityObject2.js instead of UnityObject.js as it was in Unity 3.5 and we are dependent on some of this functionality in the way our browser plugin communicates with the unity object. Changing it back to UnityObject.js is a fine workaround for now and I will push a fix soon.


Amir



--
You received this message because you are subscribed to the Google Groups "unitykinect" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitykinect...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

dan8...@gmail.com

unread,
May 5, 2013, 2:28:36 AM5/5/13
to unity...@googlegroups.com
First, thanks for sharing this solution to me. However, when I changed the source back to UnityObject.js in my html file, the browser couldn't detect the unity web plugin and just show the link which told me that I need to
install unity web player. Did I miss some step in it?

Amir Hirsch於 2013年5月2日星期四UTC+8下午11時16分07秒寫道:

董維誠

unread,
May 5, 2013, 2:59:39 PM5/5/13
to unity...@googlegroups.com
Thanks a lot!! It work fine^^

dan801212

unread,
May 6, 2013, 3:10:49 AM5/6/13
to unity...@googlegroups.com
Did you do something else but changing the source in html file to UnityObject.js?

董維誠於 2013年5月6日星期一UTC+8上午2時59分39秒寫道:

董維誠

unread,
May 6, 2013, 3:56:35 AM5/6/13
to unity...@googlegroups.com
seems no, I just changed the html file and work successfully.


2013/5/6 dan801212 <dan8012...@gmail.com>
Message has been deleted

Fabrizio Fornari

unread,
May 17, 2013, 9:14:28 AM5/17/13
to unity...@googlegroups.com

It doesn't work for me guys. I changed the html from UnityObject2.js to UnityObject.js but I have the same issue of dan801212

 "when I changed the source back to UnityObject.js in my html file, the browser couldn't detect the unity web plugin and just show the link which told me that I need to 
install unity web player."

Are there any ways to overcome this problem?

董維誠

unread,
May 19, 2013, 12:36:33 PM5/19/13
to unity...@googlegroups.com
you can just copy the html from http://zigfu.com/en/samples/sample/blockman3rdperson/ and change the main file path for your project



2013/5/17 Fabrizio Fornari <fornari_...@hotmail.it>
--

Oleksandr Sukhyna

unread,
Oct 8, 2013, 5:59:02 AM10/8/13
to unity...@googlegroups.com
changes in html:

1. UnityObject2.js to UnityObject.js
2. from line 15 change all in block <script type="text/javascript"></script> with:
<!--
function GetUnity() {
if (typeof unityObject != "undefined") {
return unityObject.getObjectById("unityPlayer");
}
return null;
}
if (typeof unityObject != "undefined") {
unityObject.embedUnity("unityPlayer", "your_html_name.unity3d", 800, 450);
}
-->

пятница, 19 апреля 2013 г., 10:49:04 UTC+3 пользователь 董維誠 написал:
Reply all
Reply to author
Forward
0 new messages