From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29673 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:30:01 +0200 Message-ID: <44C6A979.4060701@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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1862310633==" X-Trace: sea.gmane.org 1153870326 20484 80.91.229.2 (25 Jul 2006 23:32:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2006 23:32:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 26 01:32:06 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 1G5WNc-0004Mp-Tu for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jul 2006 01:32:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 76A1B1FCE9; Wed, 26 Jul 2006 01:32:00 +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 21152-02; Wed, 26 Jul 2006 01:31:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 782FB1FDDE; Wed, 26 Jul 2006 01:30:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0EE51FDDE for ; Wed, 26 Jul 2006 01:30:12 +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 21152-01-6 for ; Wed, 26 Jul 2006 01:30:08 +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 6A6DE1FD08 for ; Wed, 26 Jul 2006 01:30:08 +0200 (CEST) Original-Received: (qmail 10460 invoked by uid 503); 25 Jul 2006 23:30:02 -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:30:02 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 25 Jul 2006 23:30:03 -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:30:00 -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: <44C4C6F9.6060505@wxs.nl> 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:29673 Archived-At: This is a multi-part message in MIME format. --===============1862310633== Content-Type: multipart/alternative; boundary="------------010804090409050205040401" This is a multi-part message in MIME format. --------------010804090409050205040401 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hans Hagen a =C3=A9crit : > >indeed pdfannot is what we need; however, the first thing is to figure o= ut what kind of control we want (probably best from within javascript); i= n your sampe i see pretty raw pdf code in the key/val pairs, which is som= ething alien to context=20 > >- what features make sense >- what features do we expect to be stable=20 > >Hans=20 > =20 > 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 >>} \pdfobj stream % attr {% /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F% }% file {\uthreedfilename.u3d}% \pdfrefobj\pdflastobj% \xdef\iiidstream{\the\pdflastobj} \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 be /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 >>% }% \stoptext --------------010804090409050205040401 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hans Hagen a =C3=A9crit=C2=A0:

indeed pdfannot is what we need; however, the fir=
st thing is to figure out what kind of control we want (probably best fro=
m within javascript); in your sampe i see pretty raw pdf code in the key/=
val pairs, which is something alien to context=20

- what features make sense
- what features do we expect to be stable=20

Hans=20
  
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 >>}
\pdfobj stream %
attr {%
=C2=A0 /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F%
}%
file {\uthreedfilename.u3d}%
\pdfrefobj\pdflastobj%
\xdef\iiidstream{\the\pdflastobj}

\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 !!!
=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 }%

\stoptext
--------------010804090409050205040401-- --===============1862310633== 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 --===============1862310633==--