Sprites in cross setup for grass.

About Monkey 2 Forums Monkey 2 Programming Help Sprites in cross setup for grass.

This topic contains 4 replies, has 4 voices, and was last updated by  Pakz 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15012

    Pakz
    Participant

    I am not sure if I should use Sprites for creating things like grass. I noticed a Billboard flag and a Upright mode. I think this means you can not rotate a Sprite yourself? I was trying to rotate it myself but I did not seem to get any result.

    I wanted to create grass like in Minecraft where it is set up in a cross like way.

    Should I use regular models?

    #15013

    cocon
    Participant

    Sprites are considered to be 2D objects lying around on the 3D space , planes are real 3D meshes on the other hand.

    In real OpenGL terms, their implementation is exactly the same. Imagine however that if you used only planes and you wanted to be presented as sprites you would have to iterate all of them and apply the matrix transformation (costs CPU time). Sprites do this transformation right from inside the shader and for that saves CPU time.

    #15024

    Ethernaut
    Participant

    “Free rotation” sprites (instead of upright or billboard) would be nice, specially for things like effects with tons of sprites.

    #15025

    Mark Sibly
    Keymaster

    It should be possible to use sprites for this, even if ultimately it’s not the best way.

    Not toally sure what ‘free rotation’ means though. Does this mean the sprite is effectively just a ‘static quad’ that can be rotated/scaled much like a model?

    A static mesh would actually be the best way to do this, except for the sorting problems. Perhaps a static mesh with alpha masking instead of alpha blending? Would this work?

    #15026

    Pakz
    Participant

    ok, I think I wil try with the mesh.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.