From klayge game engine, post address example/
Overview
Klayge is a complete game development framework for next-generation games. It is an API-independent plug-in structure that provides many advanced technologies and unlimited scalability.
Klayge is designed to arm the engine with the most advanced technology. It provides a framework to simplify game development, testing, and porting. Klayge's target platform is the highest hardware released in the current year and the lowest hardware released in the previous year.
Graphics
- D3d11, OpenGL, and OpenGL ES 2 are supported.
- Using fxml as a special effect script for rendering objects, you can directly export and use the special effects generated by the artist.
- The Python script can be dynamically interpreted at runtime, so it does not need to be re-compiled after the script is modified.
- You can use height map to create a terrain scenario.
- Support for bone Animation
- Hardware Occlusion Culling
- Particle System
- Post Processing Technology
- Adaptive hardware status cache and delayed update mechanism
- Supports pixel-by-pixel illumination and rendering
- The distance-based font system has the advantages of vector and dot matrix.
- Support Procedural Texture
- Supports subsurface scattering and can be used to render translucent materials such as leaves, skin, and jade.
- Supports PN triangles technology to automatically smooth and Low-modulus during runtime
- Coloring
- Shader library containing common operations
- Completely abstracted graphics API
- Multiple Rendering
- Fully supports programmable coloring
- Multiple rendering streams can be used.
- Illumination
- Dynamic illumination
- Full-direction shadow map
Audio
- Supports audio output from various platforms
- Support 3D sound location and Doppler Effect
- The input format supports Ogg Vorbis.
- Supports stream playback.
Tools
- Line chart generator, which can generate a line chart from a height chart
- Distance graph generator, which can generate a distance graph from a height graph or a 3D texture
- Meshml export plug-in to export models from 3DS MAX
- OpenGL compatibility testing tool
- HDR compressors, supporting cubemap and 2D HDR texture Compression
- Normal map compressors with a compression ratio of or
- The distance-based font generator converts the vector font to the font format used by the engine.
- Fxml2shader tool to convert fxml special effect scripts to HLSL or CG
Program features
- The engine is open-source and contains 100% of the engine and tool source code.
- Scalable and object-oriented C ++ engine with a software architecture for static and dynamic loading of code and resources, easy to transplant and debug
- Using python as the scripting language, it provides automatic support for dynamic data, convenient development and debugging, and can easily work with the c ++ main program.
- What is klayge?
- Did you develop klayge by yourself?
- Where can I find the klayge document?
- Why did you select GPL?
- Why Python instead of Lua?
- Why should we have Shader Model 2.0 or above?
- What is the network part of klayge?
- When compiling the example, a connection error message such as "libcmtd. lib (dbgheap. OBJ): Error lnk2005: _ crtsetdbgflag is already in msvcrtd. lib (msvcr80d. DLL). How can I solve this problem?
- What parameters should be used for Boost compilation?
- Why does assert failed appear in resloader: load when running the example in Visual Studio?
- During compilation, the message "'yasm 'is not recognized as an internal or external command, operable program or batch file." is displayed. How can this problem be solved?
Q: What is klayge?
A: klayge is an open-source, cross-platform game engine. It is developed in C ++ and uses python as the scripting language. Klayge is released under the GPL protocol.
Back to directory
Q: did you develop klayge by yourself?
A: Yes. Almost all development is done by myself. However, some third-party code is used in this process, such as the 7zip decoding part. Many friends have also provided indispensable help in the development process.
Back to directory
Q: Where can I find the klayge document?
A: currently, klayge documentation is limited to files under documentation. The main reason for the lack of documentation is that I don't have enough time to write, and I prefer to use the Code itself for my interpretation.
Back to directory
Q: Why is GPL selected?
A: The lgpl protocol was used before klayge 2.7, but later it was replaced with GPL to protect it from being swallowed up by some proprietary software.
Back to directory
Q: Why not use Python instead of Lua?
A: Before klayge 2.0 (it was also called Clay! Engine), Lua is the preferred scripting language. The advantage of Lua is that it is fast, and its disadvantage is that it is extremely troublesome to call in C ++, and the language itself is weak. Python is not as fast as Lua, but its language capabilities are much more powerful, and it does not have to be written as a stack-based call method, which is much simpler. In klayge, scripts do not exist for efficiency, so Python is the best choice.
Back to directory
Q: Why do we need to have a Shader Model 2.0 or above?
A: klayge is a high-end engine. Therefore, a high configuration is required to meet the needs of advanced technologies. On the other hand, the Shader Model 2.0 is not a high requirement, and almost all new video cards on the market support the Shader Model 3.0. For game developers, if they are still using hardware that does not support the Shader Model 2.0, they can only say that they are far behind.
Back to directory
Q: What is the network part of klayge?
A: The network in klayge is weak, and it is almost unusable. So you need to re-develop or use another network library.
Back to directory
Q: When compiling an example, a connection error message such as "libcmtd. lib (dbgheap. OBJ): Error lnk2005: _ crtsetdbgflag is already in msvcrtd. lib (msvcr80d. DLL). How can I solve this problem?
A: Because the Runtime library used by klayge in VC is a multi-threaded DLLAllChange the Runtime Library connected to the EXE lib to multi-threaded DLL (Project-> properties-> Configuration properties-> C/C ++-> code generation-> runtimelibrary, select multi-threaded debug dll/multi-threaded DLL ).
Back to directory
Q: What parameters should be used during boost compilation?
A: The compilation parameters of boost 1.36 can be set through the command line parameters of bjam. You can write a batch processing file with the following content:
SET BZIP2_SOURCE="D:/bzip2-1.0.5"SET ZLIB_SOURCE="D:/zlib-1.2.3"SET ICU_PATH="D:/icu4c-3_6"bjam --toolset=msvc-9.0 --stagedir=./lib_vc9_x86 --builddir=./ address-model=32 link=shared runtime-link=shared threading=multi cxxflags=-wd4819 cxxflags=-wd4910 define=_CRT_SECURE_NO_DEPRECATE define=_SCL_SECURE_NO_DEPRECATE define=_SECURE_SCL=0 stage debug releasebjam --toolset=msvc-9.0 --stagedir=./lib_vc9_x64 --builddir=./ address-model=64 link=shared runtime-link=shared threading=multi cxxflags=-wd4819 cxxflags=-wd4910 define=_CRT_SECURE_NO_DEPRECATE define=_SCL_SECURE_NO_DEPRECATE define=_SECURE_SCL=0 stage debug release
Run this batch in the boost directory to compile the boost library of the dll version.
Back to directory
Q: Why does assert failed appear in resloader: load when running the example in Visual Studio?
A: You need to set the working directory of the project to $ (outdir) in Visual Studio ). This problem does not occur in klayge 3.10.
Back to directory
Q: during compilation, the message "'yasm 'is not recognized as an internal or external command, operable program or batch file." is displayed. How can this problem be solved?
A: According to the settings, the Visual Studio compilation tool must be able to call yasm to compile the. ASM file. The solution is to rename the downloaded yasm-x.x.x-winyy.exe (X indicates the version number, yyy32or 641_to yasm.exe, and copy it to the bin directory of VC, for example, "C: Program filesmicrosoft Visual Studio 9.0vcbin ". (Note: This problem should not actually occur in this FAQ, because it is actually a command line call problem and everyone should. Sadly, many Chinese "developers" have asked me this question, so I have to write it here .) This issue will be avoided in klayge 3.11.
Desire list
From klayge
Jump to: navigation, search
Here are some functions that you want to add to klayge in the future.
Desire listIt can be used to inspire future work. Some of them are very clear practices, some are just ethereal ideas, most of them are between the two. Similarly, the workload for implementing these items ranges from small modifications to large research projects for existing interfaces.
| Contents
[Hide]
- 1. Desire list
- 1.1 vector texture
- 1.2 software rendering plug-in
- 1.3 HTML5-based UI
- 1.4 terrain rendering
- 1.5 remove DirectShow
- Physical and mathematical computing on 1.6 GPUs
- 1.7 real-time Global Illumination
- Powerful Memory Manager 1.8
- 1.9 GPU audio processing
- 1.10 record and replay of Command Buffer
- 1.11 real-time Catmull-Clark subdivision
- 2. What is being done
- 2.1 GPU-based subdivision
- 2.2 Mobile platform support
- 3 completed
- 3.1 Delay coloring
- 3.2 deep strip
- 3.3 screen space ambient occlusion
|
Desire list vector texture
Vector parameters are stored directly on Texel, And the font system can also be built on them.
Software rendering plug-in
Similar to the software rendering plug-in of d3d10, all functions of d3d10 + are supported with pure software.
HTML5-based UI
Integrated with the HTML5 Renderer, HTML5 can be directly used as the UI expression.
Terrain Rendering
Large-scale terrain rendering.
Remove DirectShow
Do not use DirectShow to play videos and audio. One alternative is to use. ogm as the container format, theora as the video encoding, Vorbis as the audio encoding, and subtitle.
Physical and mathematical computing on GPU
Proposed by: Wu ye
Physical Simulation and linear algebra Calculation of gpgpu.
Real-time Global Illumination
Proposed by: Wu ye
Calculate Global Illumination in real time. Supports shadow, refraction, reflection, translucent, and multiple scattering.
Powerful Memory Manager
Supports memory allocation/clearing, leak detection, and memory pool across DLL boundaries. It is best to lock-free or wait-free.
GPU audio processing
Use GPU to Process audio (3d, special effects) and then transmit it to the sound card for playback.
Record and replay of Command Buffer
All dx/ogl api calls are captured in one thread and can be replayed in other threads.
Real-time Catmull-Clark subdivision
Proposed by: Zhou Bo
Implement the GPU subdivision algorithm of approximating Catmull-Clark subdivision surfaces with bicubic Patches
GPU-based subdivision in progress
Hardware segments are supported on d3d11/d3d10 (ATI) and shader-based segments are supported on d3d9/OpenGL. (D3d11 segments are supported)
Mobile platform support
OpenGL ES 2.0 plug-ins and d3d mobile plug-ins. (OpenGL ES 2.0 plug-in has been completed)
Delay coloring has been completed
The latency coloring system supports anti-aliasing and transparency. (As an example of klayge 3.8.0)
Deep strip
Order-independent transparency. (As an example of klayge 3.7.0)
Screen Space Environment occlusion
Use ssao to add hidden details. (As an example of klayge 3.8.0)
Klayge 3.12.0 was released on the last day of the first half of the year! The highlight of this version is the support for real-time global illumination. The main updates are as follows:
- Supports Global Illumination
- Contains third-party libraries and compiled scripts
- Added the Maya export plug-in.
- Dual parabloid shadow map is supported.
- Added BC1-BC5 texture compression functions in multiple modes
- Added the cmake project script.
- Supports filmic tonemapping.
- Supports fxaa and temporal AA
Many functions of klayge 3.12.0 are completed by the team members. ThanksWu WenwenThank you for providing GI.Wang Rui,Zhu Xiaoyang,Honyeung LauThanks for the provided Maya plug-in.Zhang yachuanThanks for the DSMs.Chen shunbin,Guo PengThanks for the fxaa and temporal AA.Wang RuiThe cmake project script provided. Thank you for your support and help over the years!
Download klayge 3.12.0 from here.
Klayge 3.12.0 released today! The highlight feature of this version is real-time global illumination. The main updates are:
- Support Global Illumination
- Including Third Party libs and compiling script
- Add Maya Exporter
- Support dual parabloid shadow map
- Add BC1-BC5 texture compression Functions
- Add cmake script
- Support filmic tonemapping
- Support fxaa and temporal AA
Many features of klayge 3.12.0 is done by team members. ThanksAtyuwen'S Gi. ThanksRay,Xiaoyang, honyeung Lau'S Maya exporter. ThanksWindameister'sDSMs. ThanksShunbin,Peng'S fxaa and temporal AA. ThanksRay'S cmake script.
Download klayge 3.12.0 here.
Related posts: you may be interested in:
- New Features and recruitment plans in klayge 3.12 plan
- Klayge 3.11.0 freshly baked
- Klayge 3.8.0 released
- Klayge 3.10.0 released
- Klayge 3.9.0 released