Message Boards Message Boards

Rotating 3-d graphics in Cloud deployed Manipulates

Posted 10 years ago

If one deploys a simple Manipulate containing a 3D graphic to the cloud as in

CloudDeploy[Manipulate[Plot3D[Sin[x y+a],{x,0,3},{y,0,3}],{a,0,1}]]

the resulting hosted cloud interactive object does not allow one to interactively rotate the contained graphic with the mouse as one would be able to do in a Notebook.

In contrast simply Cloud deploying the graph does permit this as in

CloudDeploy[Plot3D[Sin[x y+3],{x,0,3},{y,0,3}]]

Is there a clear reason for this difference in functionality? Or is it a bug or "coming feature"?

POSTED BY: David Reiss
4 Replies
Posted 10 years ago

We improved our Manipulate support some time ago, but you may or may not have tried your example recently. You can now interact with Graphics and Graphics3D within Manipulate.

You can now rotate the 3D plot in this example:

CloudDeploy[Manipulate[Plot3D[Sin[x y+a],{x,0,3},{y,0,3}],{a,0,1}]]

As well as select and resize the plot in this example:

CloudDeploy[Manipulate[Plot[Sin[x (1 + a x)], {x, 0, 6}], {a, 0, 2}]]
POSTED BY: John Pacey

Thanks Chad. Any thoughts on the partially working behavior of the DynamicModule?

POSTED BY: David Reiss

The current behavior is as designed. It should be implemented soon.

POSTED BY: Chad Knutson

Note that if one tries something like this DynamicModule equivalent:

CloudDeploy[
 Panel@DynamicModule[{a},
   Column[{
     Slider[Dynamic[a], {0, 3}],
     Dynamic@
      Plot3D[Sin[x y + a], {x, 0, 3}, {y, 0, 3}, ImageSize -> 300]
     }
    ]]]

then rotating the graphic sort of works...

It can be rotated (but changes its appearance and size when doing so) some of the time. But after rotating it snaps back to its original orientation after a brief delay. Sometime then it completely stops working and one can only select the graphic.

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract