SonyWWS / LevelEditor

The ATF LevelEditor is a powerful tool for constructing and assembling game levels. It provides a WYSIWYG interface and allows you to place objects, edit properties, edit terrain, and build game levels.
Apache License 2.0
1.32k stars 230 forks source link

Is there a limitation of up to 8 layers for the Terrain Editor? #24

Closed secondwtq closed 9 years ago

secondwtq commented 9 years ago

I went through the code and found it in the rendering part. Adding the ninth layer just results a crash (not an exception), which I believes residing in the same module too.

If it's the case, I suggest it should be listed as a limitation (I did not found it in the wiki and documentation), and provide some message in the application notifying user not to add too many layers.

abeckus commented 9 years ago

Hi, Thanks for reporting the issue. Yes currently the max layer is set to eight layers but it can be changed by changing the following define:

define MaxNumLayers 8 in TerrainShader.h

The docs and app should indicate the max number of layers. We will consider making the changes in future releases.

Thanks Alan

secondwtq commented 9 years ago

Gotcha, Thanks!