decal

libgdx decal dynamic text

ε祈祈猫儿з 提交于 2019-12-20 05:46:07
问题 I'm working on 3D (2.5D) application in Libgdx. I've found Decals very useful for this purpose. In my app there should be layers, that contain dynamical text, now I'm wondering what is the best way to draw text via Decals. Currently my implementation is based on drawing BitmapFont to FBO, then I get FBO texture and bind it to Decal before DecalBatch.flush(). I think that this is maybe not the most efficient way of doing this, but can't figure out better way. My app can contain large number of

Libgdx rendering floor for 3D game

流过昼夜 提交于 2019-12-06 04:08:01
问题 In my first 3D game i now want to render the floor, which is actually a plane (not a libgdx Plane ) on y = 0 . I want to add a Texture to it, so i can have different floors in each level. Now my question is: What is the best way to create and render this textured floor? I thought about using basic Block Models made with ModelBuilder and then added a Texture , but as i can only see 1 of 6 faces a 2d Texture would be enough, so i thought about a Plane . Can i add a Texture to a Plane , as it is