﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AChingachgook%2FGsoc2009%2FAbout_the_COLLADA_Module</id>
	<title>利用者:Chingachgook/Gsoc2009/About the COLLADA Module - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AChingachgook%2FGsoc2009%2FAbout_the_COLLADA_Module"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Chingachgook/Gsoc2009/About_the_COLLADA_Module&amp;action=history"/>
	<updated>2026-04-20T12:04:47Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Chingachgook/Gsoc2009/About_the_COLLADA_Module&amp;diff=89107&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Chingachgook/Gsoc2009/About_the_COLLADA_Module&amp;diff=89107&amp;oldid=prev"/>
		<updated>2018-06-28T18:42:23Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 18:42時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Chingachgook/Gsoc2009/About_the_COLLADA_Module&amp;diff=89106&amp;oldid=prev</id>
		<title>188.220.90.37: /* OPENCOLLADA */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Chingachgook/Gsoc2009/About_the_COLLADA_Module&amp;diff=89106&amp;oldid=prev"/>
		<updated>2010-11-23T02:12:38Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;OPENCOLLADA&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=About the COLLADA module=&lt;br /&gt;
==OPENCOLLADA==&lt;br /&gt;
&lt;br /&gt;
Erwin Coumans recommended to use this library because NextGen were&lt;br /&gt;
sponsored by Sony to develop OpenCollada.&lt;br /&gt;
&lt;br /&gt;
OpenCollada differs from a regular DOM in that it writes/reads data&lt;br /&gt;
&amp;quot;on the fly&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This is done for memory and speed efficiency.&lt;br /&gt;
&lt;br /&gt;
OpenCollada depends on two libraries: pcre (217K on linux) and expat (202K).&lt;br /&gt;
&lt;br /&gt;
==EXPORT==&lt;br /&gt;
&lt;br /&gt;
File is written just as new elements are added.&lt;br /&gt;
&lt;br /&gt;
The following steps are repeated:&lt;br /&gt;
&lt;br /&gt;
* prepare element, or element hierarchy&lt;br /&gt;
* write it&lt;br /&gt;
&lt;br /&gt;
Collada allows multiple scene storage, this fits nicely with Blender database.&lt;br /&gt;
&lt;br /&gt;
Currently the exporter writes active scene taken from context.  It&lt;br /&gt;
exports scene graph by looping through scene-&amp;gt;base linked list. Only&lt;br /&gt;
mesh objects are taken into account now, but other types like cameras,&lt;br /&gt;
lights can be added later.&lt;br /&gt;
&lt;br /&gt;
Inside scene graph, nodes link to geometry and material data by ids&lt;br /&gt;
(XML referencing method).  The geometry and material data is defined&lt;br /&gt;
separately.  For example geometries are stored in&lt;br /&gt;
&amp;lt;library_geometries&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==IMPORT==&lt;br /&gt;
&lt;br /&gt;
Similar approach: &amp;quot;catch things on the fly&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Importer implements an interface which defines callbacks that are&lt;br /&gt;
called by OpenCollada as it reads DAE.&lt;br /&gt;
&lt;br /&gt;
Some callback examples:&lt;br /&gt;
&lt;br /&gt;
* writeGeometry - geometry data is passed&lt;br /&gt;
* writeVisualScene - scene graph is passed&lt;br /&gt;
* writeMaterial&lt;br /&gt;
&lt;br /&gt;
These can be called by SAX parser in any order.&lt;br /&gt;
&lt;br /&gt;
Each callback is passed a pointer to data which is OpenCollada frees once&lt;br /&gt;
callback returns.&lt;br /&gt;
&lt;br /&gt;
So what we're going to do here:&lt;br /&gt;
&lt;br /&gt;
* create a Mesh, fill it's geometry data and add it to Blender database in writeGeometry&lt;br /&gt;
* create Objects in writeVisualScene. Here we get node info: parenting, transforms and data links (material, geometry)&lt;br /&gt;
* link Object with Mesh in the &amp;quot;end&amp;quot; callback which is called when DAE reading finishes&lt;br /&gt;
&lt;br /&gt;
Although it is possible to read DAE in two passes:&lt;br /&gt;
&lt;br /&gt;
* first pass: read scene graph info&lt;br /&gt;
* second pass: read data (geometry, etc.) and link nodes to data&lt;br /&gt;
&lt;br /&gt;
ColladaMaya importer does so, but for now doing this seems redundant.&lt;/div&gt;</summary>
		<author><name>188.220.90.37</name></author>
		
	</entry>
</feed>