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.

The 20 Line Challenge / Grass effect

Author
Message
Valle
13
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 16th Jan 2007 21:01
A simple, but good looking grass effect
I got the idea from "Shadow of the Colossus" for the PS2. I think they use the same technique there...




Kohaku
15
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 17th Jan 2007 22:34
I saw a system like this being used in Commandos: Strike Force. It's pretty good.


You are not alone.
Kyhoshi
13
Years of Service
User Offline
Joined: 21st Jun 2006
Location: Somewhere over the rainbow.
Posted: 23rd Jan 2007 03:02
After carefully examining the code i have deduced that YOU ARE A GENIUS!!! I can't believe you got that good of an effect from just 20 faces! My hat's off to you.

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
NeX the Fairly Fast Ferret
14
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 26th Jan 2007 21:24 Edited at: 26th Jan 2007 21:33
A similar effect is used in Starfox: Adventures.
http://uk.media.cube.ign.com/media/016/016140/img_1589758.html
Wonder how the shadow was achieved?

EDIT: Now with gusts!


Bigger Field



Since the other one was scaring you guys so much...
jasonhtml
15
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 28th Jan 2007 16:30
wow, ive seen this effect done before, but not even close to as good as this. nice work! but i still wouldnt use it because when you are close up to it, you see all of these funny looking lines

Brain111
12
Years of Service
User Offline
Joined: 5th Feb 2007
Location: In my own little world.
Posted: 5th Feb 2007 20:45
That's really awesome, i've always used flat textures for grass in my games If I ever want to make another game where you walk on land, i will probably try something like this. It's amazing you can do something that looks awesome like that without totally bogging down the computer.
Phaelax
DBPro Master
16
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Feb 2007 01:50 Edited at: 11th Feb 2007 02:08
Wouldn't run, kept getting memory errors. Using DBP 6.2 I believe. I tried changing some things, nothing worked.

[edit]
I seem to be getting a memory error with all my DB stuff, so I guess just ignore my results.

Nevereverend Slaine
13
Years of Service
User Offline
Joined: 15th Feb 2006
Location:
Posted: 27th Feb 2007 08:31
That is awesome.

Dared1111
12
Years of Service
User Offline
Joined: 25th Oct 2006
Location:
Posted: 1st Mar 2007 18:35
the colour wont go on for me

[link]"http://www.greatgamesexperiment.com/user/Dared1111/" my account on GGE[\link]
Getix Interactive
13
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 24th Apr 2007 04:22
Where in the code can I increase the field size? btw, nice work!

Insert Signature Here
Valle
13
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 25th Apr 2007 23:56
thx
just change the variable "size" in the 3rd Line,


Mr Kohlenstoff
13
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 16th Jun 2007 14:30
I have added your effect to the no-shader-effect-thread.. I hope it's ok.

Thread here: http://forum.thegamecreators.com/?m=forum_view&t=108152&b=1&p=0

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
CJD
13
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 18th Jun 2007 19:16
This is great! Can i use it?

...
20 Liners
12
Years of Service
User Offline
Joined: 21st Jun 2007
Location:
Posted: 21st Jun 2007 08:28
Hello, I just started checking out the demo and it works!

Here's another take on the code:


Enjoy
20 Liners
12
Years of Service
User Offline
Joined: 21st Jun 2007
Location:
Posted: 22nd Jun 2007 05:10
Hmm, that's not right. I uploaded something else and now the source is gone. I thought I had several versions but the files that all seem have the same source... very weird.
20 Liners
12
Years of Service
User Offline
Joined: 21st Jun 2007
Location:
Posted: 22nd Jun 2007 05:27
Something like this...
TDK
Retired Moderator
16
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jun 2007 20:35
20 Liners:

Considering your username and the board you are posting on, I can't see the point of posting code snippets of 33 and 35 lines!

You might have least attempted compressing them so they were within the rules to be posted on here...

TDK_Man

Cliff Mellangard 3DEGS
Developer
13
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 24th Jun 2007 21:54
havent they changed the 20 liner to 50 tdk?
TDK
Retired Moderator
16
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jun 2007 01:13
Only for a one-off newsletter competition I believe - and the topic line should say that's what the post is about. The board's normal purpose remains for 20 liners.

TDK_Man

NeX the Fairly Fast Ferret
14
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 25th Jun 2007 20:46


There. Happy now?


Since the other one was scaring you guys so much...
Dared1111
12
Years of Service
User Offline
Joined: 25th Oct 2006
Location:
Posted: 28th Jun 2007 09:56
how do I get the color to green?

Can I use this code in my game?

Your signature has been erased by a mod because it was too big
Valle
13
Years of Service
User Offline
Joined: 10th Mar 2006
Location: in your girlfriends bed
Posted: 29th Jun 2007 20:07
everyone can use this code, but ONLY for good games


TDK
Retired Moderator
16
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 30th Jun 2007 12:03
Quote: "There. Happy now?"


It's not a case of me being happy. Or you being a smart-alec.

Mods are only here to ensure that forum rules are followed. We don't make the rules.

A board for code snippets of 20 lines or less, isn't the place for snippets longer than 20 lines.

Maybe you think it better to just lock threads when this happens?

TDK_Man

jason p sage
12
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 3rd Jul 2007 01:57 Edited at: 3rd Jul 2007 01:59
Some people here, I'm learning, deal with this kind of thing by simply doing one of these:

"Hey Bro - I got the grass working with a underwater lighting and motion thing... check it out here: <b>some new thread here</b>"

Moderators don't seem to have a problem with this because it keeps the specific thread on point/subject/rules... while spreading the context stuff somewhere else applicable.

Forgive me if I'm stating the obvious - just thought I'd mention the "have your cake and eat it to" method of operation for these forums


As for the grass - the jury is still out for me. I like it - but I don't have a reference point for what is best because I haven't really done any grass yet (doesn't that sound peculiar).

Cheers

Know way too many languages - Master of none
chafari
Valued Member
13
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th Jul 2007 13:09
wow !! 20liners haha...I saw something like that before, but just playing with values i,v got a nice effect(not mine, of course)

just have a look at it !!





oh my god
Pharoseer
12
Years of Service
User Offline
Joined: 21st Feb 2007
Location: Right behind you
Posted: 11th Jul 2007 22:47
Nice work Valle,

I took what you did and used something I found by IanM in another thread for manipulating memblocks and came up with the following. My idea stems from the fact that grass is not always green. So if you had a brown, yellow or even pink texture for the terrain you could apply a mask to it and basically extrude the colors out of that texture to make grass that would actually look like it belonged on that particular terrain.

I _barely_ modified the code that you and Ian had already presented so I can't claim credit for anything other than seeing a neat way to fit them together. Anyway, let me know what you think and I'd be glad to hear suggestions about ways of improving this. Also, if anyone decides to use this technique in a game, I'd love to see it!

jason p sage
12
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 12th Jul 2007 00:05
@Pharoseer - Why would you want rainbow grass? Seriously - it looks good!

Question though, is this technique taxing to render do you guys think? Or is it pretty lightweight when all is said and done?

Also, Adding the movement to it.. would that be overly complex? Subtle breezes etc?

I've noticed a lot of programs that seem to use plains scattered about, which do you think is less taxing on the system?

FarCry is a great example - but then, the 2004 version I have doesn't have "grassy plains" either.

Though, I used to have a game called Delta Force (I think the original - Back around 2001) that had a great grass "everywhere" technique that looked good and played very well - and if you consider the "date" - it was probably rather light weight for both the CPU and Video Card I would guess. They had it so grass was simply almost everywhere, and you could crawl through it and it looked like grass - in that some blades leaned this way, others that, different lengths etc.

I've always wondered what technique they used. Plains could do it - but I'd guess you'd need quite a few - even if you onl;y rendered ones close to the camera - but , it SEEMED to sort of do it everywhere you looked... regards of the "pan size" scenery size etc. I do understand they may have only rendered anything that "would be on cam" but - I was always impressed - even the SCOPE view for sniping showed the grass very well near baddies...

I don't know how to go about this though admittedly.
Jason

Know way too many languages - Master of none
Draglan
11
Years of Service
User Offline
Joined: 7th Oct 2007
Location: In the mirror
Posted: 14th Oct 2007 20:55
Cool!

<img src="http://www.danasoft.com/sig/PwnageUlmighty.jpg" border="0"></a><div style="font-family:arial,sans-serif;font-size:11px;">
Eevil Weevil
12
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 1st Nov 2007 20:32
Ditto!

Impossible? Anything is impossible. Of course it's impossible, you just have to believe in it.

Login to post a reply

Server time is: 2019-08-25 16:35:34
Your offset time is: 2019-08-25 16:35:34