Part of the Khronos Group
Results 1 to 2 of 2

Thread: collada and Papervision3D/Flash CS3

  1. #1
    semiplay
    Guest

    collada and Papervision3D/Flash CS3

    I see a lot of examples using Collada exports from Max or Maya. I have Poser and Daz Studio which export Collada, but when I try to import into FLash CS3, I get the following error:

    Error #1009: Cannot access a property or method of a null object reference
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::buildObject()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada:arseGeometry()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada:arseNode()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada:arseScene()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:Collada::buildCollada()
    at org.papervision3d.objects::Collada/org.papervision3d.objects:ColladanComplete()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoadernComplete()



    Does anyone know if the Poser or Daz Collada exports work for Flash CS3 and Papervision3D?

    I am including the export of the poser file below, it's a simple cylinder.

    Thanks!


    ==================================


    <?xml version="1.0"?>
    <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
    <asset>
    <contributor>
    <authoring_tool>Poser 7.0.2.135</authoring_tool>
    </contributor>
    <created>2007-11-18T12:57:50Z</created>
    <modified>2007-11-18T12:57:50Z</modified>
    <unit meter="0.3048" name="feet"/>
    </asset>
    <library_geometries>
    <geometry id="cyl_1">
    <mesh>
    <source id="cyl_1-positions">
    <float_array id="cyl_1-positions-array" count="366">0.130976 0.378875 0.0019279 0.130431 0.386383 -0.00532387 0.130431 0.412782 0.0220093 0.130976 0.405274 0.029261 0.127727 0.393646 -0.0123384 0.127727 0.420045 0.0149948 0.122983 0.400345 -0.018809 0.122983 0.426744 0.00852412 0.116406 0.406189 -0.024453 0.116406 0.432588 0.00288011 0.108283 0.410922 -0.0290237 0.108283 0.437321 -0.00169057 0.0989701 0.414336 -0.0323213 0.0989701 0.440735 -0.00498818 0.0888738 0.416283 -0.0342017 0.0888738 0.442682 -0.0068686 0.0784354 0.416677 -0.0345828 0.0784354 0.443076 -0.00724963 0.068111 0.415502 -0.0334478 0.068111 0.441901 -0.00611463 0.0583519 0.412809 -0.0308463 0.0583519 0.439208 -0.00351321 0.0495846 0.408715 -0.0268922 0.0495846 0.435114 0.000440949 0.0421924 0.403399 -0.0217581 0.0421924 0.429798 0.00557502 0.0364981 0.397094 -0.0156685 0.0364981 0.423493 0.0116646 0.0327508 0.390075 -0.00888949 0.0327508 0.416474 0.0184436 0.0311142 0.382649 -0.00171738 0.0311142 0.409048 0.0256157 0.0316599 0.375141 0.00553439 0.0316599 0.401539 0.0328675 0.0343639 0.367878 0.0125489 0.0343639 0.394277 0.039882 0.0391081 0.361178 0.0190195 0.0391081 0.387577 0.0463527 0.0456852 0.355334 0.0246635 0.0456852 0.381733 0.0519967 0.0538077 0.350602 0.0292342 0.0538077 0.377001 0.0565673 0.0631206 0.347188 0.0325318 0.0631206 0.373587 0.0598649 0.0732169 0.345241 0.0344122 0.0732169 0.37164 0.0617454 0.0836553 0.344846 0.0347933 0.0836554 0.371245 0.0621264 0.0939797 0.346021 0.0336583 0.0939797 0.37242 0.0609914 0.103739 0.348715 0.0310569 0.103739 0.375114 0.05839 0.112506 0.352809 0.0271027 0.112506 0.379208 0.0544358 0.119898 0.358125 0.0219686 0.119898 0.384524 0.0493017 0.125593 0.36443 0.015879 0.125593 0.390829 0.0432121 0.12934 0.371449 0.00910001 0.12934 0.397848 0.0364331 0.130976 0.378875 0.0019279 0.12934 0.371449 0.00910001 0.0810454 0.380762 0.000105262 0.125593 0.36443 0.015879 0.119898 0.358125 0.0219686 0.112506 0.352809 0.0271027 0.103739 0.348715 0.0310569 0.0939797 0.346021 0.0336583 0.0836553 0.344846 0.0347933 0.0732169 0.345241 0.0344122 0.0631206 0.347188 0.0325318 0.0538077 0.350602 0.0292342 0.0456852 0.355334 0.0246635 0.0391081 0.361178 0.0190195 0.0343639 0.367878 0.0125489 0.0316599 0.375141 0.00553439 0.0311142 0.382649 -0.00171738 0.0327508 0.390075 -0.00888949 0.0364981 0.397094 -0.0156685 0.0421924 0.403399 -0.0217581 0.0495846 0.408715 -0.0268922 0.0583519 0.412809 -0.0308463 0.068111 0.415502 -0.0334478 0.0784354 0.416677 -0.0345828 0.0888738 0.416283 -0.0342017 0.0989701 0.414336 -0.0323213 0.108283 0.410922 -0.0290237 0.116406 0.406189 -0.024453 0.122983 0.400345 -0.018809 0.127727 0.393646 -0.0123384 0.130431 0.386383 -0.00532387 0.130976 0.405274 0.029261 0.0810454 0.407161 0.0274384 0.12934 0.397848 0.0364331 0.125593 0.390829 0.0432121 0.119898 0.384524 0.0493017 0.112506 0.379208 0.0544358 0.103739 0.375114 0.05839 0.0939797 0.37242 0.0609914 0.0836554 0.371245 0.0621264 0.0732169 0.37164 0.0617454 0.0631206 0.373587 0.0598649 0.0538077 0.377001 0.0565673 0.0456852 0.381733 0.0519967 0.0391081 0.387577 0.0463527 0.0343639 0.394277 0.039882 0.0316599 0.401539 0.0328675 0.0311142 0.409048 0.0256157 0.0327508 0.416474 0.0184436 0.0364981 0.423493 0.0116646 0.0421924 0.429798 0.00557502 0.0495846 0.435114 0.000440949 0.0583519 0.439208 -0.00351321 0.068111 0.441901 -0.00611463 0.0784354 0.443076 -0.00724963 0.0888738 0.442682 -0.0068686 0.0989701 0.440735 -0.00498818 0.108283 0.437321 -0.00169057 0.116406 0.432588 0.00288011 0.122983 0.426744 0.00852412 0.127727 0.420045 0.0149948 0.130431 0.412782 0.0220093</float_array>
    <technique_common>
    <accessor count="122" source="#cyl_1-positions-array" stride="3">
    <param name="X" type="float"/>
    <param name="Y" type="float"/>
    <param name="Z" type="float"/>
    </accessor>
    </technique_common>
    </source>
    <source id="cyl_1-normals">
    <float_array id="cyl_1-normals-array" count="366">0.998622 -0.0377432 0.0364528 0.98771 0.112425 -0.108583 0.98771 0.112425 -0.108583 0.998622 -0.0377432 0.0364528 0.933629 0.25768 -0.248873 0.933629 0.25768 -0.248873 0.838745 0.391672 -0.378285 0.838745 0.391672 -0.378285 0.707203 0.508547 -0.491166 0.707203 0.508547 -0.491166 0.544753 0.603196 -0.582579 0.544753 0.603196 -0.582579 0.358495 0.671482 -0.648531 0.358495 0.671482 -0.648531 0.156569 0.710421 -0.68614 0.156569 0.710421 -0.68614 -0.0871333 0.716557 -0.692065 -0.0871333 0.716557 -0.692065 -0.258687 0.694809 -0.67106 -0.258687 0.694809 -0.67106 -0.453869 0.640939 -0.619032 -0.453869 0.640939 -0.619032 -0.629214 0.559057 -0.539949 -0.629214 0.559057 -0.539949 -0.77706 0.452742 -0.437267 -0.77706 0.452742 -0.437267 -0.890945 0.32664 -0.315475 -0.890945 0.32664 -0.315475 -0.96589 0.186261 -0.179895 -0.96589 0.186261 -0.179895 -0.998622 0.0377427 -0.0364527 -0.998622 0.0377427 -0.0364527 -0.98771 -0.112425 0.108583 -0.98771 -0.112425 0.108583 -0.933629 -0.25768 0.248872 -0.933629 -0.25768 0.248872 -0.838745 -0.391672 0.378285 -0.838745 -0.391672 0.378285 -0.707203 -0.508547 0.491165 -0.707203 -0.508547 0.491165 -0.544753 -0.603196 0.582579 -0.544753 -0.603196 0.582579 -0.358495 -0.671482 0.648531 -0.358495 -0.671482 0.648531 -0.156569 -0.710422 0.68614 -0.156569 -0.710422 0.686139 0.0522003 -0.718312 0.69376 0.0522003 -0.718312 0.69376 0.258687 -0.694808 0.671061 0.258687 -0.694808 0.671061 0.453868 -0.640939 0.619032 0.453868 -0.640939 0.619032 0.629215 -0.559057 0.539949 0.629215 -0.559057 0.539949 0.77706 -0.452741 0.437267 0.77706 -0.452741 0.437267 0.890945 -0.326639 0.315475 0.890945 -0.326639 0.315475 0.965891 -0.186261 0.179895 0.965891 -0.186261 0.179895 -3.83063e-008 -0.694707 -0.719293 -9.79872e-008 -0.694707 -0.719293 -5.26784e-008 -0.694707 -0.719293 -3.14748e-007 -0.694707 -0.719293 -3.19064e-008 -0.694707 -0.719293 1.83638e-007 -0.694707 -0.719293 -4.108e-007 -0.694707 -0.719293 -2.70653e-007 -0.694708 -0.719292 -1.42101e-008 -0.694708 -0.719292 1.43625e-007 -0.694708 -0.719292 4.77297e-007 -0.694708 -0.719292 4.14804e-007 -0.694707 -0.719293 -1.96548e-007 -0.694707 -0.719293 -2.53179e-007 -0.694707 -0.719293 7.07469e-008 -0.694706 -0.719294 -1.12709e-007 -0.694707 -0.719293 9.29629e-009 -0.694708 -0.719291 -7.66583e-008 -0.694707 -0.719293 8.51027e-008 -0.694707 -0.719293 -2.09799e-007 -0.694708 -0.719292 -3.42598e-007 -0.694707 -0.719293 -2.86145e-007 -0.694707 -0.719293 -3.27288e-007 -0.694708 -0.719292 -1.79632e-007 -0.694708 -0.719292 5.7776e-008 -0.694708 -0.719292 3.45149e-007 -0.694708 -0.719292 3.82888e-007 -0.694708 -0.719292 -1.34017e-007 -0.694707 -0.719293 -2.78155e-007 -0.694707 -0.719292 -1.54543e-009 -0.694707 -0.719293 -1.73791e-007 -0.694706 -0.719294 9.09129e-008 0.694706 0.719294 1.44694e-008 0.694707 0.719292 1.11985e-007 0.694707 0.719293 3.07076e-007 0.694707 0.719293 8.06128e-008 0.694706 0.719293 -1.04241e-007 0.694707 0.719293 2.27602e-007 0.694708 0.719292 1.45355e-007 0.694708 0.719292 -9.71054e-007 0.694708 0.719292 -2.79619e-007 0.694707 0.719293 5.6279e-007 0.694707 0.719293 -2.13344e-007 0.694707 0.719293 -3.08034e-007 0.694707 0.719293 2.93629e-008 0.694706 0.719293 2.99919e-007 0.694706 0.719294 9.1365e-008 0.694708 0.719292 -1.13638e-008 0.694709 0.719291 7.46219e-008 0.694708 0.719292 3.66757e-007 0.694708 0.719292 -1.69567e-007 0.694707 0.719293 -5.21632e-007 0.694707 0.719293 3.1821e-007 0.694707 0.719293 3.38472e-007 0.694708 0.719292 2.73766e-008 0.694708 0.719292 1.68759e-008 0.694708 0.719292 -2.18874e-007 0.694708 0.719292 -4.08068e-007 0.694707 0.719293 1.69674e-007 0.694707 0.719293 2.83197e-007 0.694708 0.719292 -5.12684e-008 0.694708 0.719291 1.48981e-007 0.694708 0.719292</float_array>
    <technique_common>
    <accessor count="122" source="#cyl_1-normals-array" stride="3">
    <param name="X" type="float"/>
    <param name="Y" type="float"/>
    <param name="Z" type="float"/>
    </accessor>
    </technique_common>
    </source>
    <source id="cyl_1-uvs">
    <float_array id="cyl_1-uvs-array" count="246">0 0.5 0 0.5 0.0109262 0.396044 0.0109262 0.603956 0.0109262 0.396044 0.0109262 0.603956 0.0166666 2.1736e-008 0.0166667 1 0.0432273 0.296632 0.0432273 0.703368 0.0432273 0.296632 0.0432273 0.703368 0.05 1 0.05 2.0786e-008 0.0833333 1 0.0833333 1.89276e-008 0.0954915 0.206107 0.0954915 0.793893 0.0954915 0.206107 0.0954915 0.793893 0.116667 1.62419e-008 0.116667 1 0.15 1.28465e-008 0.15 1 0.165435 0.871572 0.165435 0.128428 0.165435 0.128428 0.165435 0.871572 0.183333 8.88951e-009 0.183333 1 0.216667 4.54406e-009 0.216667 1 0.25 0.933013 0.25 1.91069e-015 0.25 1 0.25 0.0669873 0.25 0.0669873 0.25 0.933013 0.283333 -4.54405e-009 0.283333 1 0.316667 -8.88951e-009 0.316667 1 0.345491 0.0244718 0.345491 0.0244718 0.345491 0.975528 0.345491 0.975528 0.35 -1.28465e-008 0.35 1 0.383333 -1.62419e-008 0.383333 1 0.416667 -1.89276e-008 0.416667 1 0.447736 0.997261 0.447736 0.997261 0.447736 0.00273904 0.447736 0.0027391 0.45 -2.0786e-008 0.45 1 0.483333 -2.1736e-008 0.483333 1 0.5 0.5 0.516667 -2.1736e-008 0.516667 1 0.55 -2.0786e-008 0.55 1 0.552264 0.00273907 0.552264 0.997261 0.552264 0.997261 0.552264 0.00273913 0.583333 -1.89276e-008 0.583333 1 0.616667 2.98023e-008 0.616667 1 0.65 0 0.65 1 0.654508 0.0244718 0.654508 0.975528 0.654508 0.975528 0.654509 0.0244718 0.683333 0 0.683333 1 0.716667 -4.54405e-009 0.716667 1 0.75 0.0669873 0.75 0.0669873 0.75 0 0.75 0.933013 0.75 0.933013 0.75 1 0.783333 4.54406e-009 0.783333 1 0.816667 0 0.816667 1 0.834565 0.128428 0.834565 0.871572 0.834565 0.128428 0.834565 0.871572 0.85 0 0.85 1 0.883333 0 0.883333 1 0.904508 0.206107 0.904508 0.793893 0.904509 0.206108 0.904509 0.793893 0.916667 1.89276e-008 0.916667 1 0.95 0 0.95 1 0.956773 0.296632 0.956773 0.703368 0.956773 0.296632 0.956773 0.703368 0.983333 0 0.983333 1 0.989074 0.396044 0.989074 0.603956 0.989074 0.396044 0.989074 0.603956 1 0.5 1 0.5 1.01667 2.1736e-008 1.01667 1</float_array>
    <technique_common>
    <accessor count="123" source="#cyl_1-uvs-array" stride="2">
    <param name="S" type="float"/>
    <param name="T" type="float"/>
    </accessor>
    </technique_common>
    </source>
    <vertices id="cyl_1-vertices">
    <input semantic="POSITION" source="#cyl_1-positions"/>
    </vertices>
    <polylist count="90" material="pzr_material_Preview">
    <input offset="0" semantic="VERTEX" source="#cyl_1-vertices"/>
    <input offset="1" semantic="NORMAL" source="#cyl_1-normals"/>
    <input offset="2" semantic="TEXCOORD" source="#cyl_1-uvs" set="0"/>
    <vcount>4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</vcount>


    0 0 85 1 1 89 2 2 90 3 3 88 1 1 89 4 4 91 5 5 92 2 2 90 4 4 91 6 6 97 7 7 98 5 5 92 6 6 97 8 8 99 9 9 100 7 7 98 8 8 99 10 10 105 11 11 106 9 9 100 10 10 105 12 12 107 13 13 108 11 11 106 12 12 107 14 14 113 15 15 114 13 13 108 14 14 113 16 16 121 17 17 122 15 15 114 16 16 6 18 18 13 19 19 12 17 17 7 18 18 13 20 20 15 21 21 14 19 19 12 20 20 15 22 22 20 23 23 21 21 21 14 22 22 20 24 24 22 25 25 23 23 23 21 24 24 22 26 26 28 27 27 29 25 25 23 26 26 28 28 28 30 29 29 31 27 27 29 28 28 30 30 30 33 31 31 34 29 29 31 30 30 33 32 32 38 33 33 39 31 31 34 32 32 38 34 34 40 35 35 41 33 33 39 34 34 40 36 36 46 37 37 47 35 35 41 36 36 46 38 38 48 39 39 49 37 37 47 38 38 48 40 40 50 41 41 51 39 39 49 40 40 50 42 42 56 43 43 57 41 41 51 42 42 56 44 44 58 45 45 59 43 43 57 44 44 58 46 46 61 47 47 62 45 45 59 46 46 61 48 48 63 49 49 64 47 47 62 48 48 63 50 50 69 51 51 70 49 49 64 50 50 69 52 52 71 53 53 72 51 51 70 52 52 71 54 54 73 55 55 74 53 53 72 54 54 73 56 56 79 57 57 80 55 55 74 56 56 79 58 58 81 59 59 82 57 57 80 0 0 85 3 3 88 59 59 82 58 58 81 60 60 119 61 61 118 62 62 60 63 63 112 62 62 60 61 61 118 64 64 104 62 62 60 63 63 112 65 65 96 62 62 60 64 64 104 66 66 86 62 62 60 65 65 96 67 67 76 62 62 60 66 66 86 68 68 66 62 62 60 67 67 76 69 69 52 62 62 60 68 68 66 70 70 44 62 62 60 69 69 52 71 71 32 62 62 60 70 70 44 72 72 24 62 62 60 71 71 32 73 73 17 62 62 60 72 72 24 74 74 9 62 62 60 73 73 17 75 75 3 62 62 60 74 74 9 76 76 0 62 62 60 75 75 3 77 77 4 62 62 60 76 76 0 78 78 10 62 62 60 77 77 4 79 79 18 62 62 60 78 78 10 80 80 25 62 62 60 79 79 18 81 81 35 62 62 60 80 80 25 82 82 42 62 62 60 81 81 35 83 83 54 62 62 60 82 82 42 84 84 65 62 62 60 83 83 54 85 85 75 62 62 60 84 84 65 86 86 83 62 62 60 85 85 75 87 87 93 62 62 60 86 86 83 88 88 101 62 62 60 87 87 93 89 89 109 62 62 60 88 88 101 90 90 115 62 62 60 89 89 109 60 60 119 62 62 60 90 90 115 91 91 120 92 92 60 93 93 117 94 94 111 93 93 117 92 92 60 95 95 103 94 94 111 92 92 60 96 96 95 95 95 103 92 92 60 97 97 84 96 96 95 92 92 60 98 98 78 97 97 84 92 92 60 99 99 68 98 98 78 92 92 60 100 100 55 99 99 68 92 92 60 101 101 43 100 100 55 92 92 60 102 102 36 101 101 43 92 92 60 103 103 26 102 102 36 92 92 60 104 104 16 103 103 26 92 92 60 105 105 8 104 104 16 92 92 60 106 106 2 105 105 8 92 92 60 107 107 1 106 106 2 92 92 60 108 108 5 107 107 1 92 92 60 109 109 11 108 108 5 92 92 60 110 110 19 109 109 11 92 92 60 111 111 27 110 110 19 92 92 60 112 112 37 111 111 27 92 92 60 113 113 45 112 112 37 92 92 60 114 114 53 113 113 45 92 92 60 115 115 67 114 114 53 92 92 60 116 116 77 115 115 67 92 92 60 117 117 87 116 116 77 92 92 60 118 118 94 117 117 87 92 92 60 119 119 102 118 118 94 92 92 60 120 120 110 119 119 102 92 92 60 121 121 116 120 120 110 92 92 60 121 121 116 92 92 60 91 91 120</p>
    </polylist>
    </mesh>
    </geometry>
    </library_geometries>
    <library_effects>
    <effect id="pzr-fx_Preview">
    <profile_COMMON>
    <newparam sid="pzr-surface_Preview">
    <surface type="2D">
    <init_from>image-Fine_Cut_Natural2</init_from>
    </surface>
    </newparam>
    <newparam sid="pzr-sampler_Preview">
    <sampler2D>
    <source>pzr-surface_Preview</source>
    </sampler2D>
    </newparam>
    <technique sid="pzr-technique_Preview">
    <phong>
    <emission>
    <color>0 0 0 1</color>
    </emission>
    <ambient>
    <color>0 0 0 1</color>
    </ambient>
    <diffuse>
    <texture texture="pzr-sampler_Preview" texcoord="UVSET0"/>
    </diffuse>
    <specular>
    <color>1 1 1 1</color>
    </specular>
    </phong>
    </technique>
    </profile_COMMON>
    </effect>
    </library_effects>
    <library_materials>
    <material id="pzr_material_Preview">
    <instance_effect url="#pzr-fx_Preview"/>
    </material>
    </library_materials>
    <library_images>
    <image id="image-Fine_Cut_Natural2">
    <init_from>./Fine_Cut_Natural2.png</init_from>
    </image>
    </library_images>
    <library_visual_scenes>
    <visual_scene id="can">
    <node id="can_node">
    <instance_geometry url="#cyl_1">
    <bind_material>
    <technique_common>
    <instance_material symbol="pzr_material_Preview" target="#pzr_material_Preview"/>
    </technique_common>
    </bind_material>
    </instance_geometry>
    </node>
    </visual_scene>
    </library_visual_scenes>
    <scene>
    <instance_visual_scene url="#can"/>
    </scene>
    </COLLADA>

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    358
    I am not sure a lot of Papervision coders are reading this forum.
    You should cross post this to the forum or/and mailing list on the papervision web site http://blog.papervision3d.org/

Similar Threads

  1. Collada with Papervision3D
    By sembelekete in forum Implementation Discussions
    Replies: 0
    Last Post: 07-03-2012, 09:42 AM
  2. import Collada in Flash CS3
    By flecherouge in forum Implementation Discussions
    Replies: 2
    Last Post: 02-19-2008, 10:59 AM
  3. Collada, 3ds max and Flash
    By moon21 in forum Implementation Discussions
    Replies: 2
    Last Post: 04-17-2007, 06:27 PM
  4. Photoshop CS3 extended has COLLADA support
    By remi in forum Announcements
    Replies: 0
    Last Post: 03-28-2007, 02:17 AM
  5. COLLADA Flash viewer in preparation ?
    By remi in forum Contributions
    Replies: 0
    Last Post: 12-14-2006, 12:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •