|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() - 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 Last edited by cgeboers; 2nd November 2008 at 04:35 PM.. Reason: new version |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Hi there!! It looks great for fun with your friends!!!
I will try it right away !!
__________________
HTC Diamond on the Shelf now, I upgraded to Omnia II | ROM: Duttys_V4.0 Full CVSD| Best Radio: [SU] 1.12.25.19 | Protocol: 52.29.25.12W | HardSPL: 1.93.OliNex | Carrier: TELCEL | GPS Navigator: Destinator 7, Mexico Maps Q4 2008 |
|
#3
|
|||
|
|||
|
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!
__________________
HTC Diamond on the Shelf now, I upgraded to Omnia II | ROM: Duttys_V4.0 Full CVSD| Best Radio: [SU] 1.12.25.19 | Protocol: 52.29.25.12W | HardSPL: 1.93.OliNex | Carrier: TELCEL | GPS Navigator: Destinator 7, Mexico Maps Q4 2008 |
|
#4
|
||||
|
||||
|
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 ![]()
__________________
HTC Touch Diamond ROM: DILLIGAF ROM 1.0 SVE TF3D version: 1.1.35345.3_1630.38_CFC Radio: 1.09.25.23 Recent creations New Menu Selector #2 New Menu Selection TF2D Clock Custom Manila My Theme Thread Customizing TF3D - The Collection! If u like what I do, why not buy me a beer ![]() !!! READ THIS BEFORE STARTING A NEW THREAD !!! |
|
#5
|
|||
|
|||
|
nice job!
how about adding another 3 dice so i can play yatzee? ![]() |
|
#6
|
|||
|
|||
|
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 by gebruikershaes; 29th August 2008 at 11:16 PM.. |
|
#7
|
|||
|
|||
|
Quote:
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% ![]() 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. |
|
#8
|
|||
|
|||
|
Nice app!
A little laggy though, besides that it looks great! |
|
#9
|
|||
|
|||
|
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
|
|
#10
|
||||
|
||||
|
Greatttt ... thanks a lot...
__________________
HTC Touch Diamond RUU_Diamond_HTC_Europe_2.03.401.2 Radio_Signed_Diamond_52.51.25.26_1.09.25.23_Ship |
![]() |
| Tags |
| cube |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|