Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Muhammad

Pages: [1]
1
Support / Scrabble tiles in JPCT
« on: October 23, 2014, 05:39:23 pm »
Hi there,

First of all I would like to thank the makers/maintainers of JPCT. There are more powerful engines out there but JPCT seems simple and elegant, and perfect for beginners like me.

I am trying to make a scrabble like game using JPCT, and learning game programming at the same time. I have managed to make a tile in blender, export as .3ds and render in android. Currently its only showing a big black tile but that's probably because its so easy to mess up naming textures, materials in blender and for it not to match up.

My question is, as you know in scrabble you have A-Z, so I need many tiles, I was thinking:

1. Make 1 tile
2. Make many textures with 'A', 'B' etc.
3. Apply the required texture in android when I need a certain tile.

However, to apply textures properly I need get it right in blender, which pretty much binds the model to a certain file, ie. A.png ... so when I need to replace it with texture B.png in my app will it texture correctly?

Maybe an alternative approach would be to make 1 massive texture with all tiles, and somehow set the coordinates on the fly in android. The worst approach seems to make a tile model for every letter, and also a texture for every letter.

Can you please let me know how I can approach this problem in JPCT?

Thanks.

Pages: [1]