[App] [Updated 02-NOV-2008] Diamond Cubes

Search This thread

cgeboers

Senior Member
Jan 8, 2008
86
1
Schriek
Here is a small OpenGL based program that allows you to use your Diamond as a "Dice Shaker". It is a simple program and it was written to learn how to use OpenGL together with C# on my Diamond.

There are still some bugs in the collision detection code, but I think it is a good example of what can be done with this lovely PDA/Phone.

I apologize for the bad interface, there is not much else you can do then shake it and exit from the program.
The dices are 3D objects and tumble across your screen. I still think there should some better "randomness" and there is an annoying bug, which I short-fused in a very ugly way ;)

Anyway have fun and if I find the time, I will certainly try to improve it.

Done:
- Add sound effects/ buzzer triggering - thanks to gerDiamond to fix the "bugs" in the collision detection and surur for the sound and background file. Also thanks to simplifight to clean up some of the code.
- Better graphics - I think I finally understand OpenGL lighting :D
- Menu choice for the number of dices - You can choose 1 till 7 dices
- Ticking on the screen is the same as shaking the device.

Still todo
- Different faces for different types of games (for example the dice colors needed for "Cities3D" ?) - Basic setup for this is done, just need to find the time to create the images
- Nicer graphics for the playboard. Again I have the graphics understood and made some code changes with regard to the rendering of the dices.
- 3D tilting. Have a look at my "Paper Plane" app, which shows a 3D F16, which you can look at from all sides.

Lower priority todo
- Zoom in or out ??
- Change size of play-field ???

Any suggestions are welcome.

I will post the latest sources again, but it could take a few days, since they sort of are a mess for the moment.

Dice can be parked by clicking on them. Clicking on them when parked, they will go back to the "field".

Help needed
I could still use some help in the dice rotation algorithm. Currently there is a tendency to favor some numbers, but I need to randomize it better. One solution is perhaps to randomly choose between turning around the x or y-axis ?
Graphics are welcome.
I also could use some help or guidance in using a "3DS" loader or something similar, so that people can design their own dice textures.


If you have nice pictures of dices, preferable JPG or PNG with square sides, I will try to use them. Usable sizes are 64x64, 128x128 or 512x512
 

Attachments

  • Screen03.jpg
    Screen03.jpg
    15.9 KB · Views: 14,302
  • Screen04.jpg
    Screen04.jpg
    16.2 KB · Views: 2,505
  • Screen06.jpg
    Screen06.jpg
    16.2 KB · Views: 2,743
Last edited:

charly_mx

Senior Member
Jan 18, 2007
737
0
got the sofa!!

Hi there!! It looks great for fun with your friends!!!

I will try it right away !!
 

charly_mx

Senior Member
Jan 18, 2007
737
0
I just tested this first version.

The animation is great, perhaps de Gsensor sensitivity could be enhanced to be more realistic the "shake" to trow the cubes.

Great job my friend!
 

NisseDILLIGAF

Senior Member
Jul 12, 2008
1,318
31
Xiaomi Mi 2
Xiaomi Poco F3
Wow.. very nice :)

This looks great... A little more programming and it will be perfect...
some sound... and interaction with the cubes.. ( now they can land ontop on eachother)

Looking forward to see the next version :D
 

gebruikershaes

Senior Member
Jul 26, 2008
78
2
Great app, but it doesn't work for me. I'm using 1.93 NL official rom.

I allso found an iPhone dice app so here is the link for inspiration for further developement http://www.youtube.com/watch?v=ugoq8M2XxVE

I'm also willing to make the dice so they look more beutifull but i don't know how this is done with mobile phone apps. Will a Cinema 4D or 3DSMAX render do?
 
Last edited:

cgeboers

Senior Member
Jan 8, 2008
86
1
Schriek
.NET CF 3.5 needed

Great app, but it doesn't work for me. I'm using 1.93 NL official rom.

I allso found an iPhone dice app so here is the link for inspiration for further developement http://www.youtube.com/watch?v=ugoq8M2XxVE

I'm also willing to make the dice so they look more beutifull but i don't know how this is done with mobile phone apps. Will a Cinema 4D or 3DSMAX render do?

Problem 1: You might want to check if you have .NET CF 3.5 installed. I always use that because it is installed in my ROM.

The dice is created as a cube on which I render 6 different images. So I don't know if you can use Cinema 4D or 3DSMAX. Check the sources, maybe that it gives you a better idea ? Any way I appreciate any help I can get, I am still learning to use the OpenGL software, so I have not really a clue about all the possibilities. Sometimes it feels like I have managed to understand about 5% :D
Maybe some other people can help out here ?

My main reason to add the sources also was the hope that somebody would take the application and make it better, so that I can learn of it too.
 

wheresmybeaver

Senior Member
Jul 24, 2008
244
22
Great idea. Should be called "Diamond Dice" though? sounds more appropriate ;-) And is the animation quite smooth for everybody else? not very smooth on my Diamond, but that might be due to the high memory usage I usually have
 

ykyong

Member
Jun 29, 2007
16
0
Great app, but it doesn't work for me. I'm using 1.93 NL official rom.

I allso found an iPhone dice app so here is the link for inspiration for further developement http://www.youtube.com/watch?v=ugoq8M2XxVE

I'm also willing to make the dice so they look more beutifull but i don't know how this is done with mobile phone apps. Will a Cinema 4D or 3DSMAX render do?
The graphics looks very realistic for the iphone...hope someone can do better for the diamond.
Would b great if can add in sound and slight vibrations when the dices hit the sides of diamond...
 

pbv302

Senior Member
Aug 25, 2008
210
0
The graphics looks very realistic for the iphone...hope someone can do better for the diamond.
Would b great if can add in sound and slight vibrations when the dices hit the sides of diamond...

I settle for "just as good". I hope someone here will take on the challenge to create a similar app. Diamond Cubes is a really good start!:)
 

dzign-it

Senior Member
Jul 11, 2005
156
0
Yeah this is cool to start with, heres hoping someon can expand this with sounds, better responses etc.
 

pbv302

Senior Member
Aug 25, 2008
210
0
Is there anyone working on this or is it forgotten? Hopefully not, I’d love to see a yatzy version ala Iphone style…
 

Riekr

Senior Member
Sep 9, 2008
571
90
ɌɛggiŒmiɭia
Hi, congratulations and thanks for the app! :D
after having seen this app i wondered if it is usable for playing table top role playing games like d&d

It would be very nice to have those features (first are most relevant):

- type of dice (4, 6, 8, 10, 12 or 20 faces are standard dices)
- how many dices
- color one or more dices differently (in d&d you may be using one dice for fire damages and another one for ice damages for example)
- save and quick load presets like "2D8+1D6(fire)"
- if we have presets it would be nice to save fixed modifiers and calculate the final result, for example ""2D8+1D6(fire)+2" means you roll 2 8 faces dices, 1 red 6 faces dice and sum 2 to the final result.
- ok.. since maybe i am the only one who needs those features a simple and advanced selector at the startup would be nice for everybody ;)

thanks! ;)