ShiVa3D and mobile device APIs
10th March, 2011
How ShiVa3D works with dedicated platforms such as a camera stream or accelerometer.
ShiVa3D has no specific API for mobile or dedicated platforms such as a camera stream or accelerometer. These are not platform-dependent. Rather than thinking about platform dependence, you should start using these as you any other application.
For example, if you want to use an accelerometer, there is the generic handler onJoypadMove which handles the iPhone accelerometer, all mobile handset accelerometers, the Wiimote, PS3 SixAxis or any other driver-implemented accelerometer sensor.
A camera stream can be retrieved by the video API and put into a pixelmap (resource dynamic image buffer, usable as an array or directly as a texture).
Since ShiVa3D can embed native C script, it has become an open 3D cross-platform framework and can be used as a classic C/C++ library into your visual or xcode. Even so, we would always advise developers that it’s important to understand the basic concept of ShiVa3D before starting to develop in a native framework.