Multiple textures in one file

How do i best load textures that are in the same file (png)? I have a file looking similar to this: http://minecraftterrainchanger.files.wordpress.com/2011/06/terrain-orig.png

How can i take a specific part of a file like that and apply to a spatial (Box in this case)?

By using the appropriate uv co-ordinates in the model…

i assume you use Blender.



use UV like here: http://www.youtube.com/watch?v=0_0d8pHMlAQ



you can always use TextureAtlas as alternative.



if you want to swap using images (that are in one image), there are also several ways. In minecraft case there are simple bloxel world so it can be easly programmed to change UV. But remember → bloxel != world from boxes. it just look like from boxes.

@oxplay2 said:
But remember -> bloxel != world from boxes. it just look like from boxes.

How do you mean? Are there a better way of building a box-based terrain?

the keyWord is:



voxel (bloxel is just voxel based on boxes) - it render/contains only surface



http://hub.jmonkeyengine.org/groups/user-code-projects/forum/topic/simple-voxel-engine-starter-kit/

http://hub.jmonkeyengine.org/groups/user-code-projects/forum/topic/dynamic-infinite-procedural-voxel-terrain/

http://hub.jmonkeyengine.org/groups/graphics/forum/topic/voxel-advice/



http://johnrichie.com/V2/richie/isosurface/images/voxel.jpg

1 Like