Main Menu
Menu

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.

Show posts Menu

Messages - Muhammad

#1
Support / Re: Scrabble tiles in JPCT
October 24, 2014, 01:54:43 PM
Thanks for the reply. I am currently struggling with even loading my .3ds model. Before it loaded fine when:

1. I made a tile object in blender
2. I set its dimensions, applied a default material and then just applied my texture (picture of a K with beige bkg) on top.
3. Exported to .3ds

Then I tried to be more clever :

1. I made a tile object in blender
2. I set its dimensions, applied a default material [and set its color to beige] then just applied my texture (picture of a K [with transparent bkg]) on top.
3. Exported to .3ds

Now the whole tile is black in jpct, and I have retried many times, trying to get the right names etc but it does not affect it. I am not on my home pc otherwise I would have posted logs. But I recall nothing seemed odd in the logs, and the name I set for my texture was matched up.

As for the second issue, it would be great if I did not even have to set a texture in the blender model, and I could set the map in code, it would make it much easier. Could you point me to an example of what the matrix coordinates may look like?

Also can I also get away with not setting a material in blender and setting that in code also? It would be nice to make it shiny like plastic. If you can point me to examples that should be sufficient, I am a beginner in all things game related, but I have been programming for a long time.

#2
Support / Re: Scrabble tiles in JPCT
October 23, 2014, 06:04:59 PM
Thanks Darai for the response, I will try when I get home today.
#3
Support / Scrabble tiles in JPCT
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.