-
Notifications
You must be signed in to change notification settings - Fork 74
focus discuss; alpha-1.0+parrott #153
Comments
Ref. TextOptions and in general - Should we include blur, outline and shadow? This would allow for more flexible options for BitmapFonts at least - so we don't have to pre-render. Not quite sure how to solve this though - but I guess this can be discussed more in detail on a particular issue number if we want to support this. For #98, what is not clear to me is if we still focus only on BitmapFont or also considering TTF / glFonts or similar. |
For #42 you will find mention of other font support. BitmapFont is preferable in many cases for games as it allows a lot more expression for a lot less complexity. In the first versions at least focus will be ensuring that it is solid and useful for all kinds before moving onto more complexity getting into the core code, and even better, how to support these without having it be baked in, so multiple approaches will be possible. Secondly, why would you want to blur text hah? That would easily just apply to the geometry as a shader, but with regards to outline and glow you will find that Signed Distance Field font shaders support a few small set of things like that - possible with low cost. The bitmap fonts in luxe will have SDF soon, so they will inherit this "for free" to some extent. For most effects - at least for initial versions of luxe - this is the job of a module, not the core code as it's possible in many different ways, and many won't fit what somebody might want from it. |
Ok, makes sense. Agree that it is good enough to focus on the BitmapFont for now. |
Hello! |
Everything in luxe is essentially a "Mesh" as it is 100% hardware based. What you are probably looking to do is : var options: luxe.options.GeometryOptions = {};
options.batcher = Luxe.renderer.batcher; //required
options.primitive_type etc
var mesh = new Geometry(options);
mesh.add( new Vertex( pos, color ) );
mesh.vertices[0].uv0.set_uv(0,0);
mesh.transform.pos = etc Geometry Hope that helps. You can also ask questions at http://gitter.im/snowkit/public , as this thread is for a focus sheet :) |
Please read these two posts in full before commenting below :
The text was updated successfully, but these errors were encountered: