1 registered members (AndrewAMD),
1,248
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Fixed-Function Terrain Multi-Texturing Effect
#25126
04/07/04 06:14
04/07/04 06:14
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
OP
Serious User
|
OP
Serious User
Joined: Dec 2003
Posts: 1,097
Maryland, USA
|
I have been working on a Fixed-Function texture stage effect for mulit-texturing terrain. This is meant to be a fallback in the pixelshaders and also as an alternative.
This is using a 2 pass effect to keep stages under (2) in each pass. The textures are tiled using the texture transform matrix. The sand texture is blended using the alpha channel of a TGA.
I have included some fallback techniques, do not know if they are actually needed but I was having fun playing with this. I also may not be able test the fallbacks correctly. Feedback here, please.
This is done on 3DGameStudio A6.20.2 comm with a Radeon 9200 128 MB.
Goto my web site to get the Effect File, the Demo, or other info
This is adding another pass with a different alphamap and texture:
Please post mods, improvements, and if it does not work on your card please post the info pertaining to your card so I can know/learn.
Eric
Last edited by Steempipe; 04/07/04 06:32.
|
|
|
Re: Fixed-Function Terrain Multi-Texturing Effect
[Re: Steempipe]
#25129
04/07/04 08:15
04/07/04 08:15
|
Joined: Feb 2004
Posts: 19
makai
Newbie
|
Newbie
Joined: Feb 2004
Posts: 19
|
hey really great job steem!
the default worked for me too, with my nvidia geforce 4 go 64 (thats the mx version which doesn't support many shaders..)
but there are some graphic errors, some parts of the terrain seem to transparent.. have a look on this :
Last edited by makai; 04/07/04 08:28.
|
|
|
Re: Fixed-Function Terrain Multi-Texturing Effect
[Re: makai]
#25130
04/07/04 10:00
04/07/04 10:00
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
OP
Serious User
|
OP
Serious User
Joined: Dec 2003
Posts: 1,097
Maryland, USA
|
We'll have to fiddle with it.
I don't get that problem here, so it will be hard to troubleshoot.
Where does your alphamap live? Is it an entSkin or a mtlSkin?
Could you try adding the "my.tranparent=off" to your action, just in case?
Maybe try adding "zenable=true"
technique ffp_terrain_tex
{
pass P0
{
alphablendenable=false;
zenable=true; //<<<<<<<<<<<<<<<<
If need be can I get a publish of that level and see how it runs on my card?
I'll think on it a bit and get back to you in a Private message.
Eric
Last edited by Steempipe; 04/07/04 10:20.
|
|
|
Re: Fixed-Function Terrain Multi-Texturing Effect
[Re: Steempipe]
#25133
04/07/04 18:20
04/07/04 18:20
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
you could add it to the wiki!
...
i think cullmode=none; just makes it slower and shouldn't be used.
|
|
|
Re: Fixed-Function Terrain Multi-Texturing Effect
[Re: ventilator]
#25134
04/07/04 18:43
04/07/04 18:43
|
Joined: Dec 2003
Posts: 1,097 Maryland, USA
Steempipe
OP
Serious User
|
OP
Serious User
Joined: Dec 2003
Posts: 1,097
Maryland, USA
|
Thats a good tip, leaving out cullmode, it is not necessary on my machine. Maybe everyone should leave that out. The code above is mainly for Makai to fiddle with and see if it can work.
Do you have any other suggestions?? You see, the thing ran fine on my card, but you see what happened on Makai's. What about the other things added in the "//<<<<<< NEW". I'm just learning, so most things are trial and error.
About the wiki, I am hoping that the code can be applicable across a varity of cards first. Needs testing and feedback. I am not going to change the code that is on the demo unless alot of people have problems. It will just get too confusing.
Thanks, Eric
|
|
|
Re: Fixed-Function Terrain Multi-Texturing Effect
[Re: Steempipe]
#25135
04/07/04 23:59
04/07/04 23:59
|
Joined: Jan 2004
Posts: 585 Alexandria, VA
Alkai
Developer
|
Developer
Joined: Jan 2004
Posts: 585
Alexandria, VA
|
Excellent work, Steempipe!
I even tried it on my old pc with a 32mb Radeon 7500 card and it worked great!
If you gaze long into an abyss, the abyss will gaze back into you.
3.0 GHz Pentium 4 w/HT
1 Gig 400mhz DDR SDRAM
128mb NVidia GeForce FX 5200
|
|
|
|