Dear Hans,
On Wed, 24 Mar 2010, Hans Hagen wrote:
there is u3d support presen tbut nobody tested it
thank you for your latest effort to put u3d support in a working state,
but as of now even the most basic test from back-u3d.mkiv does not work
and is not supposed to:
grph-u3d.lua needs adding to the preamble
local pdfannotation = nodes.pdfannotation
local todimen = string.todimen
and replacing
node.write(annotation... with node.write(pdfannotation(annotation...
to at least make code run without throwing error messages.
lpdf-u3d.lua has more severe problem:
-- weird, has to be a /Form and not an /Image so we need a wrap = true
key
-- local figure = img.immediatewrite { filename = preview, width =
width, height = height }
local figure = img.immediatewrite { stream = ".5 .75 .75 rg 0 0 20 10 re
f", bbox = {0,0,20,10 } }
shows that option to include a bitmap preview image into 3d
annotation is just commented out.
On the other hand, an approach like in LaTeX package attachfile2 may be
convenient - a PDF with just 3D annotation and minimal support elements
(with or without preview) is attached to the main document, that has a
clickable image that activates that attached PDF document in a separate
window.
In this case the preparation of the attaced PDF can be
completely delegated to external utility.
Does attachfile2 analog work in ConTeXt now?
Where to look for usage examples?
Sincerely, Michail
___________________________________________________________________________________
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
___________________________________________________________________________________