Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Coding Grass/Vegetation

  1. #11
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Melbourne, Australia
    Posts
    239

    Re: Coding Grass/Vegetation

    kaksi comments :
    Nice demo.
    It could be even nicer if you made your grass move as the wind blows. This wouldn't make things faster, but everything has its cost.

    I wouldn't build grass from single lines, grass like that would require huge amount of lines to look dense. This wouldn't look naturally too, since the grass' width would stay the same no matter you're far from or close to it.

  2. #12
    Guest

    Re: Coding Grass/Vegetation

    Unfortunatly ur program doesnt run :\ it starts and closes before anything.
    Anyway, ur probably right about that line thingy.
    I'll keep searching and trying until i find something that looks good enough and runs fast

    Cheers
    Originally posted by JustHanging:
    Thanks! I didn't release it back then, but I guess I can as well do it now. Here goes: http://www.hut.fi/~ikuusela/demos/Grass_demo.zip

    I hope it works, I wasn't going to release it when I did it. It's not very optimized either, but it's fill-limited anyways.

    Grass Dwd:
    I gave a short explanation in my previous post. There are lots of details, but most of them you can easily sort out yourself too. Can you tell me which part you didn't understand? If you get the demo work, you can dive underground, that should give you some hints too.

    Your line thing sounds ok for small amounts of grass, but I think it gets too heavy if the ground is filled by grass. Or maybe you could replace the lines with triangle strips, that might look better.

    -Ilkka

    Edit: link didn't work

    [This message has been edited by JustHanging (edited 01-15-2003).]

  3. #13
    Advanced Member Frequent Contributor
    Join Date
    Dec 2002
    Location
    Espoo, Finland
    Posts
    599

    Re: Coding Grass/Vegetation

    Originally posted by MickeyMouse:
    kaksi comments.
    I'm impressed.

    Yeah, the wind would be cool, altough I'm not sure how well it works with my technique. Maybe I'l try that some day, but I have serious doubts.

    Sorry Grass dvd, I guessed it wouldn't run on your system, since the other demo didn't run either. What kind of video card do you have? It's propably got to do with the extensions, I use multitexture, tex_env_combine and CVA. But the last one is only used for speed, and the two others for, well, the sun effect, so maybe I could wrap up an extension free version. But that's no promise.

    -Ilkka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •