3D Grass

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
kaadmy
Private First Class
Private First Class
Posts: 37
Joined: Wed Oct 28, 2015 5:31 pm

3D Grass

Post by kaadmy » Mon Jun 27, 2016 11:52 pm

I've implemented 3D grass into BZFlag 2.4.6, and while it might be messy and won't work on maps with fake floors, it's still a step, however small :)

download/file.php?mode=view&id=16733&si ... d43f0af1ef

download/file.php?mode=view&id=16734&si ... d43f0af1ef

Compiles and runs fine on Linux, but will NOT work on Mac, and probably won't work on Windows, as I don't have the resources to test those platforms.

Source is available here: https://github.com/kaadmy/bzflag-3dgrass

Edit: screenshots
Attachments
3dgrass03.png
(1.87 MiB) Not downloaded yet
3dgrass01.png
(1.92 MiB) Not downloaded yet

User avatar
Zehra
Private First Class
Private First Class
Posts: 279
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic
Contact:

Re: 3D Grass

Post by Zehra » Fri Jul 01, 2016 6:35 pm

Congratulations kaadmy

Nice work on the 3-D grass.
3-D grass would be nice to see implemented in BZFlag, but I have a minor suggestion for it.
Perhaps it would be better to add 3-D grass as a map option along so that it could be used for maps.
Maybe some options could be added to it such as.
-set _grass height 1.5
-set _grass density 5.0
-grass
green (options would be dark green, light green...etc)
-set_wind blow 5.0 (this would allow movement of grass as if wind is blowing it)
-set_grass effect 1.0 (this causes tanks to slow down as if they would be traveling cross-country)
There's this game I love and it's called Ducati. ~Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
The details and the skill of knowing and applying them is what excellence is made of. ~Zehra
The best player is the one who knows what to do and when and applies it successfully. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
My blog is available at zehrahblog.wordpress.com.

User avatar
kaadmy
Private First Class
Private First Class
Posts: 37
Joined: Wed Oct 28, 2015 5:31 pm

Re: 3D Grass

Post by kaadmy » Tue Jul 05, 2016 6:27 pm

@Flak 18: Most of those options are easily addable, except for the grass effects and wind.
I don't see what you mean by grass "effects", what's that for? (Grass is ONLY visual, and client-side)

User avatar
Zehra
Private First Class
Private First Class
Posts: 279
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic
Contact:

Re: 3D Grass

Post by Zehra » Tue Jul 05, 2016 7:33 pm

@Kaadmy: The grass is nice, but physics would be nice to have and add an element to game play.
Also it would be nice to be able to adjust grass height so certain aspects can be done with maps.
Depending on maps it would be nice to be able to chose between high and short grass as an effect.
Some interesting effects could be added to maps along with added details and appear more real.
It's nice visually to have grass, but would be nice to have more effects for available for usage.
I'm not sure if it's a good idea to have this implemented as a map feature, but it would be interesting to see.

-Zehra
Last edited by Zehra on Wed Jan 04, 2017 3:48 am, edited 1 time in total.
There's this game I love and it's called Ducati. ~Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
The details and the skill of knowing and applying them is what excellence is made of. ~Zehra
The best player is the one who knows what to do and when and applies it successfully. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
My blog is available at zehrahblog.wordpress.com.

User avatar
kaadmy
Private First Class
Private First Class
Posts: 37
Joined: Wed Oct 28, 2015 5:31 pm

Re: 3D Grass

Post by kaadmy » Tue Jul 05, 2016 8:31 pm

I'm not sure how physics would change anything, especially since the server can already change stuff, ie. friction and similar things.
My original idea was to place grass in grass "zones", defined by the map file.
I want to have grass completely optional, and client-side whenever possible, and while map-specific options are nice, I don't think they'll work out very well.

User avatar
Zehra
Private First Class
Private First Class
Posts: 279
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic
Contact:

Re: 3D Grass

Post by Zehra » Tue Jul 05, 2016 9:15 pm

It was a thought on a concept :wink: .
There's this game I love and it's called Ducati. ~Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
The details and the skill of knowing and applying them is what excellence is made of. ~Zehra
The best player is the one who knows what to do and when and applies it successfully. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
My blog is available at zehrahblog.wordpress.com.

User avatar
macsforme
General
General
Posts: 1949
Joined: Wed Mar 01, 2006 5:43 am

Re: 3D Grass

Post by macsforme » Wed Jul 06, 2016 3:52 pm

Having it not poke through buildings and also having it bend down or at least disappear when a tank drives over it would be two physics "effects" that would make it more visually appealing. Also, having it fade out a little more gradually to the ground color/texture would probably improve the visual appearance a little.

Nice work, though. I'm not aware of anyone else who has ever tried something like this.

User avatar
kaadmy
Private First Class
Private First Class
Posts: 37
Joined: Wed Oct 28, 2015 5:31 pm

Re: 3D Grass

Post by kaadmy » Wed Jul 06, 2016 5:45 pm

Thanks @Constitution :)
Grass is currently a little ugly around edges of objects, ie. tanks and buildings, and I've also tried a few different ways to blend the grass near the ground, and the current method works pretty well.

click click boom
Private First Class
Private First Class
Posts: 137
Joined: Fri Nov 13, 2009 7:53 pm

Re: 3D Grass

Post by click click boom » Mon Aug 22, 2016 11:10 pm

nicest grass i have ever seen, needs to def. be implemented.

User avatar
kaadmy
Private First Class
Private First Class
Posts: 37
Joined: Wed Oct 28, 2015 5:31 pm

Re: 3D Grass

Post by kaadmy » Fri Aug 26, 2016 7:05 pm

Thanks @ccb :)
I've already made a PR a few months ago, never got merged though.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests