Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Terrain textures with more than 4096x4096 px #402963
06/12/12 21:15
06/12/12 21:15
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
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


Version: A8 free
OS: Windows 10
Re: Terrain textures with more than 4096x4096 px [Re: gameplan] #402967
06/12/12 22:19
06/12/12 22:19
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline
Senior Member
Benni003  Offline
Senior Member

Joined: Aug 2008
Posts: 394
Germany
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.

Re: Terrain textures with more than 4096x4096 px [Re: Benni003] #402968
06/12/12 22:23
06/12/12 22:23
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
Okay, thanks, I didnt know that. Seems that I have to split my terrain, to achieve sharp textures.


Version: A8 free
OS: Windows 10
Re: Terrain textures with more than 4096x4096 px [Re: gameplan] #402969
06/12/12 22:27
06/12/12 22:27
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
or use a terrain shader wich supports multiple textures for one terrain ^^


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Terrain textures with more than 4096x4096 px [Re: Espér] #402971
06/12/12 22:34
06/12/12 22:34
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
Thank you. But I am no programmer, so I dont have the needed skill to do this with terrain shaders.


Version: A8 free
OS: Windows 10
Re: Terrain textures with more than 4096x4096 px [Re: gameplan] #402972
06/12/12 22:43
06/12/12 22:43
Joined: Aug 2008
Posts: 394
Germany
Benni003 Offline
Senior Member
Benni003  Offline
Senior Member

Joined: Aug 2008
Posts: 394
Germany
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.


Last edited by Benni003; 06/12/12 22:45.
Re: Terrain textures with more than 4096x4096 px [Re: Benni003] #402973
06/12/12 22:52
06/12/12 22:52
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany
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.

Re: Terrain textures with more than 4096x4096 px [Re: Timothy] #402975
06/13/12 00:02
06/13/12 00:02
Joined: Nov 2011
Posts: 274
de
lemming Offline
Member
lemming  Offline
Member

Joined: Nov 2011
Posts: 274
de
mtl_terraintex is fixed function, so no shaders needed. I use it with the Extra edition.


Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1