Difference between revisions of "GLScene/ja"

From Lazarus wiki
Jump to navigationJump to search
m
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{GLScene}}
 
{{GLScene}}
 +
 +
{{Japanese Menu}}
  
 
===About===
 
===About===
 
GLSceneはOpenGLベースの3Dライブラリです。最初はDelphi向けに書かれましたが、現在はC++Builder,Kylix,Delphi,そしてLazarusで動作します。
 
GLSceneはOpenGLベースの3Dライブラリです。最初はDelphi向けに書かれましたが、現在はC++Builder,Kylix,Delphi,そしてLazarusで動作します。
 
GLScene is an OpenGL based 3D library. It was initially written for Delphi, now it is running in C++ Builder, Kylix, Delphi and Lazarus.
 
  
 
主な特徴 :
 
主な特徴 :
Its main caracteristics are :
 
  
 
シーンの記述
 
シーンの記述
Line 27: Line 26:
 
*そのほかのインポートされたフォーマット : OBJ/OBJF, SMD, MD2, STL, TIN, PLY  
 
*そのほかのインポートされたフォーマット : OBJ/OBJF, SMD, MD2, STL, TIN, PLY  
  
(訳注:オブジェクトとは、特にGLScene内のグラフィカルなオブジェクトを指す)
+
(訳注:オブジェクトとは、特にGLScene内のグラフィカルな立体オブジェクトを指す)
  
 
Scene description
 
*hierarchical objects structure, with as many objects as memory allows, easily extendable
 
*interactive scene management (numerous Delphi experts)
 
*easy to use rotation and movement functions for each object
 
*predefined objects (all standards from cube to teapot to sprite), easily extendable
 
*structural objects (dummy cube, proxy object) for manageing composite objects
 
*procedural objects (heightfield, revolution solids, pipes, tesselators...)
 
*support for 2D and 1D objects (sprites, lines with spline support) fully integrated
 
*HUD objects (sprites rendered in 2D coordinates)
 
*Utility objects (grids, skydome, arrows...)
 
*support classes for directly accessing OpenGL
 
*camera and light objects that can be used anywhere in a scene objects hierarchy
 
*behaviour objects can be attached to objects for animation purposes, easily extendable
 
*per-object special effects (before/after object rendering and scene after-effects), easily *extendable
 
*support for particle systems, any object or object structure can be a particle
 
*3D Studio file import with automatic and precise normal vector calculation (using the given *smoothing groups of the file) and texture coordinate import
 
*Other imported formats : OBJ/OBJF, SMD, MD2, STL, TIN, PLY
 
  
 
マテリアル(表面質感)
 
マテリアル(表面質感)
Line 62: Line 43:
 
*32bitビットマップをサポートするクラス
 
*32bitビットマップをサポートするクラス
  
Materials
 
*easy to use, optimized, material object
 
*material library to share and reuse materials
 
*ambient, diffuse, emission, specular and shininess support
 
*support of blending modes (transparency, additive...)
 
*alpha-channel auto-generation
 
*support for OpenGL texture formats, including compressed ones (DXT, S3TC etc.)
 
*generic plug-in shaders support
 
*High-level Cg shaders support classes
 
*polymorphic image support for texturing (allows many formats as well as procedural textures), easily extendable
 
*more than 150 predefined colors like clrCornflowerBlue or clrCoolCopper (easily extendable) *in addition to standard colors and direct RGBA specifications
 
*easily to use texture movement and scaling properties, independently from texture coordinates
 
*32 bits Bitmap support class
 
  
 
レンダリング
 
レンダリング
Rendering
+
*ハードウエアOpenGLドライバ(訳注=ハードウエアアクセラレーション)が利用可能な場合は自動的に利用します。
*automatically uses the hardware OpenGL driver if available
+
*焦点をあわせたり、視点を向けるのに、良く出来たカメラモデル
*a well working camera model using focal length and targeting
+
*簡単にカメラを切り替えて、シーンの複数のビューが可能
*multiple viewers for one or more scenes, easy change of view through camera selection
+
*霧やビュー深度のサポート
*fog and depth-of-view support
+
*動的な解像度の変化に対応したフルスクリーンをサポート
*render to a file, a bitmap or to the printer in any color and pixel resolution
+
*反射や鏡面効果
*full screen support with dynamic resolution changes
+
*ダイナミックな影の映りこみ
*reflections and mirror effects
+
*ハイパフォーマンスなシーン全体の透過ピクセルのシステムサポート
*dynamic shadow casting
+
*自動的な視体積クリッピング
*high-performance scene-wide transparent particles system support
+
 
*automatic frustrum culling (hierarchical or per-object)
 
  
 
アニメーション
 
アニメーション
Animation
+
*時間の進行イベントの伝達
*propagation of time progression events
+
*骨格アニメーション(1頂点あたり複数の骨格)  
*skeletal animation (multiple bones per vertex)  
+
*フレーム挿入とモーフターゲット
*frame interpolation and morph targets
+
*拡張可能なビヘイビア
*easily extendable Behaviours
+
*動的な物理シミュレーション: 慣性、加速、湿気、および力のアプリケーション
*dynamic physics : inertia, acceleration, damping and force application
+
*自動的でリアルタイムなシーンタイミング生成
*automatic, realtime scene cadenceing
+
 
  
 
インターフェース
 
インターフェース
Interface
+
*ピックするオブジェクトを決定するために、使いやすい関数類
*easy-to-use functions to determine picked objects
+
*カメラ動作の補助関数
*helper functions for camera movements
+
*ピックされたオブジェクトの変換用の補助関数
*helper functions for picked object's translation
+
*スクリーンとワールド座標系、レイキャスティング間の変換用の補助関数
*helper functions for converting between screen and world coordinates, raycasting
+
 
  
 
ユーティリティ
 
ユーティリティ
Utilities
+
*最適化されたジオメトリ関数とユーティリティ(ベクター、4元数、行列)
*optimized geometry functions and utilities (vector, quaternion and matrix...)
+
*キュービックスプラインをサポートする関数とクラス
*cubic spline support functions and class
+
*メッシュ操作と最適化(縞線化、頂点キャッシュ認識、その他)
*mesh manipulation and optimization (stripification, vertex-cache awareness, etc.)
+
*全機能のスクリーンセーバーを、数クリックで生成するコンポーネント
*component to make full-featured screen-saver in a few clicks
+
*正確なフレームレートの決定
*precise frame speed determination
+
*非同期タイマ(マルチスレッド化されている)
*asynchronous timer (multi-threaded)
+
*ジョイスティックのサポート
*joystick support
+
*非同期のキーボードアクセス、キーマップのサポート
*asynchronous keyboard access, keymap support
 
  
  
 
===スクリーンショット===
 
===スクリーンショット===
[[Image:gl effect.jpg]]
+
[[Image:Gl effect.jpg]]
[[Image:gl cel.jpg]]
+
[[Image:Gl cel.jpg]]
[[Image:gl trinity.jpg]]<br>
+
[[Image:Gl trinity.jpg]]<br>
[[Image:gl ode.jpg]]
+
[[Image:Gl ode.jpg]]
  
 
===著者===
 
===著者===
Line 129: Line 95:
 
   
 
   
 
===Download===
 
===Download===
 +
最新の安定リリース版はこちら。
 +
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=98986&release_id=364007 Lazarus CCR Files page]
 +
Lazarusのインストーラで、LazarusのIDE上にGLSceneがGLSceneのデモと一緒にはいっています。
 +
 
The latest stable release can be found on the [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=98986&release_id=364007 Lazarus CCR Files page] together with a lazarus installer with GLScene already in the Lazarus IDE and GLScene demoes.
 
The latest stable release can be found on the [http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=98986&release_id=364007 Lazarus CCR Files page] together with a lazarus installer with GLScene already in the Lazarus IDE and GLScene demoes.
  
===CVS===
+
=== SVN ===
 
you can checkout the actual source from<br>
 
you can checkout the actual source from<br>
CVSROOT=:pserver:cvs@avl.ath.cx:/CVS/glscene<br>
+
http://svn.freepascal.org/svn/fpcprojects/glscene/trunk/<br>
Modules:<br>
+
 
LazarusLin<br>
+
The command would be: <br>
LazarusWin<br>
+
<pre>svn co http://svn.freepascal.org/svn/fpcprojects/glscene/trunk glscene</pre>
Source<br>
+
 
Demos<br>
+
This will download the trunk (main) repository to "glscene" dir to whereever you invoked the command from.
obsp - OpenBSP for Lazarus source<br>
+
 
 +
In windows you can use clients like tortoise SVN and others.
  
 
===バグレポート/機能の要望===
 
===バグレポート/機能の要望===
Line 162: Line 133:
 
ヒント:"GLGraphicsが見つかりません"というエラーが表示されるかもしれません。ご心配なく。「ツール->Lazarusの再構築」を行い同じことをすれば大丈夫です。
 
ヒント:"GLGraphicsが見つかりません"というエラーが表示されるかもしれません。ご心配なく。「ツール->Lazarusの再構築」を行い同じことをすれば大丈夫です。
  
A full install of Lazarus with GLScene already in the IDE is available as [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]
 
  
* Create the directory lazarus\components\GLScene
+
Lazarusの完全インストールをすれば、GLSceneはIDEで利用可能になっています。
* On this directory, unzip the files from the zip file
+
[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]
* Open lazarus
+
 
* Open the package .lpk with Component/Open package file (.lpk) for Windows from LazarusWin for Linux from LazarusLin
+
=== インストール方法 version 1.0.0.2 ===
* Click on Compile
+
'''fpc 2.1.4以上 lazarus 0.9.23 rev. 11348以上が必要です'''
* Click on Install
+
 
Hint: sometimes an Error "GLGraphics not found" occurs. Don't worry, just do Tools->Build Lazarus again and it should be ok.
+
* '''ソースコードの展開'''
 +
** ZIP:
 +
*** in "lazarus/components/" folder execute "unzip glscene-1.0.0.2.zip" <br>This will create the lazarus/components/glscene/ folder
 +
** SVN:
 +
*** in "lazarus/components/" folder execute <pre>svn co http://svn.freepascal.org/svn/fpcprojects/glscene/trunk glscene</pre>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 <pre>http://svn.freepascal.org/svn/fpcprojects/glscene/trunk</pre>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
  
A full install of Lazarus with GLScene already in the IDE is available as [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]
+
* ''' "demo"をコンパイルするときに:'''
 +
**「not found class - TGLSceneViewer」というエラーが出たら: (demo)のUsesをGLViewerからGLLCLViewerに変更してください
  
 
===ヘルプ===
 
===ヘルプ===
 
+
ヘルプは、[http://www.glscene.org Main GLScene Page]にあります。
Can be found at [http://www.glscene.org Main GLScene Page]
 

Latest revision as of 02: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にあります。