supertuxkart / stk-code

The code base of supertuxkart
Other
4.48k stars 1.05k forks source link

inprove soccer field grass apperence (ideas inside) #3053

Open tobyplowy opened 6 years ago

tobyplowy commented 6 years ago

first off sorry for my bad spelling i did my best.

the grass in soccer field looks very flat (becouse it is) and thats a real shame becouse its a very inportant thing in this map (you see it everywhere on the map)

methode 1 simple doesent look great with all textures but its lowpolly (note how the sylinder sinks in the grass) naamloos its made with layers. this can be done with images like i did here but it can also be done with postprossesing that usses only one texture note i dout own these textures (i got the original fom google images i just use it for demo porpossus) racetrack_grass - kopie - kopie - kopie racetrack_grass - kopie - kopie racetrack_grass - kopie racetrack_grass

methode 2 more polly count better visuals agayn i dout own this image i use it for demo reasons cattail-grass-texture-3d-model-low-poly-max-obj-fbx this is how rocket league does its grass ist made using grass objects this can probabbly also be done with particles (note how the car sinks in the grass) rocket league pigeon

i hope it was usefull or at least inspiering i hope i explaned correctly and that you guys can understand what i typed above agayn sorry for the spelling mistakes

tobyplowy commented 6 years ago

rocket league grass a better look lfpst2n

tobyplowy commented 6 years ago

@hiker I hope my spelling wasn't too bad (I dident have outo correct) So is there any news on this is it a good idea?

auriamg commented 6 years ago

@tobyplowy This might be done if some artist is willing to play with this. We depend on contributions, artists will do what they want

hiker commented 6 years ago

Well, I don't think any one of the core team will have time for that, so unless we get a pull request, it will in the best case be a long time before we might consider it. If someone from the core team should be interested, they will just change the label and assign it to themselves, so you should get a notification in that instance.

MatthewsSam commented 6 years ago

Hi I'm sam the lead artist of SuperTuxKart and I'm interested however you can't just take an example from outside and except it to work in our game.

I took actually the time to test both solutions

1) The first one is using a technique that was developed for the shadow of the colossus and the result is surprisingly good in SuperTuxKart.

However it requires custom shaders and currently it's not easy to integrate custom shaders in game. The test was done in a branch which allow easy integration of shaders however it's still Work In Progress and there is no guarantee it will be included in the core game.

I didn't noticed any performance issues. Here is a screenshot grass_shader

2) The second technique is already used in game however not with that much density. During my test the result wasn't impressive. Everything was quite dark and it require a high polycount which might be a bit unrealistic for the performances of the game.

grass_shader_2

I'm not sure if it's the right approach for stk.

I would suggest probably a combination of both and the first technique can be applied for very specify cases like a stadium or a surface that is mainly composed of grass.

3) Since I was trying high density grass technique, I also made a test with billboards. The result is an interesting crossover. It has a lower poly count and produce less artifact than the 2. However the density wasn't good. It would be probably used in situation like small bushes in a desert.

grass_shader_3

In conclusion the first method is quite interesting and if you could provide me with grass textures (as the one you included but creative commons or public domain) it would be a good start.

For a more generic approach I think the billboard is probably where we will go in the future.

tobyplowy commented 6 years ago

@samuncle thankyou for having a look in to my idea i will look for a texture

tobyplowy commented 6 years ago

@samuncle what about these? https://opengameart.org/content/synthetic-grass-texture-pack im not sure if the license is good (i dount understand anyting about licenses) it uses CC0 1.0 Universal (CC0 1.0) in that pack you can find this texture (i think its pefect for the job) ground_grass_gen_05 note that the above image is a downscale

tobyplowy commented 6 years ago

@samuncle but i think that billboards wuld be best

MatthewsSam commented 6 years ago

@tobyplowy we would need good alpha grass textures like the one you have shown in your post (to make the shadow of colossus technique).

I have no idea how to make them or generate them.

tobyplowy commented 6 years ago

@samuncle i made my own textures i hope they are good (my camera is kind of crap but it shuld do the trick) what it shuld look like (note the cube and cone) grass

the copyright is free to use i for what ever you whant creddit is apreciated :D 1 2 3 4 5 Like I sead before the copyright is free to use i for what ever you whant and creddit is apreciated :D

tobyplowy commented 6 years ago

@samuncle is that texture good?

Alayan-stk-2 commented 6 years ago

That certainly looks nicer than most grass in STK tracks.

tobyplowy commented 6 years ago

@Alayan-stk-2 yeah it does :)

tobyplowy commented 5 years ago

Is this still relevant?

qwertychouskie commented 5 years ago

STK now supports custom shaders. @samuncle can you take a look at this again? Especially since networked multiplayer will soon be in beta, soccer fields will probably see a lot more use. If you provide a working example, I can adapt the existing tracks.

tobyplowy commented 5 years ago

It would be amazing if all the grass in every track had this feature :)

tobyplowy commented 5 years ago

Hello I do not want to necropost but this issue seems to have been forgotten. Just wanted to check in to see if it has gotten anywhere?

auriamg commented 5 years ago

@tobyplowy STK is currently quite short on artist contributors, so this will likely remain on hiatus until the project can get more artist contributors

tobyplowy commented 5 years ago

@auriamg I'm possibly interested in helping with art stuff. How do I get involved? I'm a texture/modeling artist but my main interest is texturing.

auriamg commented 5 years ago

If you want to get involved, check the "Get involved" section on our website https://supertuxkart.net/Community . Start by installing the blender tools, reading the documentation on how to make STK tracks. Probably start by making add-on tracks and/or karts to get some practice.