TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139568 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57256 times)
  4. USB Device Library (47631 times)
  5. Network WiFi Library (43222 times)
  6. FT800 Library (42566 times)
  7. GSM click (29932 times)
  8. mikroSDK (28292 times)
  9. PID Library (26934 times)
  10. microSD click (26309 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Mikromedia 3D Sprites

Rating:

10

Author: Andrew Hazelden

Last Updated: 2014-10-22

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Gaming and Fun

Downloaded: 462 times

Followed by: 2 users

License: MIT license  

This firmware example uses the Libstock TFT Graphics library to render animated 3D Sprites on a Mikromedia PIC32 board. The demo can be controlled using the touch panel or the Mikromedia Gaming Shield.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Mikromedia 3D Sprites" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Mikromedia 3D Sprites" changes.

Do you want to report abuse regarding "Mikromedia 3D Sprites".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

This example plots 3D sprites on a Mikromedia PIC32 screen using the TFT Graphics library. You can use the buttons on a MikroElektronika Mikromedia Gaming Shield to control the rotation of the shapes, and change the active model between a plane, jack, cube, pyramid, and a octahedron. The code was written using MikroC Pro for PIC32 and VisualTFT.

This example is based upon the classic 1990's Metal Basic sprite demo "TriCube" by Ivan Freyman.

Demo Video

Here is a quick demo of the Mikromedia 3D Sprites firmware.

Watch on YouTube

User Input

  • Tap the Mikromedia screen to change the model.

Gaming Shield Controls:

  • Press the START button to change the model.
  • Press the CIRCLE button to show coordinates.
  • Use the ARROW/X/Triangle buttons for rotation.
  • The square button will pause the screen for 5 seconds.

Installation

  1. Install Firmware: Flash the firmware file mmbSprites-PIC32.hex to your Mikromedia PIC32 board.
  2. Power up the Mikromedia board and get ready to try out the MMB Sprites demo!

Development Tools Used

Compatible SW:

mikroC PRO for PIC32
http://www.mikroe.com/mikroc/pic32/

VisualTFT
http://www.mikroe.com/eng/products/view/627/visual-tft/

TFT Graphics by Bitwise (required download)
http://www.libstock.com/projects/view/914/tft-graphics-library

Andrew Hazelden's Mikromedia Gaming Shield Library (included with the current source code)
http://www.libstock.com/projects/view/389/andrew-hazelden-s-mikromedia-gaming-shield-library

Hardware Required:

Dev.Board:
Mikromedia PIC32
http://www.mikroe.com/mikromedia/pic32/

Controller:
Mikromedia Gaming Shield
http://www.mikroe.com/mikromedia/shields/gaming/    

ALSO FROM THIS AUTHOR

Andrew Hazelden's Mikromedia Gaming Shield Library

5

This is an input library for the MikroElektronika Mikromedia Gaming Shield. It is compatible with the Mikromedia dsPIC33 and PIC32 boards. The library is designed to get you started with the Gaming Shield and provides control over the 4 LEDs on the Gaming Shield and reads the inputs from the buttons.

[Learn More]

Using a GPS Click on a Raspberry Pi

5

gps2udp is a script that connects a MikroElektronika GPS click board via USB to a Raspberry PI. The serial GPS data is pushed out through a UDP socket onto the network interface. The GPS is set to run at 115200 baud using the stty command.

[Learn More]

PIC32 Soccer Bounce Demo

5

The Soccer Bounce demo uses the accelerometer input to roll a soccer ball around on a Mikromedia PIC32 screen. The code was written using MikroC Pro for PIC32 and VisualTFT. The soccer ball sprite graphics are rendered using Dragan Regodic's excellent TFT Graphics library: http://www.libstock.com/projects/view/914/tft-graphics-library

[Learn More]