Were getting closer, though I am sure its not the Python version at least not on Ubuntu. Attached the console output (from the Ubuntu machine): seems only Jansen.osg could be exported (there is an .osg file and it loads) - the others had the same issue. Btw. the export took ages (as in ~10 min) - on a Quad 2.4 GHz machine. The .log file for Jansen.osg is filled all other .log are empty.

Cheers,
Hartmut


On 21/5/09 4:58 AM, Cedric Pinson wrote:
Hi,
It makes sense now, your python version used with blender is too old.
I dont know about macos soft, but could you check if you can use an up
to date version of python ?

Cheers,
Cedric


On Wed, 2009-05-20 at 18:53 +0200, Rafa Gaitan wrote:
Hi Cedric,

I'm getting also problems with the osgexport, here is my output

[  0%] /Users/rgaitan/Projects/OSG/osgexport/data/robot/robot.blend
guessing 'blender' ==
'/Users/rgaitan/Applications/blender.app/Contents/MacOS/blender'
Compiled with Python version 2.3.5.
Checking for installed Python... got it!
Traceback (most recent call last):
   File "osgExport.py", line 35, in ?
     import osg
   File "./osg/__init__.py", line 1, in ?
     import osgconf
   File "./osg/osgconf.py", line 25, in ?
     import osgobject
   File "./osg/osgobject.py", line 31
     CONCAT    = lambda s, j="": j.join(str(v) for v in s)
                                                 ^
SyntaxError: invalid syntax

Error executing Python script from command-line:
osgExport.py (at line 31).

Blender quit
....

For the rest of the models is the same error.

Rafa.


On Tue, May 19, 2009 at 12:27 PM, Cedric Pinson
<[email protected]>  wrote:
Hi,

Humm very strange, ok try this:
- hg clone http://hg.plopbyte.net/osgexport/
- cd osgexport
- mkdir build
- cd build
- cmake ../
- make
it should say something in the console while exporting
Can you report the content of the console output ?

It works on my ubuntu 9.04 here

Cheers,
Cedric

On Tue, 2009-05-19 at 10:07 +1200, Hartmut Seichter wrote:
Thanks, Cedric - I just checked out latest revision. Same result ...

On a fresh Ubuntu 9.04 with blender 2.48.1

- install into ~/.blender/scripts (the readme says ~/.blender - this
however does not work at all)
- open blender with default layout and template (including the unit
box)
- File>  Export>  OpenSceneGraph (.osg)
- Leave everything as default
- Press "Write" button
- Name file "Test.osg" (directory is $HOME)
- Press "Export AnimTK" button
- No error message (btw. on Mac OSX I get a message about checking on
the console which is futile because no error messages are logged)
- Check if Test.osg exists ... no - however Test.log exists with 0byte

- I tested to add a simple translation animation - also no avail

Disclaimer - I poke more or less in the dark with blender however I
would suspect the exporter can handle a single box - or is the
exporter only capable to export rigged animations, which would raise
the question how this exporter can work in conjuntion with the
existing osg exporter.


Cheers,
Hartmut


On 19/5/09 1:14 AM, Cedric Pinson wrote:
Hi Harmut,
I just updated the osgexport repository with some bug fixes if you use
this exporter maybe it could help, else i will need a blender file to
debug it.

Cheers,
Cedric

On Mon, 2009-05-18 at 11:36 +0200, Cedric Pinson wrote:

Hi Hartmut,

Can you give more information about the exporter you are using ?
i take care of the version on this page
http://www.openscenegraph.org/projects/osg/wiki/Community/NodeKits/osgAnimation

If you have problem with it, could you report the blender file and step
that result in a empty osg file, without that i can't really help

Cheers,
Cedric

On Mon, 2009-05-18 at 18:05 +1200, Hartmut Seichter wrote:

Hi there,

I am having a hard time to get the osgexport doing "anything" - is there
a known-to-work revision? Right now with the latest rev I get the GUI
but after "Write File" an empty Filename.log file - so kind of hard to
debug.

Cheers,
Hartmut


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


__________________________________________________________________

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ
--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[email protected]
http://www.plopbyte.net


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ

hart...@hitl1q47w:~/Development/Scripts/osgexport$ hg pull
pulling from http://hg.plopbyte.net/osgexport
searching for changes
no changes found
hart...@hitl1q47w:~/Development/Scripts/osgexport$ mkdir build
hart...@hitl1q47w:~/Development/Scripts/osgexport$ cd build/
hart...@hitl1q47w:~/Development/Scripts/osgexport/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/hartmut/Development/Scripts/osgexport/build
hart...@hitl1q47w:~/Development/Scripts/osgexport/build$ make
Scanning dependencies of target robot
[  0%] /home/hartmut/Development/Scripts/osgexport/data/robot/robot.blend
Compiled with Python version 2.6.2.
Checking for installed Python... got it!
OpenScenGraph Option [ FILENAME ] = 
/home/hartmut/Development/Scripts/osgexport/build/data/robot/robot
OpenScenGraph Option [ RELATIVE_PATH ] = True
{'RELATIVE_PATH': True, 'FILENAME': 
'/home/hartmut/Development/Scripts/osgexport/build/data/robot/robot'}
.................... robot
osg: processing Armature Armature
osg: exporting mesh Cube
osg: mesh Cube with material [Material "Material"]
osg: vertexes reduced from 1440 to 360
osg: faces 390
osg: vertex groups 15
Traceback (most recent call last):
  File "osgExport.py", line 60, in <module>
    AnimTKExport(config)
  File "osgExport.py", line 51, in AnimTKExport
    export.process()
  File "./osg/osgdata.py", line 752, in process
    self.exportItemAndChildren(obj)
  File "./osg/osgdata.py", line 549, in exportItemAndChildren
    item = self.exportChildrenRecursively(obj, None, None)
  File "./osg/osgdata.py", line 647, in exportChildrenRecursively
    self.exportChildrenRecursively(child, item, rootItem)
  File "./osg/osgdata.py", line 594, in exportChildrenRecursively
    objectItem = self.createMesh(obj)
  File "./osg/osgdata.py", line 842, in createMesh
    geometries = converter.convert()
  File "./osg/osgdata.py", line 1283, in convert
    list = self.process(self.mesh)
  File "./osg/osgdata.py", line 1273, in process
    geom = self.createGeomForMaterialIndex(material_index, mesh)
  File "./osg/osgdata.py", line 1258, in createGeomForMaterialIndex
    geom.stateset = self.createStateSet(material_index, mesh, geom)
  File "./osg/osgdata.py", line 948, in createStateSet
    t = self.createTexture2D(texture_list[i])
  File "./osg/osgdata.py", line 897, in createTexture2D
    log("Warning the texture % has not Image, skip it" % mtex.tex.getName())
ValueError: unsupported format character 'a' (0x61) at index 23

Error executing Python script from command-line:
osgExport.py (at line 51).

Blender quit
[ 20%] Built target robot
Scanning dependencies of target example
[ 20%] build data from 
/home/hartmut/Development/Scripts/osgexport/data/example/example.blend
Compiled with Python version 2.6.2.
Checking for installed Python... got it!
OpenScenGraph Option [ FILENAME ] = 
/home/hartmut/Development/Scripts/osgexport/build/data/example/example
OpenScenGraph Option [ RELATIVE_PATH ] = True
{'RELATIVE_PATH': True, 'FILENAME': 
'/home/hartmut/Development/Scripts/osgexport/build/data/example/example'}
.................... example
osg: processing Armature Armature
osg: exporting mesh Cube
osg: mesh Cube without material
osg: vertexes reduced from 54 to 12
osg: faces 18
osg: vertex groups 3
result uvs  []
osg: --------------------------
osg: write file to 
/home/hartmut/Development/Scripts/osgexport/build/data/example/example.osg
osg: Check log file 
/home/hartmut/Development/Scripts/osgexport/build/data/example/example.log

Blender quit
[ 40%] Built target example
Scanning dependencies of target Jansens
[ 40%] build data from 
/home/hartmut/Development/Scripts/osgexport/data/walker/Jansens.blend
Compiled with Python version 2.6.2.
Checking for installed Python... got it!
OpenScenGraph Option [ FILENAME ] = 
/home/hartmut/Development/Scripts/osgexport/build/data/walker/Jansens
OpenScenGraph Option [ RELATIVE_PATH ] = True
{'RELATIVE_PATH': True, 'FILENAME': 
'/home/hartmut/Development/Scripts/osgexport/build/data/walker/Jansens'}
.................... Jansens
osg: exporting mesh Plane
osg: mesh Plane with material [Material "Material"]
osg: vertexes 4
osg: faces 1
result uvs  []
osg: ----------------------------------------------
osg: WARNING Camera Camera not exported
osg: processing Armature Arm
osg: exporting mesh Cube.002
osg: mesh Cube.002 with material [Material "Material"]
osg: vertexes 20480
osg: faces 5120
osg: vertex groups 4
result uvs  []
osg: -------------------------------------------------
osg: write file to 
/home/hartmut/Development/Scripts/osgexport/build/data/walker/Jansens.osg
osg: Check log file 
/home/hartmut/Development/Scripts/osgexport/build/data/walker/Jansens.log

Blender quit
[ 60%] Built target Jansens
Scanning dependencies of target avatar
[ 60%] build data from 
/home/hartmut/Development/Scripts/osgexport/data/avatar/avatar.blend
Compiled with Python version 2.6.2.
Checking for installed Python... got it!
OpenScenGraph Option [ FILENAME ] = 
/home/hartmut/Development/Scripts/osgexport/build/data/avatar/avatar
OpenScenGraph Option [ RELATIVE_PATH ] = True
{'RELATIVE_PATH': True, 'FILENAME': 
'/home/hartmut/Development/Scripts/osgexport/build/data/avatar/avatar'}
.................... avatar
osg: processing Armature Armature
^C
Sent an internal break event. Press ^C again to kill Blender
osg: exporting mesh tube
osg: mesh tube with material [Material "skin"]
osg: vertexes 48
osg: faces 12
osg: uvs channels 1
result uvs  []
osg: -----------------------------------------
osg: exporting mesh leg_l
osg: mesh leg_l with material [Material "dark_grey"]
osg: vertexes reduced from 408 to 133
osg: faces 108
osg: vertex groups 4
osg: uvs channels 1
result uvs  [0]
osg: -----------------------------------------------
osg: exporting mesh torso
osg: mesh torso with material [Material "red"]
osg: vertexes reduced from 648 to 597
osg: faces 168
osg: vertex groups 8
osg: uvs channels 2
result uvs  [0]
osg: -----------------------------------------
osg: exporting mesh leg_r
osg: mesh leg_r with material [Material "dark_grey"]
osg: vertexes reduced from 408 to 332
osg: faces 108
osg: vertex groups 8
osg: uvs channels 1
result uvs  [0]
osg: -----------------------------------------------
osg: exporting mesh head
osg: mesh head with material [Material "skin"]
osg: vertexes reduced from 2118 to 545
osg: faces 531
osg: vertex groups 1
result uvs  []
osg: -----------------------------------------
osg: exporting mesh brow.r
osg: mesh brow.r with material [Material "brow.l"]
osg: vertexes reduced from 48 to 21
osg: faces 12
osg: uvs channels 1
result uvs  [0]
osg: ---------------------------------------------
osg: exporting mesh nose
osg: mesh nose with material [Material "nose.001"]
osg: vertexes reduced from 56 to 23
osg: faces 14
osg: uvs channels 1
result uvs  [0]
osg: ---------------------------------------------
osg: mesh nose with material [Material "skin"]
osg: vertexes reduced from 36 to 25
osg: faces 11
osg: uvs channels 1
result uvs  []
osg: -----------------------------------------
osg: exporting mesh mouth.001
osg: mesh mouth.001 with material [Material "Material.001"]
osg: vertexes reduced from 72 to 28
osg: faces 18
osg: uvs channels 1
result uvs  [0]
osg: ------------------------------------------------------
osg: exporting mesh eye.r
osg: mesh eye.r with material [Material "eye.l"]
osg: vertexes reduced from 60 to 24
osg: faces 15
osg: uvs channels 1
result uvs  [0]
osg: -------------------------------------------
osg: exporting mesh brow.l
osg: mesh brow.l with material [Material "brow.l"]
osg: vertexes reduced from 48 to 21
osg: faces 12
osg: uvs channels 1
result uvs  [0]
osg: ---------------------------------------------
osg: exporting mesh hair
osg: mesh hair with material [Material "Material.002"]
osg: vertexes reduced from 702 to 183
osg: faces 182
result uvs  []
osg: -------------------------------------------------
osg: exporting mesh eye.l
osg: mesh eye.l with material [Material "eye.l"]
osg: vertexes reduced from 60 to 24
osg: faces 15
osg: uvs channels 1
result uvs  [0]
osg: -------------------------------------------
osg: exporting mesh arm_r
osg: mesh arm_r with material [Material "red"]
osg: vertexes reduced from 420 to 363
osg: faces 108
osg: vertex groups 8
osg: uvs channels 1
Traceback (most recent call last):
  File "osgExport.py", line 60, in <module>
    AnimTKExport(config)
  File "osgExport.py", line 51, in AnimTKExport
    export.process()
  File "./osg/osgdata.py", line 752, in process
    self.exportItemAndChildren(obj)
  File "./osg/osgdata.py", line 549, in exportItemAndChildren
    item = self.exportChildrenRecursively(obj, None, None)
  File "./osg/osgdata.py", line 647, in exportChildrenRecursively
    self.exportChildrenRecursively(child, item, rootItem)
  File "./osg/osgdata.py", line 594, in exportChildrenRecursively
    objectItem = self.createMesh(obj)
  File "./osg/osgdata.py", line 842, in createMesh
    geometries = converter.convert()
  File "./osg/osgdata.py", line 1283, in convert
    list = self.process(self.mesh)
  File "./osg/osgdata.py", line 1273, in process
    geom = self.createGeomForMaterialIndex(material_index, mesh)
  File "./osg/osgdata.py", line 1258, in createGeomForMaterialIndex
    geom.stateset = self.createStateSet(material_index, mesh, geom)
  File "./osg/osgdata.py", line 957, in createStateSet
    geom.uvs[i].array = uvs[uv_layer].array
KeyError: 'UVRed'

Error executing Python script from command-line:
osgExport.py (at line 51).
Error Totblock: 2
CDMTFace len: 5184 0x27ceb00
CustomData->layers len: 320 0x27be670

Blender quit
make[2]: *** [data/avatar/avatar.osg] Interrupt
make[1]: *** [data/avatar/CMakeFiles/avatar.dir/all] Interrupt
make: *** [all] Interrupt


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to