Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
firststeps [2019/03/08 10:31] – admin | firststeps [2020/01/10 08:46] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== First Steps ====== | ====== First Steps ====== | ||
- | The framework usage is quite the same as using Delphi | + | Handling Gorilla3D |
- | At first we need a viewport to display | + | The main difference is the usage of TGorillaViewport as the main component for display. |
+ | **You can no longer use a TViewport3D or TForm3D as basis for showing | ||
+ | The reason for that is, that Gorilla3D extends functionality a lot and needs special treatment, which the default viewport do not provide (f.e. Render-Passes, | ||
- | It is possible to use default firemonkey components like Buttons, Labels | + | But, let' |
- | + | * [[viewport|Viewport]] | |
- | ===== Creating a Gorilla3D | + | * [[models|Models]] |
- | + | * [[animations|Animations]] | |
- | You can find the viewport at designtime in the toolbar under: | + | * [[materials|Materials]] |
- | + | * [[primitives|Primitives]] | |
- | + | * [[terrain|Terrain]] | |
- | Gorilla3D > TGorillaViewport. | + | * [[skybox|SkyBox]] |
- | + | * [[particles|Particles]] | |
- | + | * [[physics|Physics]] | |
- | Simply drag it onto your form or create it at runtime by the following method. | + | * [[fmodaudio|FMOD Audio]] |
- | + | * [[assetsmanager|Assets Manager]] | |
- | **__CAUTION: | + | |
- | + | | |
- | + | | |
- | ===== Creating a viewport at runtime ===== | + | * [[skillsystem|Skillsystem]] |
- | + | * [[inputpolling|Input Polling]] | |
- | If you need to create the Gorilla3D viewport at runtime, you can do it the following way: | + | * [[pathfinding|Pathfinding]] |
- | + | * [[renderpass|Render Pass]] | |
- | + | * [[shadows|Shadows]] | |
- | <file pascal Form1.pas> | + | * [[water|Water]] |
- | uses | + | * [[bokeh|Bokeh]] |
- | FMX.UITypes, | + | * [[deftypes|Internal Model Definition]] |
- | | + | * [[transparency|Transparency]] |
- | + | * [[layer3d|2D | |
- | // in our form (TForm1) we added a field named " | + | * [[scripting|Scripting]] |
- | procedure TForm1.FormCreate(Sender: | + | * [[android|Android]] |
- | begin | + | |
- | | + | |
- | FGorilla.Parent := Form1; | + | |
- | FGorilla.Color | + | |
- | end; | + | |
- | </ | + | |
- | + | ||
===== Building an app with Gorilla3D and Delphi 10.3 Rio for Android ===== | ===== Building an app with Gorilla3D and Delphi 10.3 Rio for Android ===== | ||
Line 52: | Line 47: | ||
Go to " | Go to " | ||
+ | {{ :: | ||
When installing Delphi 10.3 Rio, the default configuration is set to " | When installing Delphi 10.3 Rio, the default configuration is set to " | ||
+ | |||
+ | **Since Gorilla3D v0.8.1 we have to set NDK minimum API level to " | ||
Line 60: | Line 58: | ||
[DCC Error] E2597 C: | [DCC Error] E2597 C: | ||
</ | </ | ||
+ | |||
+ | Your app should tell Android that it needs at least OpenGL ES 3.0. This can be done in " | ||
+ | |||
+ | < | ||
+ | <!-- Tell the system this app requires OpenGL ES 3.0. --> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Change the attribute android: |