Re: [NTG-context] U3D inclusion

2010-03-28 Thread Hans Hagen

On 27-3-2010 18:50, Michail Vidiassov wrote:


Most likely a typo bug in lpdf-u3d (at the start of make3dview - if you
are listening, Hans ;)
Have a fix for that too.


what typo?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] U3D inclusion

2010-03-27 Thread Michail Vidiassov

Dear gummybears (and hopefully Hans),

On Sat, 23 Jan 2010, gummybears wrote:


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
The developers are waiting for some functions to appear in luatex before 
doing the preview the right way. I have a patch implementing preview somehow.



*) Specifying several views as shown in back-u3d.mkiv shows up in the resulting pdf as 
unknown view

Most likely a typo bug in lpdf-u3d (at the start of make3dview - if you are 
listening, Hans ;)
Have a fix for that too.


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


Most likely my fault, but there are different points of view on what is 
default camera position (moview15, Asymptote, OpenGL, U3D, Adobe Viewer),

so most likely the default default is not the one Asymtote expects.
Plus Asymptote is micromanaging things - it not only sets camera,
but also moves the model itself, to be better seen, apparently.
We'll have to dig into that someday - see you on Asymptote forum if 
you wanna play and have time for technicalities.


 Sincerely, Michail
PS. Sorry for slow answer - had to fix Asymptote PRC output first.

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


Re: [NTG-context] U3D inclusion

2010-01-24 Thread Michail Vidiassov

Dear gummybears,

On Sat, 23 Jan 2010, gummybears wrote:


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


May you provide asy, png, prc and pdf (both ConTeXt and Asymptote-LaTeX 
versions)?

   Sincerely, Michail
PS. That was me who was to test that u3d/prc incusion code...

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


[NTG-context] U3D inclusion

2010-01-23 Thread gummybears
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
===
___
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
___