this is my current grass model
but i'm not quite satisfied with it. anyone know any better grass example that i can refer to? (preferable wireframe) thanks in advance
I'm studying the grass in Battlefield 2, and trying to add something similar to my game.
They apparently used fixed billboards, positioned at random rotations, and they match the color of the texture of the terrain. And in return, the texture of the terrain also mimics the grass billboards, like it's flatten.
andrei25ni; that looks good (battlefield and yours). I suppose the key here is making the ground texture match the tuft texture quite closely. How are you positioning & rendering the nodes?
I would suggest an improvement to the method; add a simple shader to make the tufts fade to invisible as the angle they make with the camera gets smaller. That way the odd-looking side-on quads won't be visible. Not sure how much this would effect performance. Also making the quads smaller (vertically) towards the edges of the grassy area would make them look more realistic IMO.
btw, you'd be much better off using ALPHA_CHANNEL_REF instead of ALPHA_CHANNEL; it'll remove the odd glowing around tree leaves and significantly increase FPS with that many grass nodes.
I often see grass patch attempt as a quad put vertical on the ground, 2 corners up. However, the best patch I saw was a triangle/quads with one corner up.
Virion >> I would say problem is in density of your grass pattern. If you would draw individual blades at bigger distance from each other, they would not blend together under small angles to camera making faces of your model so noticeable.
Bye the way the same problem often occur with modelling trees and its hard to overcome if you want to keep your polycount reasonable.