• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

BrokenGamesUG/delphi3d-engine: A 3D-graphic and game engine for Delphi and Windo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

BrokenGamesUG/delphi3d-engine

开源软件地址:

https://github.com/BrokenGamesUG/delphi3d-engine

开源编程语言:

Pascal 99.0%

开源软件介绍:

Delphi3D-Engine

A 3D-graphic and game engine for Delphi, DirectX 11 and Windows. It was used to develop the free-to-play multiplayer game Rise of Legions.

Usage

Engine

Either copy all files in your project or the way we usually link to it: Add the Engine directory and all subdirectory to your search path in Delphi (must be configured for each target 32-bit and 64-bit). The engine is tested (in Rise of Legions) to work with 32-bit using the graphic components (client) and 64-bit working without any graphic (server).

  • With Delphi 10.1 Berlin (version it was developed in): The built-in DirectX-Headers contains some bugs, which has been fixed by us. Ensure to include the directory FixedDX11Header in your project, so the fixed WinapiD3D11.pas is used. Additionally you need to copy the FMX-Source-Files (from Embarcadero\Studio\18.0\source\fmx) into that folder as well to compile them with the patched api headers. Apply the diff FMX.Canvas.D2D.diff to the respective file.
  • With Delphi 10.4+ (feedback from community): Delete the WinapiD3D11.pas from the FixedDX11Header directory, remove the line FMX.Canvas.D3D.TCustomCanvasD2D.LoadFontFromFile(Path); from Engine.GfxApi. There won't be custom fonts, but it should compile and work then.

Editors

The editors in this repository should be working and give you hints about the engine usage and can be used to create and configure effects. (tested in Delphi 10.1 Berlin)

Warning

To be honest this engine has lots of neat functionality, but is not easy to use. This project was developed by my friend an me since our studies over many years. There are a lot of features, but no real documentation (except sometimes more sometimes less code comments) and surely a lot of bugs, if anyone new to the engine will use it. I would advice to use this engine with care and have a look at the source code of Rise of Legions or the editors for some hints about the usage of the modules.

Features

  • Graphics
    • DirectX 11 graphic adapter
    • Camera
    • Forward and Deferred Lighting
    • Mesh + Skinned Mesh Animation + Morph Animation + FBX support
    • dXML - Dynamic UI system based on HTML+CSS+Vuejs style
    • Particle Effects
    • Post Effects
    • Dynamic shader creation with django like block system
    • Terrain Rendering
    • Vegetation Rendering
    • Water Rendering
    • Dynamic custom vertex rendering
  • Component-driven Eventsystem
  • Input handling for mouse and keyboard (also multiple mice support with RAW input)
  • Network
  • Scripting adapter for DWScript
  • Automatic serialization with attributes
  • Sound system (adapter for FMOD and OpenAL)
  • DataQuery - LinQ similar query language
  • Math
    • Vector and Matrix arithmetic
    • 3D and 2D Collision arithmetic
    • Pathfinding
  • Tons of helpers
  • Partially translated headers for Steam API and FMOD

Workarounds

The DirectX SDK throws a lot of warnings which are printed by Delphi in the editor output while in debug. This printing consumes a lot of performance, e.g. the editors seems to run slowly when this happens. To work around this you can use the dxcpl.exe for the DirectX SDK to mute the warnings showing up.

License

License: MPL 2.0

The code base is distributed under MPL 2.0

It make use of other Open-Source-Software stated below:

assimp - Modified, 3-clause BSD-License - Used for importing model files like FBX.

DWScript - MPL 1.1 - Used as scripting language.

Imaging - MPL - Used for importing texture of complex formats.

Jedi-WinApi - MPL 1.1 - Used for various windows functions.

LockBox - MPL 1.1 - Used for hashing.

VerySimpleXML - MPL 1.1 - Used for XML parsing.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap