Steve Gray
MathGL3d has a stereo display for the usual Quadro cards
you need shutter eye glases, or with a mono display the usual
Red/Cyan eye glases
Regards
Jens
Yes the two viewpoints can be adjusted together.
Here is a code which can do the job in Mathematica 6.0:
Manipulate[
With[{v = RotationTransform[Angle, {0, 0, 1}][{3, 0, 3}],
w = RotationTransform[Angle + 0.1, {0, 0, 1}][{3, 0, 3}]}, Row[{
Graphics3D[{Sphere[], Cuboid[]}, ViewPoint -> v, SphericalRegion ->
True,
ImageSize -> 200],
Graphics3D[{Sphere[], Cuboid[]}, ViewPoint -> w, SphericalRegion ->
True,
ImageSize -> 200]}]], {Angle, 0, 2 Pi}]
Best regards,
Pianiel
Jakub
Manipulate[
GraphicsRow[{
Plot3D[Sin[x] Cos[y]^2, {x, 0, 2 Pi}, {y, 0, 2 Pi},
PlotStyle -> Directive[Opacity[0.3], Red],
ViewPoint -> {
dist Sin[zen] Cos[azi + dazi],
dist Sin[zen] Sin[azi + dazi],
dist Cos[zen]
},
Background -> Black, MeshStyle -> Red, AxesStyle -> Red, Boxed -> False],
Plot3D[Sin[x] Cos[y]^2, {x, 0, 2 Pi}, {y, 0, 2 Pi},
PlotStyle -> Directive[Opacity[0.1], Cyan],
ViewPoint -> {
dist Sin[zen] Cos[azi],
dist Sin[zen] Sin[azi],
dist Cos[zen]},
Background -> None, MeshStyle -> Cyan, AxesStyle -> Cyan, Boxed -> False
]
}, spac],
{{azi, 1, "Azimuth"}, -Pi, Pi}, {{zen, 1, "Zenith" }, -Pi, Pi},
{{dist, 3.5, "Perspective"}, 0, 5},
{{dazi, 0.1, "Eye angle difference"}, -Pi/4, Pi/4},
{{spac, -350, "Image spacing"}, 0, -500}, SaveDefinitions -> True]
"Steve Gray" <ste...@roadrunner.com> píąe v diskusním příspěvku
news:fpdvnd$s1r$1...@smc.vnet.net...
http://www.mathematica-journal.com/issue/v1i3/
David Bailey
http://www.dbaileyconsultancy.co.uk
Here's another way to rotate two objects together (just start dragging
one of them):
Row[
{Graphics3D[Cuboid[], ViewPoint -> Dynamic[vp],
ViewVertical -> Dynamic[vv], SphericalRegion -> True],
Graphics3D[Cuboid[], ViewPoint -> Dynamic[vp],
ViewVertical -> Dynamic[vv], SphericalRegion -> True]}
]
This example just illustrates the concept, of course it needs a lot more
work to build something useful and usable.