ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: gummybears <oracleopp@gmail.com>
To: ntg-context@ntg.nl
Subject: U3D inclusion
Date: Sat, 23 Jan 2010 17:52:54 +0100	[thread overview]
Message-ID: <2c7b6d221001230852h6b7a12f1k486fe6c628cb00fb@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1455 bytes --]

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
=======================================

[-- Attachment #1.2: Type: text/html, Size: 1654 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2010-01-23 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 16:52 gummybears [this message]
2010-01-24 21:55 ` Michail Vidiassov
2010-03-27 17:50 ` Michail Vidiassov
2010-03-28 10:32   ` Hans Hagen
2010-01-27 14:53 gummybears

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c7b6d221001230852h6b7a12f1k486fe6c628cb00fb@mail.gmail.com \
    --to=oracleopp@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).