Coder Social home page Coder Social logo

tommyteavee / artoolkitjpctbaselib-master Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shiryabdo/artoolkitjpctbaselib-master

0.0 1.0 0.0 17.25 MB

License: Other

Java 70.20% Brainfuck 5.96% C 5.96% Makefile 5.96% Forth 5.96% GAP 5.96%

artoolkitjpctbaselib-master's Introduction

ArToolKitJpctBaseLib

This project provices an easy way to create AR applications for Android using ARToolKit and jPCT-AE together.

  • ARToolKit provides marker detection and tracking, but the interface is raw OpenGL
  • jPCT-AE is a 3D engine that provides high level concepts such as Camera, Object3D, Textures, ObjectLoaders, etc.

By putting them together we can create rich AR application in a simpler way. This library is a wrapper of ARToolKit that connects it with jPCT-AE.

This project is an extension to the ARBaseLib project of ARToolkit.

ARToolKit is provided under LGPL, and so is this wrapper.

Configuration

For Android Studio, you just need to add the following to dependencies of the build.gradle of your project:

dependencies {
    compile(group: 'org.artoolkit.ar.jpct', name: 'ArJpctBaseLib', version: '0.9', ext: 'aar')
    [...]
}

For Eclipse you need to download the source code and add it as a library.

Samples

  • ArJpctSample: A sample project displaying a cube over a hiro marker and a plane with a texture over a kanji marker
  • NftWithModels: Displays a textured plane and a 3D object over an NFT marker (Natural Feature Tracker - normal images)
  • CubeSample: Uses a special marker that is an array of markers in the geometry of a cube

Notes about jPCT-AE

  • Textures are expecting a size that is multiple of 2 (unless you are using NPOTTexture)
  • The images should be placed under drawable-nodpi or the system will mess up the dimensions

Other notes

  • You can use this library exactly in the same way as you'd use ArBase, just extend from the ArBase classes (this can be handy if you want to have simpler gradle dependencies)
  • ARToolKit uses milimeters as units. This is relevant when loading 3D Objects, consider the scale
  • The NTF project uses free available model from NASA website
  • FOV is not read correctly on same cases, but seems to be working fine for 640x480 on most phones

artoolkitjpctbaselib-master's People

Contributors

shiryabdo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.