Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Tiles and textures detail - help required

Author
Message
Legendx
20
Years of Service
User Offline
Joined: 13th Jan 2005
Location:
Posted: 6th Apr 2006 10:07
Hi all,

I was wondering if someone could please help me with the following problem...

I want to make a grass field texture (just a flat plain, no advanced terrain or anything) that is high res - has high detail grass, but i also want to have patterns on the grass, like seen in some sports stadiums...these patterns need to range from horizontal stripes to concentric circles...i tried tiling the grass texture i made and it looks fine, i can even get the stripes by making a texture that iis square, half one shade of green and the other half a slightly different shade, creating a \'stripe\' effect...

Problem is when i need to get the concentric circles....i cant tile the texture as it wont make concentric circles, so i need one single texture to lay over the whole field with all circles already drawn...the problem with this is that the texture gets stretched out over the whole plane and loses detail, looking really ugly...

hopefully that makes sense...if not, i\'ll see if i can upload some pix to show what im talking about Imagine the fields in FIFA - that\'s kinda what im trying to achieve

Any suggestions? I tried even making a seperate plane to sit just above the ground plane...like a transparent overlay of stripes or circles, so that the detailed grass texture (tiled) on the ground showed up...but no joy...couldn\'t get the transparency stuff working right...but aside from that i think there must be a better way of doing it, a plane overlay seems to elaborate...

Maybe i have to use some kind of Blend mapping or something to merge the 2 textures?? Im really at a loss...maybe it\'s something just staring me in the face.

Please Help!!!

thanks
tiffer
19
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 8th Apr 2006 20:15
Not sure what you mean by elaborate but transparent overlays r time proven.

Another way is by drawing the texture in darkbasic including all the line markings and such. This will allow you to be much more accurate with the layout of the field rather than just tiling lines infinetely

What to do is:
load in you grass texture
create a bitmap:

use a for loop with a nested forloop to tile the image over your bitmap

Use another for loop to draw lines down the image and then draw the circles

When you've done that turn the bitmap into an image file and then add it to your object.

If you need a hand with the programming part just say


C.Watson

Login to post a reply

Server time is: 2025-06-20 03:55:55
Your offset time is: 2025-06-20 03:55:55