HomefieldOfView | SPi-V dev

Navigation

user

Snapshots in SPi-V/Director

Can you tell me where to find more about giving the user the possibility to do own photos (snapshots) in a virtual tour (created in SPi-V and Director) and save them on the hard disk?

Karol

Re: Snapshots in SPi-V/Director

The easiest way is to use any screenshot application, or just control/printscreen and paste into paint/photoshop/whatever.

The more complicated way is to use an xtra, like Sharp Export. You would have to capture the .image of the SPi-V sprite. However, since the SPi-V sprite is Direct to Stage, it has a black-only .image.

Two solutions; one is to change the preferred3dRendered of the SPi-V sprite to #software (something like 'tell sprite 1 to the preferred3dRendered=#software'), or you have to set the directToStage property of the 3d sprite in SPi-V to false (something like 'tell sprite (1) to spv().directToStage = false'.

Then you can get the image of the SPi-V sprite, or the stage, eg:
member("some member").image = (the stage).image.duplicate()

Both methods will impact the performance of SPi-V, so you have to put the 3d renderer back to #auto and/or turn the directToStage property back to true.