<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>u3d &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/u3d/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Mon, 10 Feb 2025 11:46:14 +0000</lastBuildDate>
	<language>en-GB</language>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>u3d &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Help! How do I extract 3D objects from PDFs?]]></title>
		<link>https://shkspr.mobi/blog/2016/02/help-how-do-i-extract-3d-objects-from-pdfs/</link>
					<comments>https://shkspr.mobi/blog/2016/02/help-how-do-i-extract-3d-objects-from-pdfs/#comments</comments>
				<dc:creator><![CDATA[Terence Eden]]></dc:creator>
		<pubDate>Tue, 02 Feb 2016 14:52:03 +0000</pubDate>
		<category><![CDATA[3D]]></category><category><![CDATA[linux]]></category><category><![CDATA[PDF]]></category><category><![CDATA[u3d]]></category>		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=22382</guid>

					<description><![CDATA[You know how the Democratic People&#039;s Republic of Korea is neither democratic, nor particularly for the people, nor a republic?  Yeah, so it turns out the &#34;Universal 3D&#34; format is pretty far from Universal!  A little backstory... The Europeana Carare Project has some gorgeous 3D scans of ancient monuments and heritage sites.  The only problem is that the 3D files are trapped inside PDFs.  Yup -…]]></description>
										<content:encoded>&lt;p&gt;You know how the Democratic People's Republic of Korea is neither democratic, nor particularly for the people, nor a republic?  Yeah, so it turns out the "Universal 3D" format is pretty far from Universal!&lt;/p&gt;

&lt;p&gt;A little backstory... The &lt;a href="https://carare.eu/en/training/3d-and-virtual-reality/"&gt;Europeana Carare Project has some gorgeous 3D scans of ancient monuments and heritage sites&lt;/a&gt;.  The only problem is that the 3D files are trapped inside PDFs.  Yup - did you know the PDF spec supported 3D models? Me neither.&lt;/p&gt;

&lt;p&gt;The only way to view these is with the Official Adobe Viewer (&lt;a href="http://ubuntuhandbook.org/index.php/2014/10/install-adobe-reader-ubuntu-14-10/"&gt;install it on Linux following these instructions&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;This is what it looks like:&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;div style="width: 620px;" class="wp-video"&gt;&lt;video class="wp-video-shortcode" id="video-22382-2" width="620" height="349" preload="metadata" controls="controls"&gt;&lt;source type="video/mp4" src="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.mp4?_=2"&gt;&lt;source type="video/webm" src="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.webm?_=2"&gt;&lt;source type="video/ogg" src="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D-Objects-in-PDF.ogv?_=2"&gt;&lt;a href="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.mp4"&gt;https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.mp4&lt;/a&gt;&lt;/video&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Nifty, right?&lt;/p&gt;

&lt;p&gt;So, &lt;a href="http://superuser.com/questions/758379/extract-u3d-object-from-pdf/1034179"&gt;how do we extract that 3D file&lt;/a&gt;?&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;&lt;a href="http://blog.didierstevens.com/programs/pdf-tools/"&gt;Download and install the Pythong PDF Parser&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Search for the 3D object:&lt;br&gt;&lt;code&gt;./pdf-parser.py -t /3D input.pdf &lt;/code&gt;&lt;/li&gt;
    &lt;li&gt;You'll get a response like this:&lt;br&gt;&lt;pre lang="bash"&gt;obj 48 0
 Type: /3D
 Referencing: 58 0 R, 59 0 R
 Contains stream

  &amp;lt;&amp;lt;
    /AN 58 0 R
    /Length 6066066
    /Subtype /PRC
    /Type /3D
    /VA 59 0 R
  &amp;gt;&amp;gt;
&lt;/pre&gt;&lt;/li&gt;
    &lt;li&gt;The Object ID (in this case 48) is what we need to extract.&lt;/li&gt;
    &lt;li&gt;&lt;code&gt;./pdf-parser.py -o 48 -d output.u3d input.pdf&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can &lt;a href="https://shkspr.mobi/blog/wp-content/uploads/2016/02/output.u3d.zip" rel=""&gt;download the U3D file&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Unfortunately, &lt;em&gt;nothing&lt;/em&gt; opens it.  I've tried &lt;a href="http://sourceforge.net/p/meshlab/discussion/499532/thread/da02c8bc/"&gt;Meshlab&lt;/a&gt;, &lt;a href="https://www.blender.org/forum/viewtopic.php?t=17757"&gt;Blender&lt;/a&gt;, &lt;a href="https://github.com/FreeCAD/FreeCAD"&gt;FreeCAD&lt;/a&gt;, &lt;a href="http://3doc.i3dconverter.com/"&gt;i3D Converter&lt;/a&gt;, online service &lt;a href="https://web.archive.org/web/20160203075714/https://www.babel3d.com/"&gt;Babel3D&lt;/a&gt;, and even Unity 3D on a Windows box.&lt;/p&gt;

&lt;p&gt;Nothing!  Not a single application would recognise it - let alone convert it.&lt;/p&gt;

&lt;p&gt;There is a &lt;a href="https://github.com/ningfei/u3d"&gt;U3D library on GitHub&lt;/a&gt; - but I'm not skilled enough to integrate it into anything.&lt;/p&gt;

&lt;p&gt;I've found &lt;a href="https://web.archive.org/web/20161121095041/https://play.google.com/store/apps/details?id=com.afanche.android.U3DViewRS"&gt;an Android app which claims to convert U3D files&lt;/a&gt; - but it has no downloads, no reviews, and costs £6!&lt;/p&gt;

&lt;p&gt;So, gentle reader, if you know of a way to extract and view 3D models from PDFs, &lt;strong&gt;please&lt;/strong&gt; let me know!&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=22382&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2016/02/help-how-do-i-extract-3d-objects-from-pdfs/feed/</wfw:commentRss>
			<slash:comments>23</slash:comments>
		
		<enclosure url="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.mp4" length="4109537" type="video/mp4" />
<enclosure url="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D_Objects_in_PDF.webm" length="2237750" type="video/webm" />
<enclosure url="https://shkspr.mobi/blog/wp-content/uploads/2016/02/3D-Objects-in-PDF.ogv" length="4952088" type="video/ogg" />

			</item>
	</channel>
</rss>
