From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55768 Path: news.gmane.org!not-for-mail From: gummybears Newsgroups: gmane.comp.tex.context Subject: U3D inclusion Date: Sat, 23 Jan 2010 17:52:54 +0100 Message-ID: <2c7b6d221001230852h6b7a12f1k486fe6c628cb00fb@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1368211374==" X-Trace: ger.gmane.org 1264265644 25150 80.91.229.12 (23 Jan 2010 16:54:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2010 16:54:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 23 17:53:56 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYjFD-0002XH-UH for gctc-ntg-context-518@m.gmane.org; Sat, 23 Jan 2010 17:53:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5813AC9C4F; Sat, 23 Jan 2010 17:53:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Lm+bnW+9t6Mx; Sat, 23 Jan 2010 17:53:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EF51C9C3D; Sat, 23 Jan 2010 17:53:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABB65C9C3D for ; Sat, 23 Jan 2010 17:53:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ESjbmKCrANRy for ; Sat, 23 Jan 2010 17:52:55 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 21C67C9C31 for ; Sat, 23 Jan 2010 17:52:54 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so99572bwz.34 for ; Sat, 23 Jan 2010 08:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=p9GrblTum/VKwOLPXXxIclKwAv1aNR+a4aM/26XMpBs=; b=M8CK8Z9VGcD1RQTUuUUukifXdIvYeMmaWbFsD7DKM15WjQQw/60nY4ZA/+fVbiJhwY r1/ejKUJVwpZbai+9eza/DxZTtR+m6dfG4tDRIzdPXxX4/OeDYr8CViO/2Zw5bRRbH3W MXCPhUgj10evjToJoplF7XI/uH+WCIqmolBDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=iYHZwGY6fXkfBEteEMN6ZrLv408n6vwfVm6Prse/QEebsyHwobsafcmTSD/Pjbpp0c HQXVS2HScfkelR1yDPZckv1lGKzkLzGV7+vaL5IcGPWEponEIJHq6j56SUFWg9r6FAnG KQpjvgmQ/9YRqTUjNy1Epy+l+qDTs+NiFcgNI= Original-Received: by 10.204.42.6 with SMTP id q6mr614374bke.120.1264265574517; Sat, 23 Jan 2010 08:52:54 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55768 Archived-At: --===============1368211374== Content-Type: multipart/alternative; boundary=000325556c92788e19047dd7c417 --000325556c92788e19047dd7c417 Content-Type: text/plain; charset=ISO-8859-1 In november last year Hans Hagen was so kind to send me a copy of back-u3d.mkiv which is now included in the latest beta. As Hans mentioned the code he gave me is untested. After a couple of tests here are my findings *) The preview does not work at this moment. I only see a light blue square which can be activated. After which the 3d viewer shows the embedded 3d image *) Specifying several views as shown in back-u3d.mkiv shows up in the resulting pdf as "unknown view" *) I also experimented with different values for coo, c2c, roll etc. When not specifying any of these settings the embedded 3d is always shown with the incorrect roll i.e the roll is always 90 degrees off For anyone interested, the 3d file was produced with Asymptote 1.91 ( http://asymptote.sourceforge.net/) =============== Context sample code ============================== \starttext \startluaparameterset [u3d:myset:display:1] toolbar=false, preview="prcu3d/loading.png", view = { name = 'default', bg = {1,1,1}, mag = 25, coo = {2,2,2}, c2c = {0,0,1}, rot = {40,0,60}, roo = 2, lights = 'CAD' } \stopluaparameterset \useexternalfigure [cubes] [prcu3d/cubes.prc] [width=\textwidth, height=0.5\textwidth, display=u3d:myset:display:1] \placefigure[here]{3d cube}{\externalfigure[cubes]} \stoptext ========================== end of Context sample code ======================================= --000325556c92788e19047dd7c417 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In november last year Hans Hagen was so kind to send me a copy of back-u3d.= mkiv which is
now included in the latest beta. As Hans mentioned the co= de he gave me is untested.

After a couple of tests here are my find= ings

*) The preview does not work at this moment. I only see a light blue sq= uare which can be activated.
After which the 3d viewer shows the embedde= d 3d image
*) Specifying several views as shown in back-u3d.mkiv shows u= p in the resulting pdf as "unknown view"
*) I also experimented with different values for coo, c2c, roll etc. When n= ot specifying any of these settings
the embedded 3d is always shown wit= h the incorrect roll i.e the roll is always 90 degrees off

For anyon= e interested, the 3d file was produced with Asymptote 1.91 (http://asymptote.sourceforge.net/)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Context sample code =3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
\starttext
\startluaparameterset [u3d:myset:display:1]=A0=A0=A0 toolbar=3Dfalse,
=A0=A0=A0 preview=3D"prcu3d/loading.pn= g",
=A0=A0=A0 view =3D {
=A0=A0=A0=A0=A0=A0=A0 name =3D 'def= ault',
=A0=A0=A0=A0=A0=A0=A0 bg =3D {1,1,1},
=A0=A0=A0=A0=A0=A0=A0 mag =3D 25,<= br>=A0=A0=A0=A0=A0=A0=A0 coo =3D {2,2,2},
=A0=A0=A0=A0=A0=A0=A0 c2c =3D = {0,0,1},
=A0=A0=A0=A0=A0=A0=A0 rot =3D {40,0,60},
=A0=A0=A0=A0=A0=A0= =A0 roo =3D 2,
=A0=A0=A0=A0=A0=A0=A0 lights =3D 'CAD'
=A0=A0= =A0 }
\stopluaparameterset
\useexternalfigure=A0 [cubes]=A0 [prcu3d/c= ubes.prc]=A0 [width=3D\textwidth,=A0=A0 height=3D0.5\textwidth, display=3Du= 3d:myset:display:1]
\placefigure[here]{3d cube}{\externalfigure[cubes]}
\stoptext
=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D en= d of Context sample code =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--000325556c92788e19047dd7c417-- --===============1368211374== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1368211374==--