Difference between revisions of "GLScene/ja"

From Lazarus wiki
Jump to navigationJump to search
 
Line 137: Line 137:
 
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=98986&release_id=364007 binary win32 release] or [http://www.skinhat.com/lazarus http://www.skinhat.com/lazarus]
 
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=98986&release_id=364007 binary win32 release] or [http://www.skinhat.com/lazarus http://www.skinhat.com/lazarus]
  
=== Installation version 1.0.0.2 ===
+
=== インストール方法 version 1.0.0.2 ===
'''Requires fpc 2.1.4 or greater  and lazarus 0.9.23 rev. 11348 or greater !!'''
+
'''fpc 2.1.4以上 lazarus 0.9.23 rev. 11348以上が必要です'''
  
* '''extracting the sources'''
+
* '''ソースコードの展開'''
 
** ZIP:
 
** ZIP:
 
*** in "lazarus/components/" folder execute "unzip glscene-1.0.0.2.zip" <br>This will create the lazarus/components/glscene/ folder
 
*** in "lazarus/components/" folder execute "unzip glscene-1.0.0.2.zip" <br>This will create the lazarus/components/glscene/ folder
Line 149: Line 149:
 
   
 
   
  
* '''Finish the installation:'''
+
* '''インストール方法'''
 
** copy "lazarus/components/glscene/globallinks/*.lpl" to "lazarus/packager/globallinks/"
 
** copy "lazarus/components/glscene/globallinks/*.lpl" to "lazarus/packager/globallinks/"
 
** start lazarus
 
** start lazarus
Line 156: Line 156:
 
** click "Install selection" button
 
** click "Install selection" button
 
** click "Save and rebuild IDE" button
 
** click "Save and rebuild IDE" button
*** ATTENTION: There may occur an error that package "jpegforlazarus" is not found. If so do the following:
+
*** 注意: 「package "jpegforlazarus" is not found」というエラーがでるかもしれません。このときは下記のようにしてください:
 
*** Components --> Open loaded package...
 
*** Components --> Open loaded package...
 
*** Choose "glscenelazarus" (Version 1.0.0.3) and click "Open..."
 
*** Choose "glscenelazarus" (Version 1.0.0.3) and click "Open..."
Line 171: Line 171:
 
***To correct the unit GLLCLFullscreenViewer: Change "RegisterClasses([TGLSceneViewer, TGLFullScreenViewer]);" to "RegisterClasses([TGLFullScreenViewer]);"
 
***To correct the unit GLLCLFullscreenViewer: Change "RegisterClasses([TGLSceneViewer, TGLFullScreenViewer]);" to "RegisterClasses([TGLFullScreenViewer]);"
  
* '''List of packages:'''
+
* '''パッケージのリスト:'''
 
** '''glscenelazarus'''    The main package.
 
** '''glscenelazarus'''    The main package.
 
** '''glscenecgshader'''    Cg Shader components
 
** '''glscenecgshader'''    Cg Shader components
Line 178: Line 178:
 
** '''gls_winonly'''        Windows only, contains sound support over mmsystem, BASS support and GLScreenSaver component
 
** '''gls_winonly'''        Windows only, contains sound support over mmsystem, BASS support and GLScreenSaver component
  
* '''Сompilation "demo" - mistakes:'''
+
* ''' "demo"をコンパイルするときに:'''
**If not found class - TGLSceneViewer: To correct the uses (demo): GLLCLViewer - at GLViewer
+
**「not found class - TGLSceneViewer」というエラーが出たら: (demo)のUsesをGLViewerからGLLCLViewerに変更してください
  
 
===ヘルプ===
 
===ヘルプ===
 
ヘルプは、[http://www.glscene.org Main GLScene Page]にあります。
 
ヘルプは、[http://www.glscene.org Main GLScene Page]にあります。

Latest revision as of 03:16, 4 September 2011

Deutsch (de) English (en) français (fr) Bahasa Indonesia (id) 日本語 (ja) 한국어 (ko) português (pt) русский (ru) 中文(中国大陆)‎ (zh_CN)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

About

GLSceneはOpenGLベースの3Dライブラリです。最初はDelphi向けに書かれましたが、現在はC++Builder,Kylix,Delphi,そしてLazarusで動作します。

主な特徴 :

シーンの記述

  • 階層的なオブジェクト構造。メモリが許す限り拡張が可能です。
  • インタラクティブなシーン管理。(numerous Delphi experts)
  • それぞれのオブジェクトごとに回転や移動が簡単な関数
  • 簡単に拡張可能な定義済みオブジェクト(all standards from cube to teapot to sprite)
  • コンポジットオブジェクトを管理するための構造化オブジェクト(dummy cube, proxy object)
  • プロシージャなオブジェクト(heightfield, revolution solids, pipes, tesselators...)
  • 2次元、1次元オブジェクトの統合化されたサポート(sprites, lines with spline support) fully integrated
  • HUD オブジェクト (sprites rendered in 2D coordinates)
  • Utility オブジェクト (grids, skydome, arrows...)
  • OpenGLにダイレクトアクセス可能なサポートクラス
  • シーンオブジェクト階層のどこでも利用できる視点と光源オブジェクト
  • アニメーション用途に簡単に拡張可能なふるまいオブジェクト
  • オブジェクトのレンダリングの前後やシーン効果に利用できる、拡張可能な特殊効果per-オブジェクト
  • 部分座標系のサポート どのようなオブジェクトやオブジェクト構造でも部分化できます。
  • 自動的で正確な正規化ベクトル計算(与えられたスムージング用のファイルをつかって)での、3D Studioファイルのインポートと、テクスチャのインポート
  • そのほかのインポートされたフォーマット : OBJ/OBJF, SMD, MD2, STL, TIN, PLY

(訳注:オブジェクトとは、特にGLScene内のグラフィカルな立体オブジェクトを指す)


マテリアル(表面質感)

  • 使いやすく最適化されているマテリアルオブジェクト
  • 共有し、再利用可能するマテリアルのためのマテリアルライブラリ
  • 環境光,拡散光,放射光,透過光,と輝度をサポート
  • ブレンディングモードのサポート(透過性、加算性...)
  • アルファチャンネル自動生成
  • 圧縮形式(DXT,S3TC他)を含むOpenGLテクスチャフォーマットのサポート
  • 汎用のプラグインシェーダーをサポート
  • 高度なCGのシェーダーをサポートするクラス
  • テクスチャ用にポリモーフィック(段階的に変化)なイメージをサポートし、かつ簡単に拡張が可能。
  • 標準的な色の定義に加え、clrCornflowerBlue や clrCoolCopperといった、150以上の(簡単に拡張可能な)定義済みカラーと、RGBAを直接指定が可能。
  • テクスチャの座標系に依存せず、テクスチャの移動とスケーリングが簡単に行えるプロパティ
  • 32bitビットマップをサポートするクラス


レンダリング

  • ハードウエアOpenGLドライバ(訳注=ハードウエアアクセラレーション)が利用可能な場合は自動的に利用します。
  • 焦点をあわせたり、視点を向けるのに、良く出来たカメラモデル
  • 簡単にカメラを切り替えて、シーンの複数のビューが可能
  • 霧やビュー深度のサポート
  • 動的な解像度の変化に対応したフルスクリーンをサポート
  • 反射や鏡面効果
  • ダイナミックな影の映りこみ
  • ハイパフォーマンスなシーン全体の透過ピクセルのシステムサポート
  • 自動的な視体積クリッピング


アニメーション

  • 時間の進行イベントの伝達
  • 骨格アニメーション(1頂点あたり複数の骨格)
  • フレーム挿入とモーフターゲット
  • 拡張可能なビヘイビア
  • 動的な物理シミュレーション: 慣性、加速、湿気、および力のアプリケーション
  • 自動的でリアルタイムなシーンタイミング生成


インターフェース

  • ピックするオブジェクトを決定するために、使いやすい関数類
  • カメラ動作の補助関数
  • ピックされたオブジェクトの変換用の補助関数
  • スクリーンとワールド座標系、レイキャスティング間の変換用の補助関数


ユーティリティ

  • 最適化されたジオメトリ関数とユーティリティ(ベクター、4元数、行列)
  • キュービックスプラインをサポートする関数とクラス
  • メッシュ操作と最適化(縞線化、頂点キャッシュ認識、その他)
  • 全機能のスクリーンセーバーを、数クリックで生成するコンポーネント
  • 正確なフレームレートの決定
  • 非同期タイマ(マルチスレッド化されている)
  • ジョイスティックのサポート
  • 非同期のキーボードアクセス、キーマップのサポート


スクリーンショット

Gl effect.jpg Gl cel.jpg Gl trinity.jpg
Gl ode.jpg

著者

Author: initially Mike Lischke
at time maintained by Eric Grange
LCL Port: Christian Ulrich

Download

最新の安定リリース版はこちら。 Lazarus CCR Files page Lazarusのインストーラで、LazarusのIDE上にGLSceneがGLSceneのデモと一緒にはいっています。

The latest stable release can be found on the Lazarus CCR Files page together with a lazarus installer with GLScene already in the Lazarus IDE and GLScene demoes.

SVN

you can checkout the actual source from
http://svn.freepascal.org/svn/fpcprojects/glscene/trunk/

The command would be:

svn co http://svn.freepascal.org/svn/fpcprojects/glscene/trunk glscene

This will download the trunk (main) repository to "glscene" dir to whereever you invoked the command from.

In windows you can use clients like tortoise SVN and others.

バグレポート/機能の要望

Bug Reporting/Featurerequest

Change Log

  • 10.08.05 Too many changes to post here see cvs history
  • 16.07.05 GLScene 0.9.X Port
  • look at GLScene Sourceforge Account for complete Changelog

Status: Beta

インストール

  • lazarus\components\GLSceneにディレクトリを作成してください。
  • そのディレクトリに入り、Zipファイルからファイルを解凍します。
  • Lazarusを起動します。
  • 「コンポーネント/パッケージファイルを開く」で.lpkパッケージを開きます。WindowsならLazarusWin、LinuxならLazarusLinを開いてください。
  • コンパイルをクリックしてください。
  • インストールをクリックしてください。

ヒント:"GLGraphicsが見つかりません"というエラーが表示されるかもしれません。ご心配なく。「ツール->Lazarusの再構築」を行い同じことをすれば大丈夫です。


Lazarusの完全インストールをすれば、GLSceneはIDEで利用可能になっています。 binary win32 release or http://www.skinhat.com/lazarus

インストール方法 version 1.0.0.2

fpc 2.1.4以上 lazarus 0.9.23 rev. 11348以上が必要です

  • ソースコードの展開
    • ZIP:
      • in "lazarus/components/" folder execute "unzip glscene-1.0.0.2.zip"
        This will create the lazarus/components/glscene/ folder
    • SVN:
      • in "lazarus/components/" folder execute
        svn co http://svn.freepascal.org/svn/fpcprojects/glscene/trunk glscene
        This will create the lazarus/componets/glscene/ folder
      • Tortoise SVN: add the folder "glscene" manually so you have lazarus/components/glscene. Then right-click onto new folder and choose "SVN Checkout...". At field "URL of repository" add
        http://svn.freepascal.org/svn/fpcprojects/glscene/trunk
        Confirm by "OK".


  • インストール方法
    • copy "lazarus/components/glscene/globallinks/*.lpl" to "lazarus/packager/globallinks/"
    • start lazarus
    • select "Configure installed packages ..." from the "Components" menu
    • select "glscenelazarus" from the "Available packages" list
    • click "Install selection" button
    • click "Save and rebuild IDE" button
      • 注意: 「package "jpegforlazarus" is not found」というエラーがでるかもしれません。このときは下記のようにしてください:
      • Components --> Open loaded package...
      • Choose "glscenelazarus" (Version 1.0.0.3) and click "Open..."
      • In the following list go down to "Required Packages" and remove dependency from "jpegfromlazarus".
      • Look for unit "jpeg" in folder /lazarus/components/glscene/Source/base and replace "LazJPEG" (in uses clause) by "LazJPG" (from package ImagesForLazarus).
      • Save and repeat last 4 steps again.
      • HINT: You should have installed package "ImagesForLazarus" (the same way as described for "glscenelazarus" package).
    • repeat the last 4 steps for the other packages you want to use.
      • Note: glsceneode and glscenecgshader need their respective libs on the system during installation!
    • Note: you can also try to select and install all packages in one go. However, I prefer to do things step by step, so I see where it fails, if it fails ;)
    • Install "glscenelazarus" - mistakes: (only needed when using glscene-1.0.0.2.zip, in svn these are already fixed)
      • To correct the unit GLLCLViewer: procedure TGLSceneViewer.CreateParams(var Params: TCreateParams); - at procedure TGLSceneViewerLCL.CreateParams(var Params: TCreateParams);
      • To correct the unit GLLCLViewer: procedure TGLSceneViewer.EraseBackground(DC: HDC); - at procedure TGLSceneViewerLCL.EraseBackground(DC: HDC);
      • To correct the unit GLLCLFullscreenViewer: Change "RegisterClasses([TGLSceneViewer, TGLFullScreenViewer]);" to "RegisterClasses([TGLFullScreenViewer]);"
  • パッケージのリスト:
    • glscenelazarus The main package.
    • glscenecgshader Cg Shader components
    • glsceneode ODE components
    • glss_fmodlaz FMOD component
    • gls_winonly Windows only, contains sound support over mmsystem, BASS support and GLScreenSaver component
  • "demo"をコンパイルするときに:
    • 「not found class - TGLSceneViewer」というエラーが出たら: (demo)のUsesをGLViewerからGLLCLViewerに変更してください

ヘルプ

ヘルプは、Main GLScene Pageにあります。