scenejs-pycollada not generating .JS file

51 views
Skip to first unread message

LML

unread,
Oct 24, 2012, 5:45:18 PM10/24/12
to sce...@googlegroups.com
Hi,

I've downloaded and set up scenejs-pycollada on my computer. When I run the examples that are included with the github project, I get the following errors:

-----------------------------------------------
Exporting scene 'Scene'...
Traceback (most recent call last):
  File "./scenejs-pycollada.py", line 169, in <module>
    main(sys.argv[1:])
  File "./scenejs-pycollada.py", line 135, in main
    translate(serializer, collada_obj, { 'libraries_only': libraries_only }, debug, verbose)
  File "C:\Users\menglin\Documents\ECE480\ECLIPSE\pycollada\translator.py", line 51, in translate
    jsscene = translate_scene(scene)
  File "C:\Users\menglin\Documents\ECE480\ECLIPSE\pycollada\translator.py", line 512, in translate_scene
    jscamera = translate_camera(cam) 
  File "C:\Users\menglin\Documents\ECE480\ECLIPSE\pycollada\translator.py", line 495, in translate_camera
    'fovy': float(camera.yfov),
TypeError: float() argument must be a string or a number

--------------------------------------------------
 
I have created my own Collada file, using sketchup, and when I try to convert it seems to work, but ends with the status:

Exporting geometry 'ID2665'...
Exporting geometry 'ID2669'...
Exporting geometry 'ID2673'...
Exporting scene 'ID1'...
No camera found in the scene 'ID1' generating the default one.

It does not create a .JS file, nor does it create an embed html document, although I've set the feature to true.

Can someone please help me. I have included the collada file that I'm using to this post as well.

Thank you

LML

unread,
Oct 24, 2012, 5:47:37 PM10/24/12
to sce...@googlegroups.com
I forgot to include the .dae file
newmoo5.zip

童杰

unread,
Oct 25, 2012, 10:59:49 AM10/25/12
to sce...@googlegroups.com
Hi,
For the first problem below, there is my answer at the "https://github.com/xeolabs/scenejs-pycollada/issues/13". I corrected the problem by my way.

For the second problem below, are you sure there is a camera node in your own  Collada file?  I try to look for it, and I did not find it in your own  Collada file indeed. and then I converted your  Collada  file, and got a js file successfully. You may set a camera node by Sketchup in the scene.

Good luck Jack!

LML

unread,
Oct 27, 2012, 1:07:29 PM10/27/12
to sce...@googlegroups.com
Hi,
 
Really appreciate your help, I have got the JS file from the collada file successfully. However, I have no idea why it doesn't show the 3D module in index.html file, when I opened it it is blank inside both for the sample urban and my JS file. Do you have any ideas with it? Thanks! I have attached my JS file and index.html file I got.
index.zip
newmoo5.zip
Reply all
Reply to author
Forward
0 new messages