ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: U3D inclusion
@ 2010-01-27 14:53 gummybears
  0 siblings, 0 replies; 5+ messages in thread
From: gummybears @ 2010-01-27 14:53 UTC (permalink / raw)
  To: ntg-context


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

The files you asked, are attached.
Thanks

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

[-- Attachment #2: 3d.tex --]
[-- Type: application/x-tex, Size: 1061 bytes --]

[-- Attachment #3: loading.png --]
[-- Type: image/png, Size: 18283 bytes --]

[-- Attachment #4: cubes.prc --]
[-- Type: application/vnd.palm, Size: 27272 bytes --]

[-- Attachment #5: 3d.tex --]
[-- Type: application/x-tex, Size: 1061 bytes --]

[-- Attachment #6: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread
* U3D inclusion
@ 2010-01-23 16:52 gummybears
  2010-01-24 21:55 ` Michail Vidiassov
  2010-03-27 17:50 ` Michail Vidiassov
  0 siblings, 2 replies; 5+ messages in thread
From: gummybears @ 2010-01-23 16:52 UTC (permalink / raw)
  To: ntg-context


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-28 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-27 14:53 U3D inclusion gummybears
  -- strict thread matches above, loose matches on Subject: below --
2010-01-23 16:52 gummybears
2010-01-24 21:55 ` Michail Vidiassov
2010-03-27 17:50 ` Michail Vidiassov
2010-03-28 10:32   ` Hans Hagen

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).