<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>プログラミング &#8211; M. Yamaguchi Laboratory</title>
	<atom:link href="https://ba.sozo.ac.jp/myama/home/archives/tag/programming/feed" rel="self" type="application/rss+xml" />
	<link>https://ba.sozo.ac.jp/myama/home</link>
	<description>豊橋創造大学　経営学部　経営学科　山口満研究室</description>
	<lastBuildDate>Mon, 15 Jan 2024 05:24:02 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>紀要第23号に研究成果が掲載されました（プロジェクト関係）</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/2476</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Mon, 03 Feb 2020 13:56:56 +0000</pubDate>
				<category><![CDATA[研究]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=2476</guid>

					<description><![CDATA[豊橋創造大学紀要第23号にプロジェクト関係の研究成果が掲載されました． 山口満，三輪多恵子，”オンラインの特徴を活かした動物園マップの作成，” 豊橋創造大学紀要，no.23，pp.11-20，Marc&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>豊橋創造大学紀要第23号にプロジェクト関係の研究成果が掲載されました．</p>
<p>山口満，三輪多恵子，”<a href="http://www2.sozo.ac.jp/pdf/kiyou2019/02p011-020MichiruYAMAGUCHI.pdf" rel="noopener noreferrer" target="_blank">オンラインの特徴を活かした動物園マップの作成</a>，” 豊橋創造大学紀要，no.23，pp.11-20，March 2019.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>例の暗号メッセージを生成してみる</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/2065</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 03:11:50 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=2065</guid>

					<description><![CDATA[説明するのもアレなので省略．最初に見たときに「すぐに作れるよね」と思っていたら，案の定すぐに作って公開した人がいるっぽい．いまさら感がありますがせっかくなので． 動機 ぱっと作れそうな感じだったので &#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>説明するのもアレなので省略．最初に見たときに「すぐに作れるよね」と思っていたら，案の定すぐに作って公開した人がいるっぽい．いまさら感がありますがせっかくなので．</p>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>ぱっと作れそうな感じだったので</li>
<li>息抜き</li>
</ul>
</div>
<h2>目的</h2>
<div class="myclass">
<ul>
<li>明確な目的はなし．息抜き</li>
</ul>
</div>
<h2>暗号メッセージ？</h2>
<div class="myclass">
<ul>
<li>色付きの数字が，その色名（英語）の文字位置にある1文字を表している，というもの（一つの色付き数字が一つのアルファベットに対応する）</li>
</ul>
<p><div id="attachment_2090" style="width: 410px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img decoding="async" aria-describedby="caption-attachment-2090" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png" alt="暗号例（この場合は toyohashi）" width="400" height="100" class="size-full wp-image-2090" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi.png 400w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/toyohashi-300x75.png 300w" sizes="(max-width: 400px) 100vw, 400px" /></a><p id="caption-attachment-2090" class="wp-caption-text">暗号例（この場合は toyohashi）</p></div>
</div>
<h2>カラーネームについて</h2>
<div class="myclass">
Web standard 16 colors をベースに考えてみる．そのカラーネームにおいて，どの英文字がどの位置に現れるかを求めてみると次のような感じ（ExcelでFIND関数を使って整理）．</p>
<div id="attachment_2066" style="width: 882px" class="wp-caption aligncenter"><a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-2066" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png" alt="カラーネームと文字出現位置（今回はオレンジ塗りつぶしセルを採用）" width="872" height="398" class="size-full wp-image-2066" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos.png 872w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colorname-characterpos-300x137.png 300w" sizes="(max-width: 872px) 100vw, 872px" /></a><p id="caption-attachment-2066" class="wp-caption-text">カラーネームと文字出現位置（今回はオレンジ塗りつぶしセルを採用）</p></div>
<ul>
<li>navy, teal, lime, aqua, fuchsia, olive, maroon は日本人にはピンとこない（わかりづらい）ので不採用．</li>
<li>gray と silver も判断に困るのでどちらか一択 → 今回は s と v を使いたいので silver を採用（gray の使用回避）．</li>
<li>結果的に，f, j, m, q, x, z を含むカラーがないので，これらの文字は暗号化されないことに．それ以外については，上表のオレンジで塗りつぶしたセルの値（とカラー）を使うことにする．</li>
</ul>
</div>
<h2>JavaScriptで書いてみる</h2>
<div class="myclass">
こんな感じでベタに書いてみる．<br />
今回はcanvasを使って描くことに．フォームに入力された文字列から1文字ずつ取り出して，事前に定義した変換（テーブル）ルールに従って出力する．f, j, m, q, x, z, スペースはそのまま出力する．フォントサイズや文字送り幅は適当に設定．</p>
<pre class="lang:js decode:true " data-url="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2015/01/colornamebasedencryption.js" ></pre>
<p>htmlソースはこんな感じでどうでしょう．</p>
<pre class="lang:default decode:true " >&lt;canvas id="cv" width="400" height="100" style="display:none;"&gt;&lt;/canvas&gt;

&lt;form name="myform"&gt;
	&lt;input type="text" id="inputtext" placeholder="半角英小文字とスペース" pattern="^[a-z\s]+$" title="半角英小文字とスペースを入力してください" size="15" maxlength="15"&gt;
	&lt;input type="button" value="暗号化" onclick="genImg();"&gt;
&lt;/form&gt;

&lt;div&gt;
&lt;img id="out"&gt;
&lt;div id="msg"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>canvasの描画内容を画像（PNG）として出力させることにした．<br />
（遊んでみたい人向けの注意！上記スクリプトはcanvasタグより後ろに記述 or 読み込むこと．）
</p></div>
<h2>結果</h2>
<div class="myclass">
<a href="https://ba.sozo.ac.jp/myama/home/develop/colornamebasedencryption">こちらのページからどうぞ．</a>
</div>
<h2>感想</h2>
<div class="myclass">
<ul>
<li>さあ仕事しよう</li>
</ul>
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li><a href="http://www.w3.org/TR/html4/types.html#h-6.5" target="_blank" rel="noopener noreferrer">Basic HTML data types &#8211; 6.5 Colors</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Three.jsでWebGLを体験してみる（1）</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1468</link>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Mon, 28 Jul 2014 14:47:16 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1468</guid>

					<description><![CDATA[※ デバイスやブラウザによっては↓表示されませんのでご注意を ※ 表示までに時間がかかることがあるのでご注意を Three.js &#8211; WebGL Three.jsを利用してWebGLを体験&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>※ デバイスやブラウザによっては↓表示されませんのでご注意を<br />
※ 表示までに時間がかかることがあるのでご注意を</p>
<p><iframe src="https://ba.sozo.ac.jp/myama/three/kumadae.html" width="620" height="350"><br />
Three.js &#8211; WebGL<br />
</iframe></p>
<p>Three.jsを利用してWebGLを体験してみる．<br />
ライブラリ同梱のサンプルファイルを少し修正しただけ．</p>
<div class="myclass">
<blockquote><p>three.js<br /><a href="http://threejs.org/" target="_blank">http://threejs.org/</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>気分転換に</li>
</ul>
</div>
<hr>
<h2>手順</h2>
<div class="myclass">
<ul>
<li>上記参考サイト（three.js）からファイルをダウンロードしてサーバにアップ，展開（設置）</li>
<li>サンプルファイルをコピーして編集．今回は webgl_loader_collada.html を使って，<a href="https://ba.sozo.ac.jp/myama/home/archives/1163" title="ARを試す">以前にもらったホッキョクグマ</a>を読み込ませて表示させてみる</li>
<li>スクリプトのパスの変更（環境に合わせて）を忘れずに</li>
</ul>
</div>
<hr>
<h2>感想</h2>
<div class="myclass">
iOSなデバイスも早くWebGLに対応するとよいね．<br />
もう少し余裕が出来たら真剣に遊ぶことにします．
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>three.js<br /><a href="http://threejs.org/" target="_blank">http://threejs.org/</a></li>
</ul>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>テキスト比較ツール（difff）を設置してみる</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1375</link>
					<comments>https://ba.sozo.ac.jp/myama/home/archives/1375#respond</comments>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Thu, 13 Mar 2014 02:56:54 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1375</guid>

					<description><![CDATA[difff を設置してみる．参考にしたサイトは次のとおり． difff は修正BSDライセンスで配布されている．裏で動いているのは通常のdiff． meso-cacase / difffhttps:/&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>difff を設置してみる．参考にしたサイトは次のとおり．<br />
difff は修正BSDライセンスで配布されている．裏で動いているのは通常のdiff．</p>
<div class="myclass">
<blockquote><p>meso-cacase / difff<br /><a href="https://github.com/meso-cacase/difff" target="_blank">https://github.com/meso-cacase/difff</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>息抜きに</li>
</ul>
</div>
<hr>
<h2>手順</h2>
<div class="myclass">
<ul>
<li>上記参考サイト（GitHub）からファイルをダウンロードして設置</li>
<li>perl, diff, 作業ディレクトリのパス等を編集</li>
<li>設置ディレクトリに .htaccess を置くなりして必要な設定を実施（ExecCGI とか DirectoryIndex とか）</li>
</ul>
</div>
<hr>
<h2>公開場所</h2>
<div class="myclass">
<a href="https://ba.sozo.ac.jp/myama/difff/" title="difff for Sozo" target="_blank">こちらから</a><br />
ただし学内からのアクセス限定
</div>
<hr>
<h2>感想</h2>
<div class="myclass">
便利．感謝．
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>meso-cacase / difff<br /><a href="https://github.com/meso-cacase/difff" target="_blank">https://github.com/meso-cacase/difff</a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ba.sozo.ac.jp/myama/home/archives/1375/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress プラグイン作成を試す</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1280</link>
					<comments>https://ba.sozo.ac.jp/myama/home/archives/1280#respond</comments>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Mon, 16 Dec 2013 11:40:48 +0000</pubDate>
				<category><![CDATA[開発・サービス]]></category>
		<category><![CDATA[雑記]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1280</guid>

					<description><![CDATA[WordPress のプラグインを作ってみる．参考にした主なサイトは次のとおり． Shortcode API « WordPress Codexhttp://www.communitycom.jp/2&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>WordPress のプラグインを作ってみる．参考にした主なサイトは次のとおり．</p>
<div class="myclass">
<blockquote><p>Shortcode API « WordPress Codex<br /><a href="http://codex.wordpress.org/Shortcode_API target="_blank">http://codex.wordpress.org/Shortcode_API</a>
</p></blockquote>
<blockquote><p>WordPressの投稿画面から、PhotoshopやIllustratorのデータ（拡張子がPsdやAiのファイルデータ）をアップロードする方法<br /><a href="http://www.communitycom.jp/2012/10/01/wordpress-psd-ai/ target="_blank">http://www.communitycom.jp/2012/10/01/wordpress-psd-ai/</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h4>
<div class="myclass">
<ul>
<li>以前に Java Applet ベースの ttyplayer を教育用に使っていた<br />⇒ JavaScript ぐらいで誰か作ってないかしら？<br />⇒ 発見。だけどそのままじゃ WordPress で使えない<br />GitHub &#8211; <a href="https://github.com/encryptio/jsttyplay" target="_blank" rel="noopener">https://github.com/encryptio/jsttyplay</a></li>
<li>プラグインにしてしまおう</li>
<li>.tty ファイルのURLを引数とした Shortcode にしてみようかしら</li>
</ul>
</div>
<hr>
<h2>試した環境</h2>
<div class="myclass">
<ul>
<li>WordPress 3.6.1</li>
</ul>
</div>
<hr>
<h2>手順</h2>
<div class="myclass">
<ul>
<li>（書こうと思ったけど省略）参考サイトの情報がとっても有益</li>
<li>下記 92行目～が shortcode 作成の部分</li>
<li>下記 23～81行目が設定ページ（Option、フォントを選択できる）作成の部分</li>
<li>下記 84～88行目が&#8217;upload_mimes&#8217; に拡張子 .tty を追加する部分（メディア追加で .tty ファイルをアップロードできるようにする）</li>
</ul>
</div>
<hr>
<h2>作成後：jsttyplay.php</h2>
<div class="myclass">
&#091;jsttyplay url=&#8221;tty_file_path&#8221;&#093; で動作する。<br />
いろいろ良くないところを残したまま、とりあえず公開してみる。誰かもっと素敵に作ってください。</p>
<pre class="lang:php decode:true " title="jsttyplay.php" data-url="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/12/jsttyplay.php_.txt" ></pre>
</div>
<hr>
<h2>公開場所</h2>
<div class="myclass">
<a href="https://ba.sozo.ac.jp/myama/home/develop/jsttyplay" title="WP Jsttyplay – jsttyplay plugin for WordPress">こちらから</a></div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>Shortcode API « WordPress Codex<br /><a href="http://codex.wordpress.org/Shortcode_API target="_blank">http://codex.wordpress.org/Shortcode_API</a></li>
<li>WordPressの投稿画面から、PhotoshopやIllustratorのデータ（拡張子がPsdやAiのファイルデータ）をアップロードする方法<br /><a href="http://www.communitycom.jp/2012/10/01/wordpress-psd-ai/ target="_blank">http://www.communitycom.jp/2012/10/01/wordpress-psd-ai/</a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ba.sozo.ac.jp/myama/home/archives/1280/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ARを試す</title>
		<link>https://ba.sozo.ac.jp/myama/home/archives/1163</link>
					<comments>https://ba.sozo.ac.jp/myama/home/archives/1163#respond</comments>
		
		<dc:creator><![CDATA[山口]]></dc:creator>
		<pubDate>Tue, 29 Oct 2013 06:57:13 +0000</pubDate>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[プログラミング]]></category>
		<guid isPermaLink="false">http://ba.sozo.ac.jp/myama/home/?p=1163</guid>

					<description><![CDATA[いまさらながらARを試してみる．参考にした主なサイトは次のとおり． 「攻殻機動隊」「電脳コイル」の世界を実現！ARToolKitを使った拡張現実感プログラミング http://kougaku-navi&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p>いまさらながらARを試してみる．参考にした主なサイトは次のとおり．</p>
<div class="myclass">
<blockquote><p>「攻殻機動隊」「電脳コイル」の世界を実現！ARToolKitを使った拡張現実感プログラミング<br />
<a href="http://kougaku-navi.net/ARToolKit/" target="_blank">http://kougaku-navi.net/ARToolKit/</a>
</p></blockquote>
<blockquote><p>ARToolKit, Collada DOM, OpenSceneGraphとosgARTインストールスクリプト<br />
<a href="http://tech.enekochan.com/2012/07/04/installation-scripts-for-artoolkit-collada-dom-openscenegraph-and-osgart/?lang=ja" target="_blank">http://tech.enekochan.com/2012/07/04/installation-scripts-for-artoolkit-collada-dom-openscenegraph-and-osgart/?lang=ja</a>
</p></blockquote>
</div>
<hr>
<h2>動機</h2>
<div class="myclass">
<ul>
<li>創造祭の学科展示で何か見せたい</li>
<li><a href="http://project.sozo.ac.jp/portal/node/233" title="We &#x2764; NONHOI （三輪・山口プロジェクト）" target="_blank">H25プロジェクト</a>に関連して，子どもに喜んでもらいたい<br />
→　ホッキョクグマ（シロクマ）を登場させてみようかしら</li>
</ul>
</div>
<hr>
<h2>試した環境</h2>
<div class="myclass">
<ul>
<li>Pansonic Let&#8217;snote CF-SX1GELDC (wubi 経由インストールの 32bit Ubuntu 12.04 LTS)</li>
<li>ELECOM UCAM-DLJ200HBK （200万画素）</li>
</ul>
</div>
<hr>
<h2>準備</h2>
<div class="myclass">
Let&#8217;snote（Windows 7 Pro）にUbuntu 12.04 LTSをインストールする．wubi 使用．<br />
普通にインストールすると64bit版がインストールされてしまうので，次のサイトを参考に32bit版をインストールする．<br />
※ 後述の作業は64bit版ではうまくいかない．あれこれ試すもののうまくいかず，なんだか大変だったので32bit版でさらっと済ます．</p>
<blockquote><p>UbuntuTips/Install/WubiGuide<br />
<a href="https://wiki.ubuntulinux.jp/UbuntuTips/Install/WubiGuide" target="_blank">https://wiki.ubuntulinux.jp/UbuntuTips/Install/WubiGuide</a>
</p></blockquote>
</div>
<hr>
<h2>インストールスクリプトのダウンロード</h2>
<div class="myclass">
先に紹介したサイトの<a href="https://github.com/enekochan/installation-scripts" title="https://github.com/enekochan/installation-scripts" target="_blank">リンク先（github）からスクリプトをダウンロード</a>（Download ZIP）して展開する．
</div>
<hr>
<h2>インストールスクリプトの実行</h2>
<div class="myclass">
インストールスクリプトを実行する．注意点は以下のとおり．</p>
<ul>
<li>足りないライブラリ関係は自動で apt-get するようになっているので，実行時は sudo しておく．</li>
<li>インストールスクリプトの実行順序は守る．ARToolKit → Collada DOM → OpenSceneGraph → OsgART</li>
<li>スクリプト中の Collada DOM, OpenSceneGraph の SVN パスは古い（現在使えない）ので，適切に修正する．</li>
<li>Select a video capture driver. は 6: GStreamer を選択（した気がする）</li>
<li>OpenSceneGraph-2.8.3 を使用</li>
<li>インストール後，いくつか環境変数が設定されるので，一応確認しておく（home 下の~/.bashrc）．Webカメラ（内蔵でないもの）を指したまま起動・作業しているのであればそのWebカメラが /dev/video0 に，内蔵カメラが /dev/video1 になる模様．ちゃんとチェック</li>
</ul>
</div>
<hr>
<h2>とりあえず動作確認</h2>
<div class="myclass">
osgviewer で cow.osg を表示させ確認．<br />
※ フルスクリーンから抜けるには f キー押下
</div>
<hr>
<h2>カメラキャリブレーション</h2>
<div class="myclass">
（省略．Web上に多数記事あり）
</div>
<hr>
<h2>マーカー作成</h2>
<div class="myclass">
ARTookKit に同梱されている blankPatt.gif をベースに作成（協力：三輪先生）．<br />
出来上がったマーカーをプリントして，100円ショップで購入したコースターの裏側に貼り付ける．<br />

<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt01.gif' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-1"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt01-150x150.gif" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt01-150x150.gif 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt01-160x160.gif 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt02.gif' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-1"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt02-150x150.gif" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt02-150x150.gif 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt02-160x160.gif 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt03.gif' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-1"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt03-150x150.gif" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt03-150x150.gif 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt03-160x160.gif 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt04.gif' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-1"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt04-150x150.gif" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt04-150x150.gif 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/blankPatt04-160x160.gif 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>

</div>
<hr>
<h2>モデル等の準備</h2>
<div class="myclass">
Maya から出力した obj 形式の3Dモデルを使用（協力：三輪先生）．ほか，画像とロゴを準備．<br />

<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/kuma.png' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-2"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/kuma-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/kuma-150x150.png 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/kuma-160x160.png 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample1.jpg' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-2"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample1-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample1-150x150.jpg 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample1-160x160.jpg 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample2.jpg' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-2"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample2-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample2-150x150.jpg 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/animalsample2-160x160.jpg 160w" sizes="(max-width: 150px) 100vw, 150px" /></a>
<a href='https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949.png' title="" data-rl_title="" class="rl-gallery-link" data-rl_caption="" data-rel="lightbox-gallery-2"><img loading="lazy" decoding="async" width="150" height="150" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949-150x150.png 150w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949-300x300.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949-160x160.png 160w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/da36410569ac88ad6f49d89857874949.png 512w" sizes="(max-width: 150px) 100vw, 150px" /></a>

</div>
<hr>
<h2>プログラム作成</h2>
<div class="myclass">
osgART/ の example フォルダ内にサンプルソースをコピーして編集．<br />
CMakeList.txt も変更（追加）すること．<br />
build ディレクトリまで移動して sudo make, sudo make install<br />
（ソースの掲示は省略）
</div>
<hr>
<h2>プログラム実行</h2>
<div class="myclass">
なんとか動作した様子．<br />
【残された課題】いろいろ試したものの，PositionAttitudeTransform で scale は調整はできても position と attitude の変更がどうしても効かなかった．暇があったらホッキョクグマをダイブさせたいと思う今日この頃．<br />
<a href="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/arnonhoiss.png" data-rel="lightbox-image-8" data-rl_title="" data-rl_caption="" title=""><img loading="lazy" decoding="async" src="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/arnonhoiss-300x235.png" alt="arnonhoiss" width="300" height="235" class="alignnone size-medium wp-image-1160" srcset="https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/arnonhoiss-300x235.png 300w, https://ba.sozo.ac.jp/myama/home/wp-content/uploads/2013/10/arnonhoiss.png 568w" sizes="(max-width: 300px) 100vw, 300px" /></a>
</div>
<hr>
<h2>参考サイト</h2>
<div class="myclass">
<ul>
<li>「攻殻機動隊」「電脳コイル」の世界を実現！ARToolKitを使った拡張現実感プログラミング<br />
<a href="http://kougaku-navi.net/ARToolKit/" target="_blank">http://kougaku-navi.net/ARToolKit/</a></li>
<li>ARToolKit, Collada DOM, OpenSceneGraphとosgARTインストールスクリプト<br />
<a href="http://tech.enekochan.com/2012/07/04/installation-scripts-for-artoolkit-collada-dom-openscenegraph-and-osgart/?lang=ja" target="_blank">http://tech.enekochan.com/2012/07/04/installation-scripts-for-artoolkit-collada-dom-openscenegraph-and-osgart/?lang=ja</a></li>
<li>OSGART<br />
<a href="http://www.osgart.org/index.php/Main_Page" title="http://www.osgart.org/index.php/Main_Page" target="_blank">http://www.osgart.org/index.php/Main_Page</a></li>
<li>COSC 426 Lecture 6a on using osgART<br /><a href="http://www.slideshare.net/marknb00/426-lecture6a-osgart-development" title="COSC 426 Lecture 6a on using osgART" target="_blank">http://www.slideshare.net/marknb00/426-lecture6a-osgart-development</a></li>
</ul>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ba.sozo.ac.jp/myama/home/archives/1163/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
