Help With Terrain + Textures PLEASE
by Bobby Leighton · in Torque Game Engine Advanced · 04/10/2006 (9:49 am) · 7 replies
Ok so ive beeen messing(my partner and I )...Who before anyone can ask own indie licences of TSE and TGE ..The problem were having is the texture sizes...i know people have been screaming about this but ive seen no real solutions that work...what we sould be able to do is....
1)Paint textures either in game with one of the terrain systems in a WYSIWYG fassion I hate having realy nice 24-32 bit pictures of grass and dirt and can't use them...the engine blows them up and speads them over..what and 8x8 section...i need this 1x1 how do i do this...im capable of moding the engine...just dont know where to look...
2)perhaps maybe someone is good with write HLSL and maybe a shader would be an easer answer...when i was useing 3dGamestudio there was a shader for the terrain that i wrote that used 4 differtent textures and blended them based on the black and white values of 2 alpha maps from TGA's...I wish we could be something similar or maybe someone out there could work with me to get my other shaders converted...of coarse i would give then to the comunity when were finished
any takers to tackle my rantings and ramblings????
Bobby leighton@Imagn' Games
1)Paint textures either in game with one of the terrain systems in a WYSIWYG fassion I hate having realy nice 24-32 bit pictures of grass and dirt and can't use them...the engine blows them up and speads them over..what and 8x8 section...i need this 1x1 how do i do this...im capable of moding the engine...just dont know where to look...
2)perhaps maybe someone is good with write HLSL and maybe a shader would be an easer answer...when i was useing 3dGamestudio there was a shader for the terrain that i wrote that used 4 differtent textures and blended them based on the black and white values of 2 alpha maps from TGA's...I wish we could be something similar or maybe someone out there could work with me to get my other shaders converted...of coarse i would give then to the comunity when were finished
any takers to tackle my rantings and ramblings????
Bobby leighton@Imagn' Games
#2
04/12/2006 (7:13 pm)
Yeah but i get and error on the pixel shader file saying somthing about an unexpected token"}" i would have to look to see the exact error but i can get anything exept one detail textured over my peice of land....thanks for the help with the serial number by the way i felt foolish....but i wish i could get this to work its like a shader i wrote when i was using gamestudio...any idea of the error if you want i can run it and tell you more....
#3
04/12/2006 (7:24 pm)
Yeah but i get and error on the pixel shader file saying somthing about an unexpected token"}" i would have to look to see the exact error but i can get anything exept one detail textured over my peice of land....thanks for the help with the serial number by the way i felt foolish....but i wish i could get this to work its like a shader i wrote when i was using gamestudio...any idea of the error if you want i can run it and tell you more....
#4
***Edit : It might be this :
replace AtlasShader in your ~/client/scripts/shader.cs with this :
04/13/2006 (1:32 am)
Can I have more details about "error on the pixel shader file saying something about an unexpected token" ?***Edit : It might be this :
replace AtlasShader in your ~/client/scripts/shader.cs with this :
new ShaderData( AtlasShader )
{
DXVertexShaderFile = "shaders/atlasSurfaceV.hlsl";
DXPixelShaderFile = "shaders/atlasSurfaceP.hlsl";
pixVersion = 3.0; // or 2.0 ????
};
#5
thank you,Bobby Leighton
04/13/2006 (6:12 pm)
I will give that a try and by the way in apecaition for the help and the cool program you wrote i did the best I could porting over the mentioned resource abouve to the TDN youll have to upload the two pictures at the end but it all done....so im going to try to this shader you wrote again with the adition you mentionedthank you,Bobby Leighton
#6
04/14/2006 (10:23 am)
So where am i supposed to put the first set of code ...the blending part i think that may be the problem.....
#7
04/28/2006 (2:32 am)
Check ressource update.
Torque Owner Vincent BILLET
Default Studio Name
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9528