README 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. INTRO
  2. ==========
  3. NMap Carousel application is demonstrating the normal mapping technique
  4. using Qt5. Normal mapping is used for making the icons appear 3D with
  5. lighting and shadows. To increase this impression, there are also extra
  6. shadows reflected behind the icons.
  7. If you want to utilize this in your own Qt5 QML application:
  8. Copy NMapEffect.qml and NMapLightSource.qml, use your images with
  9. suitable lighting settings and implement rest of the UI. You can also
  10. edit the NMapEffect shader to suit your own needs.
  11. RUNNING
  12. ==========
  13. To run this application you need relatively recent build of Qt5:
  14. - http://qt-project.org
  15. - http://qt.gitorious.org/qt/qt5
  16. There are two different ways to run the application:
  17. 1) If your target platform contains 'qmlscene' binary, just use it:
  18. ---
  19. cd Qt5_NMap_CarouselDemo
  20. [path to Qt5]/qtbase/bin/qmlscene Qt5_NMap_CarouselDemo.qml
  21. ---
  22. 2) Alternatively, a simple launcher is provided to start the application:
  23. ---
  24. cd Qt5_NMap_CarouselDemo
  25. [path to Qt5]/qtbase/bin/qmake
  26. make
  27. ./Qt5_NMap_CarouselDemo
  28. ---
  29. The run application in fullscreen mode, use '--fullscreen' parameter for
  30. qmlscene or launcher. If you want to tweak the window resolution,
  31. modify 'width' and 'height' properties in Qt5_NMap_CarouselDemo.qml
  32. LICENSE
  33. ==========
  34. Source codes are licensed under a Creative Commons Attribution 3.0 Unported
  35. License. http://creativecommons.org/licenses/by/3.0/
  36. No attribution required, but feel free to mention us or
  37. contact info@quitcoding.com
  38. Qt and the Qt logo is a registered trade mark of Digia plc.
  39. Icons 'Origami' by Double-J Design http://www.doublejdesign.co.uk