Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Collada to AN8 Converter (For converting Google's 3d model)  (Read 11172 times)

animtime

  • Newbie
  • *
  • Posts: 12
    • View Profile
Collada to AN8 Converter (For converting Google's 3d model)
« on: December 19, 2009, 05:49:54 am »

Hello all
longtime no coming here since last year :D

Today I would like to introduce a new software that I have just created.

It is a Collada Converter
You can use this tool to convert Google's 3d model into Anim8or.

Google Sketchup allows its model to be exported to Collada format only.
Finding 3d model that can read Collada is very hard.
Therefore I'm interested to create one for my self.

How this tool works:
Convert your model from Sketchup into Collada
Use this tool to convert Collada into An8

Work only for Sketchup 7

Google really protects their model, so they don't give specification
for their format. and They don't like if anyone create a converter for their models. That's why this tool will work only for Sketchup 7 because every version of Sketchup has different format specification.

Download here:
http://www.4shared.com/file/175879779/8bcabbfc/soft_collada.html

Logged

Pincho

  • Full Member
  • ***
  • Posts: 165
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #1 on: December 19, 2009, 02:13:49 pm »

Well Sketchup can export 3DS, so you could import into Anim8or. But I have not heard good things about sketchup's 3DS export so good work.
« Last Edit: December 19, 2009, 02:16:24 pm by Pincho »
Logged

texel

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #2 on: December 19, 2009, 03:04:07 pm »

Good work. I will test it.
i am also writting a file converter for collada (importer and exporter) for Anim8or.

i use Free SwirlX3D Viewer for my test
http://www.pinecoast.com/swview.htm

i also use Blender, but i don't know how to display textures of models in Blender.
Logged

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #3 on: December 20, 2009, 04:19:53 am »

I'll go check it out. :)
Logged
X

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #4 on: December 20, 2009, 05:02:28 am »

do i need winrar to download?
Logged
X

RudySchneider

  • Sr. Member
  • ****
  • Posts: 413
  • There are no problems, only opportunities
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #5 on: December 20, 2009, 05:31:11 am »

Not to download it, no.  But you'll need winrar or 7-Zip (free) to extract it.
Logged
G

animtime

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #6 on: December 20, 2009, 09:44:41 am »

I'm using winrar because it produces smaller file than ZIP
this converter still have bugs in texture. the bugs will be skewed
Logged

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #7 on: December 20, 2009, 09:42:46 pm »

can you make a tutorial on how to use it?
Logged
X

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #8 on: December 21, 2009, 06:11:05 am »

ok, when i try to browse for Sketch files they dont appear.
Logged
X

animtime

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #9 on: December 21, 2009, 09:24:57 am »

this tool only convert collada file.
you need to convert your sketch to collada first
I already give the example files

note:
if your model have component then you need to explode them all
Logged

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #10 on: December 24, 2009, 03:24:33 am »

what is a collada?
Logged
X

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #11 on: December 24, 2009, 03:46:50 am »

http://www.google.com/search?rlz=1C1GGLS_enUS291US303&ie=UTF-8&q=collada+file

It's called google, it will be very helpful in learning for a lot of 3D.
Logged

TheRetroZombie

  • Sr. Member
  • ****
  • Posts: 280
  • I do crap animations.
    • View Profile
    • Youtube Channel
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #12 on: December 24, 2009, 11:14:33 pm »

where do i get collada?
Logged
X

animtime

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #13 on: December 31, 2009, 04:16:28 am »

collada can be exported from google sketchup
Logged

lppena

  • Sr. Member
  • ****
  • Posts: 299
  • Anim8or, does a body good.
    • View Profile
    • Truespace Anim8or Casual Modeling Forum.
Re: Collada to AN8 Converter (For converting Google's 3d model)
« Reply #14 on: June 13, 2012, 07:01:22 pm »

what is a collada?

Collada, is a newer model format that has a .DAE file extension. I believe the format is an Autodesk format. Don't know much else about it, but apparently it is being used quite a lot. Here's a sample cube model exported from Caligari Truespace and it looks like it works with XML. As you all can see it's human readable so I would imagine an Anim8or export could be written as well. Anyone know if there's a model viewer for DAE models?

Code: [Select]
<?xml version="1.0"?>
    <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
    <asset>
        <contributor>
            <author>Leroy, Pena</author>
            <authoring_tool>trueSpace 7.6 | trueSpaceCollada v1.1 </authoring_tool>
            <comments>Collada trueSpace Export options: exportGeometry=1;exportLights=1;exportCameras=1;exportRig=1;
                      exportAnimations=1;exportTriangles=0;exportHoleFacesTriangulated=1,exportNormals=1;exportTexCoords1=1;
                      exportTexCoords2=1;exportVertexColors=1;copyTextures=1;skinScaling=0</comments>
            <copyright>
            </copyright>
        </contributor>
        <created>2012-06-13T13:04:14Z</created>
        <modified>2012-06-13T13:04:14Z</modified>
        <unit meter="1.00" name="meter"/>
        <up_axis>Z_UP</up_axis>
    </asset>
    <library_geometries>
        <geometry id="Cube-lib" name="Cube">
            <mesh>
                <source id="Cube-lib-positions" name="lib-positions">
                    <float_array id="Cube-lib-positions-array" count="24">-1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 -1.000000 1.000000 1.000000 1.000000 -1.000000 1.000000 1.000000</float_array>
                    <technique_common>
                        <accessor count="8" offset="0" source="#Cube-lib-positions-array" stride="3">
                            <param name="X" type="float"></param>
                            <param name="Y" type="float"></param>
                            <param name="Z" type="float"></param>
                        </accessor>
                    </technique_common>
                </source>
                <source id="Cube-lib-normals" name="lib-normals">
                    <float_array id="Cube-lib-normals-array" count="72">0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.000000</float_array>
                    <technique_common>
                        <accessor count="24" offset="0" source="#Cube-lib-normals-array" stride="3">
                            <param name="X" type="float"></param>
                            <param name="Y" type="float"></param>
                            <param name="Z" type="float"></param>
                        </accessor>
                    </technique_common>
                </source>
                <source id="Cube-lib-uv1" name="lib-uv1">
                    <float_array id="Cube-lib-uv1-array" count="28">0.000000 0.333333 0.000000 0.666667 0.250000 0.333333 0.250000 0.666667 0.500000 0.000000 0.500000 0.333333 0.500000 0.666667 0.500000 1.000000 0.250000 0.000000 0.250000 1.000000 0.750000 0.333333 0.750000 0.666667 1.000000 0.333333 1.000000 0.666667</float_array>
                    <technique_common>
                        <accessor count="14" offset="0" source="#Cube-lib-uv1-array" stride="2">
                            <param name="S" type="float"></param>
                            <param name="T" type="float"></param>
                        </accessor>
                    </technique_common>
                </source>
                <vertices id="Cube-lib-vertices">
                    <input semantic="POSITION" source="#Cube-lib-positions"/>
                </vertices>
                <polylist count="6" material="material_0">
                    <input semantic="VERTEX" source="#Cube-lib-vertices" offset="0"/>
                    <input semantic="NORMAL" source="#Cube-lib-normals" offset="1"/>
                    <input semantic="TEXCOORD" source="#Cube-lib-uv1" offset="2" set="0"/>
                    <vcount>4 4 4 4 4 4</vcount>
                    <p>0 1 0 2 0 2 3 3 3 1 2 1 0 5 8 4 4 4 5 7 5 2 6 2 5 8 5 6 11 6 3 10 3 2 9 2 3 13 3 6 12 6 7 15 7 1 14 9 7 19 11 6 18 6 5 17 5 4 16 10 0 20 12 1 23 13 7 22 11 4 21 10</p>
                </polylist>
            </mesh>
        </geometry>
    </library_geometries>
    <library_images>
        <image id="file_0" name="file_0" depth="1">
            <init_from>C%3a/Program%20Files/trueSpace761/tS/Textures/037005560.jpg</init_from>
        </image>
    </library_images>
    <library_materials>
        <material id="Cube-material_0" name="material_0">
            <instance_effect url="#Cube-material_0-fx"/>
        </material>
    </library_materials>
    <library_effects>
        <effect id="Cube-material_0-fx">
            <profile_COMMON>
                <newparam sid="surface_0">
                    <surface type="2D">
                        <init_from>file_0</init_from>
                        <format>A8R8G8B8</format>
                    </surface>
                </newparam>
                <newparam sid="sampler_0">
                    <sampler2D>
                        <source>surface_0</source>
                        <minfilter>LINEAR_MIPMAP_LINEAR</minfilter>
                        <magfilter>LINEAR</magfilter>
                    </sampler2D>
                </newparam>
                <technique sid="common">
                    <phong>
                        <diffuse>
                            <texture texture="sampler_0" texcoord="UVSET0">
                                <extra>
                                    <technique profile="trueSpace">
                                        <wrapU>1</wrapU>
                                        <wrapV>1</wrapV>
                                        <repeatU>1.000000</repeatU>
                                        <repeatV>1.000000</repeatV>
                                        <offsetU>0.000000</offsetU>
                                        <offsetV>0.000000</offsetV>
                                    </technique>
                                </extra>
                            </texture>
                        </diffuse>
                        <specular>
                            <texture texture="sampler_0" texcoord="UVSET0">
                                <extra>
                                    <technique profile="trueSpace">
                                        <wrapU>1</wrapU>
                                        <wrapV>1</wrapV>
                                        <repeatU>1.000000</repeatU>
                                        <repeatV>1.000000</repeatV>
                                        <offsetU>0.000000</offsetU>
                                        <offsetV>0.000000</offsetV>
                                    </technique>
                                </extra>
                            </texture>
                        </specular>
                        <shininess>
                            <float>3.000000</float>
                        </shininess>
                    </phong>
                    <extra>
                        <technique profile ="trueSpace">
                        </technique>
                    </extra>
                </technique>
            </profile_COMMON>
        </effect>
    </library_effects>
    <library_visual_scenes>
        <visual_scene id="VisualSceneNode" name="Cube">
            <node id="Cube" name="Cube">
                <translate sid = "translate">-0.009930 0.009930 1.000000</translate>
                <rotate sid = "rotateX">1 0 0 -0.000000</rotate>
                <rotate sid = "rotateY">0 1 0 0.000000</rotate>
                <rotate sid = "rotateZ">0 0 1 -0.000000</rotate>
                <scale sid = "scale">1.000000 1.000000 1.000000</scale>
                <instance_geometry url="#Cube-lib">
                    <bind_material>
                        <technique_common>
                            <instance_material symbol="material_0" target="#Cube-material_0">
                                <bind semantic="UVSET0" target="#Cube-lib-uv1"/>
                            </instance_material>
                        </technique_common>
                    </bind_material>
                </instance_geometry>
            </node>
        </visual_scene>
    </library_visual_scenes>
    <scene>
        <instance_visual_scene url="#VisualSceneNode"/>
    </scene>
</COLLADA>
« Last Edit: April 05, 2014, 10:55:23 am by lppena »
Logged