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.

3 Dimensional Chat / Creating a grassy field.

Author
Message
ZeroShade
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location:
Posted: 17th Jun 2006 17:30
Hi. I'm new to DarkBasic. I learn better with examples so if anyone tells me to look at a tutorial, it won't teach me a thing. Programming comes easy to me so can anybody can give me a simple piece of code that can create a grassy field? And give me a description on how to implement the picture into the code... Thanks!!

~Live And Let Learn~
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 17th Jun 2006 19:58
the best thing is not to actaully replicate every blade of grass, but to use a simple texture tiled across the surface and you could use a box for the field; if u want to have grass blades moving then i would suggest creating them based on a limb system locked on to the camera, as an entire field of grass blades would really slow your computer down. Unfortunately i don't have any examples to hand, but i will try and find some as soon as i get a chance


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb & 120gb,xp pro sp2
Hazviz
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Alnwick, UK
Posted: 17th Jun 2006 22:22
If you would like an example, then add this into a project.

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 17th Jun 2006 22:49
Or if you used Dark Basic Pro, make sure you have the lastest update (to keep a nice FPS rate) and the right shader version on your GFX card, look in the work in progress thread and look for the shader pack, download it, and try an implement one of the two fur shaders or the grass shaders, the one I am using requires that you change the colour of the fur to make it grass like by editing the .fx file under the colour settings, but the grass shader should be straight forward enough for you. Thats one way to get good looking grass, however as you said you're new, parts will be difficult for you to munch up, so Hazviz's method might be the best idea and have texture grass

I am sparticus and so is my wife

Login to post a reply

Server time is: 2024-11-27 00:20:53
Your offset time is: 2024-11-27 00:20:53