Go Back   xda-developers > HTC Diamond: Touch Diamond, MDA Compact IV > Touch Diamond, MDA Compact IV Themes and Apps


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th August 2008, 05:05 PM
cgeboers cgeboers is offline
Member
 
Join Date: Jan 2008
Location: Schriek
Posts: 84
Default [App] [Updated 02-NOV-2008] Diamond Cubes

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
Attached Images
File Type: jpg Screen03.jpg (15.9 KB, 9030 views)
File Type: jpg Screen04.jpg (16.2 KB, 2033 views)
File Type: jpg Screen06.jpg (16.2 KB, 2300 views)
Attached Files
File Type: cab Diamond Cubes V2.CAB (331.5 KB, 21642 views)

Last edited by cgeboers; 2nd November 2008 at 04:35 PM.. Reason: new version
Reply With Quote
Sponsored Links

  #2  
Old 29th August 2008, 05:15 PM
charly_mx charly_mx is offline
Senior Member
 
Join Date: Jan 2007
Posts: 737
Default got the sofa!!

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

I will try it right away !!
__________________
Omnia II. HTC Diamond on the Shelf now | 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
Reply With Quote

  #3  
Old 29th August 2008, 05:20 PM
charly_mx charly_mx is offline
Senior Member
 
Join Date: Jan 2007
Posts: 737
Default 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!
__________________
Omnia II. HTC Diamond on the Shelf now | 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
Reply With Quote

  #4  
Old 29th August 2008, 05:36 PM
NisseDILLIGAF's Avatar
NisseDILLIGAF NisseDILLIGAF is offline
Senior Member
 
Join Date: Jul 2008
Posts: 1,264
Default

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 !!!
Reply With Quote

  #5  
Old 29th August 2008, 09:56 PM
andymod666 andymod666 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 24
Default

nice job!

how about adding another 3 dice so i can play yatzee?
Reply With Quote

  #6  
Old 29th August 2008, 11:08 PM
gebruikershaes gebruikershaes is offline
Member
 
Join Date: Jul 2008
Posts: 49
Default

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..
Reply With Quote

  #7  
Old 29th August 2008, 11:33 PM
cgeboers cgeboers is offline
Member
 
Join Date: Jan 2008
Location: Schriek
Posts: 84
Default .NET CF 3.5 needed

Quote:
Originally Posted by gebruikershaes View Post
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%
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.
Reply With Quote

  #8  
Old 29th August 2008, 11:42 PM
alsebalsam alsebalsam is offline
Junior Member
 
Join Date: Mar 2007
Location: Fagersta
Posts: 29
Default

Nice app!

A little laggy though, besides that it looks great!
Reply With Quote

  #9  
Old 29th August 2008, 11:45 PM
wheresmybeaver wheresmybeaver is offline
Member
 
Join Date: Jul 2008
Posts: 54
Default

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
Reply With Quote

  #10  
Old 29th August 2008, 11:55 PM
vibecatalin's Avatar
vibecatalin vibecatalin is offline
Senior Member
 
Join Date: Jul 2008
Posts: 126
Default

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
Reply With Quote

Reply

Tags
cube

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.