Terrain textures with more than 4096x4096 px

Posted By: gameplan

Terrain textures with more than 4096x4096 px - 06/12/12 21:15

Hi,

is it possible to use bigger textures than 4096 x 4096 pixel for terrain? If I use images with higher resulution, the terrain is just black and the framerate is down.

Thanks
Posted By: Benni003

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:19

Do not use textures with this size! I'm not wondering why the framerate is down tongue just set as maximum 2048 x 2048 pixels. Elder graphic-cards do not support a higher size.
Posted By: gameplan

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:23

Okay, thanks, I didnt know that. Seems that I have to split my terrain, to achieve sharp textures.
Posted By: Espér

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:27

or use a terrain shader wich supports multiple textures for one terrain ^^
Posted By: gameplan

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:34

Thank you. But I am no programmer, so I dont have the needed skill to do this with terrain shaders.
Posted By: Benni003

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:43

You can do it in this way:
include the mtlFX.c in your project. Then you have to allocate the action fx_terraintex to your terrain. The terrain should have some textures with alphachannel. A texture size with 512x512 pixels is very good for this!! You can also set the detail_size variable in your code to set the texture resolution.
And one thing.. every texture needs one renderpass. Many textures can kill the framerate. just try a little bit out.;) Make the texture size small as possible. I am using 256x256 pixels for my terraintextures.

Posted By: Timothy

Re: Terrain textures with more than 4096x4096 px - 06/12/12 22:52

Your signature says that you are using the free edition - therefore you can't use shaders. I wonder why nobody noticed.
Most likely you will have to split your terrain.
Posted By: lemming

Re: Terrain textures with more than 4096x4096 px - 06/13/12 00:02

mtl_terraintex is fixed function, so no shaders needed. I use it with the Extra edition.
© 2024 lite-C Forums