TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 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 (136718 times)
  2. FAT32 Library (69925 times)
  3. Network Ethernet Library (55939 times)
  4. USB Device Library (46261 times)
  5. Network WiFi Library (41884 times)
  6. FT800 Library (41150 times)
  7. GSM click (28979 times)
  8. PID Library (26412 times)
  9. mikroSDK (26356 times)
  10. microSD click (25353 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: 440 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

mikroMMB PIC32 3D Accelerometer Demo

5

This firmware is a 3D demo for the accelerometer built into the mikromedia PIC32 board from MikroElektronika. The numbers onscreen are the tilt in degrees. The 3D axis view compass shows the orientation of the X, Y, and Z axes. The red line is the X axis, the green line is for the Y axis, and the blue line is the Z axis.

[Learn More]

I Heart mikroC - Custom LCD Character Example

5

This is a source code example that shows how to create a custom LCD character in mikroC Pro for PIC.

[Learn More]

Midnight Blue Color Scheme for mikroC Pro

0

The Midnight Blue color scheme is used to customize the syntax highlighting in mikroC Pro. I created this color scheme to make the mikroC programming experience even better. The scheme is designed to work with all of the MikroElektronika MikroC Pro compilers.

[Learn More]