Giter Site home page Giter Site logo

shelf's Introduction

what is it

COJT SW 5th用に作った何か。

HTML5とWebGLを駆使して作成したカバンの商品カタログっぽいものです。

deploy

一応、次のアドレスにデプロイしています。

COJT用の何か

ファイル構成

自分用のメモなので、適当な上に書きかけです。

  • shelf.mxp ... マトリックスなんとかのプロジェクトファイル。バイナリ。
  • shelf.webgl/ ... 上のプロジェクトから作成したHTML5用のランタイムファイルを生成するディレクトリ。
    • assets/ ... bootstrap用のディレクトリ。
    • images/ ... 画像を置くディレクトリ。
    • js/ ... JavaScript用のディレクトリ。
      • matrixengine-controller-skeleton.js ... MVCでいうCの部分だが、自動生成されたファイルなので使わない。
      • controller.js ... 上を書き換えて使えるようにしたファイル。どこを書き換えたかは後述。
      • model.js ... MVCのMの部分。ほとんどの変更はこのファイル。Modelクラスを定義している。
      • その他の.js ... プロジェクトが自動生成したファイルなので、ランタイムを作るたびに上書きされるので弄らない。
    • index.html ... メインのHTMLファイル。
    • sample.html ... プロジェクトが自動生成したゴミ。基本的には使わない。
    • manual.html ... 取り扱い説明書。
    • deploy ... デプロイ用のシェルスクリプト。
  • misc/ ... テスクチャに使えそうな画像を適当に置くディレクトリ。
  • bag_images/ ... バックの商品画像置き場。
  • bag_info/ ... バックの情報用のCSVなどを置くディレクトリ。
    • bags.csv ...バックの情報用のCSV
    • csv_to_array.rb ... CSVを入力として JavaScript の Array 風に変換して出力するスクリプト。
    • array.js ... 上のファイルの成果物。
  • hls_spot/ ... 画像の色相を計算するためのXcodeのプロジェクト。openCVを利用。
  • preview.rb ... WEBrick を利用して localhost:3000 でプレビューするためのスクリプト。

controller.js の作り方

  1. cp matrixengine-controller-skeleton.js controller.js
  2. vimで、:%s/(\*\\\//(\*\//g をする。
  3. 1行目に、var model = new Model(); を追加。
  4. 関数var MxeDefaultController = function(contents) {}; の最後の行に、model.init(contents);  を追加。

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.