Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,187 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Terrain Texturing Question.... #42800
03/18/05 08:36
03/18/05 08:36
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
I am faced with a problem using terrains in the engine, I have tried several approaches with no success yet. A noticed a few games such as C&C Generals, LOTR Batle For Middle Earth, & Roller Coaster Tycoon 3. All these games have terrain and using the editor you are able to place many textures on one terrain they are all tiled nicley and so on. I was wondering how they did this, is it possible with Game Studio? I came to the shader forum cause it is about the closest I have seen with the alpha blending and all but still it is no where near the amount of textures that these other games allow for the terrains.

Any suggestions from anyone to where I could tile around 10 different textures on a terrain using blending or is this a limitation from within game studio?

Re: Terrain Texturing Question.... [Re: Ahriman] #42801
03/18/05 09:21
03/18/05 09:21
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline
Serious User
Steempipe  Offline
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
There are numerous shaders/fixed-function effects around the forum(shaders) and on the wiki pertaining to multitexturing terrain.

10 textures is a bit excessive, and you would have a terrible framerate. You will probably notice 3,4 or maybe 5 textures in most cases.

Re: Terrain Texturing Question.... [Re: Steempipe] #42802
03/18/05 16:14
03/18/05 16:14
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
You can do up to 8 textures on a terrain. D3D will not allow you to use more per material.(however, these can be large, and theoretically you could break each texture into a bunch of smaller ones and tile them seperately. You might need a DLL for this however..) But to tile 8 color textures you would need to modify the terrain multitexture shader from the WIKI. The key is to use each texture's alpha channel to blend it, instead of wasting a texture for the blender texture.

Re: Terrain Texturing Question.... [Re: Matt_Aufderheide] #42803
03/18/05 16:34
03/18/05 16:34
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
you could search/google for "texture atlas"


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Terrain Texturing Question.... [Re: ello] #42804
03/18/05 19:42
03/18/05 19:42
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
Here is an example of what I was talking about this example has 13 different textures all tiled and blended on a terrain...there has to be a way to do this...maybe some tricks or something. I was even thinking they are using more than 1 terrain layer but that would eat away the FPS.

World Builder Image

This is from the editor for C&C Generals

Re: Terrain Texturing Question.... [Re: Ahriman] #42805
03/18/05 20:00
03/18/05 20:00
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
you could do this with texture atlas. thats what they call the technique matt described above.

btw: the shot contains nothing special. its not using that much textures(on the terrain) its something like a 3D Painter. the realtime texture gets created from what you painted there and on you go like you ever did.

Re: Terrain Texturing Question.... [Re: ello] #42806
03/19/05 07:13
03/19/05 07:13
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
I downloaded Texture Atlas tools from Nvidia...I think for now I will use the multitexuring shader from wiki and if we get a publisher I will look more into all this and getting more textures on the terrain. The game I think really only needs 5 textures on the terrain but I want to keep it compatible with many systems, and also looking good, using 1 big texture takes away quality. Thanks for your help everyone.

Re: Terrain Texturing Question.... [Re: Ahriman] #42807
04/02/05 07:12
04/02/05 07:12
Joined: Apr 2005
Posts: 7
Oklahoma
Claybotech Offline
Newbie
Claybotech  Offline
Newbie

Joined: Apr 2005
Posts: 7
Oklahoma
I am just getting back into gamestudio, yes, i let it set on the shelf for a while.

I am currently running the extra edition of 3dgs, which does not support shaders. would i be able to do a terrain in this fashion, or would I need commercial to support shaders?

Also, been trying to log into wiki, but i havent a clue as of to what username/password they are wanting. Will not take my forum username/password or my password i received in my key file.

thanks, Clay out...


Wow! You have some major polygon issues there.
Re: Terrain Texturing Question.... [Re: Claybotech] #42808
04/02/05 07:56
04/02/05 07:56
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: Terrain Texturing Question.... [Re: Rhuarc] #42809
04/19/05 19:36
04/19/05 19:36
Joined: Apr 2005
Posts: 64
Italy - Rome
_
_Tommo_ Offline
Junior Member
_Tommo_  Offline
Junior Member
_

Joined: Apr 2005
Posts: 64
Italy - Rome
I did a thing like this simple using the bitmap instructions...i made some 10x10 pixels tiles (grass, rock, sand ecc..), and a function copies them on the blank terrain texture, one for square (i have a 200x200 terrain with a 2000x2000 skin).
Then it's all antialiased by GSjanfx plugin.
This would require very much time normally, but place the painter function in a function with a while() loop called by another while() loop, and this requires only 20 seconds, because of thousands of functions called at the same time.

function paint_tile(type)
{
while()
{
....
}
}

function ...
{
while()
{
paint_tile(tile_type);
wait(1);
}
}


Moderated by  Blink, Hummel, Superku 

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