From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29675 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: U3D (embedded 3D objects) Date: Wed, 26 Jul 2006 01:37:34 +0200 Message-ID: <44C6AB3E.3040509@nibua-r.org> References: <43DE005D.402@wxs.nl> <43DE91C0.6050204@wxs.nl> <1C444A13-5055-43C2-A2FD-02A043161F81@indiana.edu> <43DF3BA1.8060801@wxs.nl> <43E09677.40708@wxs.nl> <44C17CF6.9080905@nibua-r.org> <44C247CF.5040602@wxs.nl> <44C2C271.4000905@nibua-r.org> <44C4970D.1070406@wxs.nl> <44C49DBB.8000209@nibua-r.org> <44C4C6F9.6060505@wxs.nl> <44C6A979.4060701@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1431491629==" X-Trace: sea.gmane.org 1153870670 21269 80.91.229.2 (25 Jul 2006 23:37:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2006 23:37:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 26 01:37:50 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G5WTE-00052u-UM for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jul 2006 01:37:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9CD861FE17; Wed, 26 Jul 2006 01:37:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21742-04-4; Wed, 26 Jul 2006 01:37:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B30961FE20; Wed, 26 Jul 2006 01:37:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 06D221FE21 for ; Wed, 26 Jul 2006 01:37:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21742-04-3 for ; Wed, 26 Jul 2006 01:37:41 +0200 (CEST) Original-Received: from 42.mail-out.ovh.net (42.mail-out.ovh.net [213.251.189.42]) by ronja.ntg.nl (Postfix) with SMTP id F11861FE20 for ; Wed, 26 Jul 2006 01:37:40 +0200 (CEST) Original-Received: (qmail 9815 invoked by uid 503); 25 Jul 2006 23:37:35 -0000 Original-Received: from b6.ovh.net (HELO mail178.ha.ovh.net) (213.186.33.56) by 42.mail-out.ovh.net with SMTP; 25 Jul 2006 23:37:35 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 25 Jul 2006 23:37:36 -0000 Original-Received: from d213-103-89-146.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@213.103.89.146) by ns0.ovh.net with SMTP; 25 Jul 2006 23:37:34 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <44C6A979.4060701@nibua-r.org> X-Ovh-Remote: 213.103.89.146 (d213-103-89-146.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/0.5/5.0/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29675 Archived-At: This is a multi-part message in MIME format. --===============1431491629== Content-Type: multipart/alternative; boundary="------------060805020108090002080605" This is a multi-part message in MIME format. --------------060805020108090002080605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Renaud AUBIN a =C3=A9crit : > How to do that in the ConTeXt way ? ;) I have read spec-tpd.tex but > didn't know much... > > Take care of the heart attack.... (I've done it the rookie way, > reversed from movie15) > > \starttext > > \xdef\uthreedfilename{pa10} > > \pdfobj {<>}% > \pdfrefobj\pdflastobj% > % > \pdfobj {<<% > /MS/M% define the view as C2W matrix > /CO 1200% orbital radius > /P \the\pdflastobj\space 0 R% > /C2W [-1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 > 0.000000000000000000 -600.000000000000000000 -3200.000000000000000000]% > /XN(Default)% name of the view appearing in the drop down list > /BG<>% > >>}\pdfrefobj\pdflastobj% > \xdef\defaultview{/3DV << /N \the\pdflastobj\space 0 R >>} > We need to be able to define some views... Variables are in facts CO, C2W, XN and BG needs to be annotation-wide... I need more time to manage coordinates possibilities... > \pdfobj stream % > attr {% > /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F% > }% > file {\uthreedfilename.u3d}% > \pdfrefobj\pdflastobj% > \xdef\iiidstream{\the\pdflastobj} "pretty raw pdf code in the key/val pairs, which is something alien to context" ;) > \pdfobj stream {}\pdfrefobj\pdflastobj% > \xdef\apdict{/AP << /N \the\pdflastobj\space 0 R >>} > > \pdfannot width 200pt height 200pt depth 200pt {% don't know how to > deal with w,h and d !!! > /Subtype/3D% > /F 4% we cannot put F 5 here; bug in Reader; 3D annot would b= e > /T (\uthreedfilename.u3d)% disabled even if plugin were > available > /Contents (3D Object (model/u3d))% mime type > /NM (pa10)% label > /P 0 0 R% > \apdict% > \defaultview% > /3DI true% > /3DD \iiidstream\space 0 R% 3D stream object > /3DA << /A/PV/AIS/I/D/PI/DIS/I >>% > }% > Variables here are mainly 3DI, NM, mime type ? > \stoptext > >------------------------------------------------------------------------ > >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > =20 > --------------060805020108090002080605 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Renaud AUBIN a =C3=A9crit=C2=A0:
How to do that in the ConTeXt way ? ;) I have read spec-tpd.tex but didn't know much...

Take care of the heart attack.... (I've done it the rookie way, reversed from movie15)

\starttext

\xdef\uthreedfilename{pa10}

\pdfobj {<</Subtype/P/FOV 30/PS/Min>>}%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \pdfrefobj\pdflastobj%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \pdfobj {<<%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /MS/M% define the view as C2W = matrix
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /CO 1200% orbital radius
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /P \the\pdflastobj\space 0 R%<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /C2W [-1.0 0.0 0.0 0.0 -1.0 0.= 0 0.0 0.0 1.0 0.000000000000000000 -600.000000000000000000 -3200.000000000000000000]% =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /XN(Default)% name of the view= appearing in the drop down list
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /BG<</CS/DeviceRGB/C[1 1= 1]>>%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >>}\pdfrefobj\pdflastobj%
\xdef\defaultview{/3DV << /N \the\pdflastobj\space 0 R >>}
We need to be able to define some views... Variables are in facts CO, C2W, XN and BG needs to be annotation-wide...
I need more time to manage coordinates possibilities...
\pdfob= j stream %
attr {%
=C2=A0 /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F%
}%
file {\uthreedfilename.u3d}%
\pdfrefobj\pdflastobj%
\xdef\iiidstream{\the\pdflastobj}
"pretty raw pdf code in the key/val pairs, which is something alien to context" ;)

\pdfob= j stream {}\pdfrefobj\pdflastobj%
\xdef\apdict{/AP << /N \the\pdflastobj\space 0 R >>}

\pdfannot width 200pt height 200pt depth 200pt {% don't know how to deal with w,h and d !!!
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /Subtype/3D%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /F 4% we cannot pu= t F 5 here; bug in Reader; 3D annot would be
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /T (\uthreedfilena= me.u3d)%=C2=A0=C2=A0=C2=A0 disabled even if plugin were available
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /Contents (3D Obje= ct (model/u3d))% mime type
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /NM (pa10)% label<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /P 0 0 R%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \apdict%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \defaultview%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /3DI true%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /3DD \iiidstream\s= pace 0 R% 3D stream object
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /3DA << /A/P= V/AIS/I/D/PI/DIS/I >>%
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }%

Variables here are mainly 3DI, NM, mime type ?
\stopt= ext

_______________________________________________ ntg-context mailing list = ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

--------------060805020108090002080605-- --===============1431491629== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1431491629==--