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?
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.
“Free rotation” sprites (instead of upright or billboard) would be nice, specially for things like effects with tons of sprites.
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?
ok, I think I wil try with the mesh.
You must be logged in to reply to this topic.
Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.