yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] timoline:
This is getting better and better.

Perhaps you can add some vibration when hitting the wall.

(Just like teeter game)

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
welcome back

Happy to hear from you!!

I'll have to wait until tonight to have a look at your new solution... after i post mine (what I should have done yesterday - but I was too lazy and just got to bed after the CAB was packed)

I think it would be better if you took back the control of your project, as you know it better and as I've no experience in openGL... (but i want to learn)

btw, i never noticed about the fours :)
[Touch Diamond, MDA Compact IV Themes and Apps] Jorlin:
This is a neat little app :D

Request:

Change the number of dices (1-4?).

Change the colour of dices and give an option for the background (some options like "wood", "stone" etc.)

Add more dice layouts (4-sided, 8-sided, 20 sided) :D
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Use this technique on the dices, is it possible?

http://xdaforums.com/showthread.php?t=428608
[Touch Diamond, MDA Compact IV Themes and Apps] Jorlin:
At least slightly? So that you have a slight change in viewing angle when tilting? That would be pretty cool :D
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Yeah, like the iPhone app....:)
[Touch Diamond, MDA Compact IV Themes and Apps] x50v:
Great job!!Thanks:)
[Touch Diamond, MDA Compact IV Themes and Apps] surur:
Wow! Its near perfect. The sound has really added to the realism. Very well implemented.

Surur
[Touch Diamond, MDA Compact IV Themes and Apps] Genius2000:
Could you kindly provide binaries also?

Many thanks.

Ciao, Andrea
[Touch Diamond, MDA Compact IV Themes and Apps] zenkinz:
would be good if there's vibration/haptic feedback whenever the dice knocks against the wall or against another dice.
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
I prefer wall only. But that's me...:)
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
solution

Here is my current solution.

I've looked through your code, cgeboers, and I've taken some changes (YRotation) but i didn't include in this solution all the code changes on openGL, etc. (I would have liked but I don't know how long it will take for me to understand...)

For the collision part, I'll let you see ;)

Maybe when we have a nice foundation, we can make sub-projects (dice poker, Mach-like dice roller...)
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
I am happy to see that this project is building up some speed! Thanks guys! I'm excitingly waiting for every new step.:)
[Touch Diamond, MDA Compact IV Themes and Apps] surur:
Here's a video of the updated app in action.

http://wmpoweruser.com/?p=1111

Surur
[Touch Diamond, MDA Compact IV Themes and Apps] alfoalfo:
Hey Hey Hey guys !!!!!!!! Had you saw the "Dice's application" on the Omnia ?

http://www.youtube.com/watch?v=1cp0O5blHIQ&eurl=http://wmpoweruser.com/?tag=accelerometer-game

I want the diamond's app at the same level !!!!! :D:D

P.S. I know it's easy to say (and only say) but i hope the devolper of this forum can do that !!!! :D
[Touch Diamond, MDA Compact IV Themes and Apps] surur:
I think its already at about the same level.

Surur
[Touch Diamond, MDA Compact IV Themes and Apps] emre_aachen:
and I think Diamond Cubes is much more better...
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
I agree, but the iPhone app is awesome...but diamond cubes is on its way!:)
[Touch Diamond, MDA Compact IV Themes and Apps] drhades:
looking good so far, maybe add an option for number of dice? 2, 3, even 4? change color aswell, but i guess you gotta finish the figuring out other things first.
[Touch Diamond, MDA Compact IV Themes and Apps] Scotchy49:
It seems to me that his code can already manage an unfixed number of dices (well.. actually he's limited by the screen size due to collision tests), so it just needs input. Currently this input is 2, he set it arbitrarily. So I'm sure it'll be there =)
[Touch Diamond, MDA Compact IV Themes and Apps] mattemer:
Going to put this on my diamond right now, but this really is fantastic, great seeing everyone come together to help out and build this up! part of what makes wm so awesome. Big thanks to everyone that helped with this! I'd love to, except... well I'm stupid with this stuff :)
[Touch Diamond, MDA Compact IV Themes and Apps] JJ81:
Great app! Question ...

I like this very much and want to use it.

Due to all the improvements I kinda lost track of the best release. Is it possible to post last release in post #1 and give it a release number?

That way everybody knows he/she is working with the last code and using the last version.

Keep up the good work.
[Touch Diamond, MDA Compact IV Themes and Apps] lazerin:
Cool and handy little app! Great work everyone :D
[Touch Diamond, MDA Compact IV Themes and Apps] timoline:
Hi

here some suggestions again:

-touching the screen should also roll the dice.

-Normal exit button (not touch the screen)

That's it for now:)

thx

EDIT: Forget 1 thing: Please disable screen off !!!
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Sounds good to me.
[Touch Diamond, MDA Compact IV Themes and Apps] N31L:
Woot 3 Snake Eyes!!!!!!:d
[Touch Diamond, MDA Compact IV Themes and Apps] kiowa79:
Nice app. Will be better with a menu with the possibility to select the number of cubes, or at least cubes with different colors to dismiss one of them if only one is needed for an specific game.
[Touch Diamond, MDA Compact IV Themes and Apps] matt92:
hello! I have found a bug in your app : you ca make as many tries as you want, you'll never obtain any 4...

has somebody observed the same trouble?
[Touch Diamond, MDA Compact IV Themes and Apps] Ximoon:
Then it's answered : someone has noticed :D
[Touch Diamond, MDA Compact IV Themes and Apps] Riel:
The chance is darn small, but it is possible noone of us will throw a four for the next few months ?

:D
[Touch Diamond, MDA Compact IV Themes and Apps] uniqueboy:
+1 for each dice a different colour, the obvious advantage is you can easily play 1,2 or 3 dice games. Must be easy to code that in surely!! :)
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
Dices needed

You're right, the coding is the easy part, it has been done already, finding the correct images (or create them from scratch) is the hard part :p

BTW I updated the application to incorporate all changes that were request (well at least as much as I can manage)
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
The update is great! Thank you!
[Touch Diamond, MDA Compact IV Themes and Apps] Dynomite232:
wOw its very nice good work man thank you for this

how can we change the back round colur
[Touch Diamond, MDA Compact IV Themes and Apps] NisseDILLIGAF:
I like this very much...

But I'm not to sure about how random it is ...

I played for about 5-10min (time fly when u have fun :D)

And I got many of these (This is not in a row... but pretty close!)

EDIT: This is the result of 1 dice...

2,2,2,6,2,2,2,2,2,2,2,3,2,1,2,2,5,4,2,2,2,2,2,2,4,2,3,2,4,1,2,4,2
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
Background color

Not implemented yet, but will add it to the TODO list. Any suggestions for colors ? ;)

I am also thinking about putting a wooden structure around the screen, sort of like a "pietjesbak", but this is not yet high on my todo list. Parking the dices is for the moment the most important I think.
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
Randomness

I think it is partly because of the way I make the dice go "flat" on their surface when the speed is 0. I have a good idea about how I can fix it. In the mean time you might use this knowledge to gain some advantage in your dice games :D

If anybody knows a good formula to have a rectangle go flat on a surface, let me know. If you have it for cubes, it is even better.
[Touch Diamond, MDA Compact IV Themes and Apps] WhiteCell:
i got same error....almost every time i got 2...when cubes almost stop...they change to 2
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
Hi

Are you sure that you posted your latest CAB? it does seem to include the lighting you had put in your solution...

On the "2" issue, I didn't understand the way you round the X and Y rotations when the dice stop so i tried something different (during the slowdown i update the angle to rotate to the nearest 90°)

I attach my latest CubeForm.cs (everything else is unchanged) and my latest CAB with your lighting (thx for that too!). You can also change the number of dice (up/down) and exit is now the "OK" button ; i've tried the tilt effect but it's not very good...

...so I'll wait for your next solution :)
[Touch Diamond, MDA Compact IV Themes and Apps] girlsbestfriend:
microsoft .net compact framework

hi. i'm new to using my diamond. i tried installing the cab file for the diamond cubes but i encountered an error message saying the application requires a newer version of the microsoft .net compact framework. is there something else i need to install?
[Touch Diamond, MDA Compact IV Themes and Apps] salada2k:
I think I have a little issue with the randomness.

I seem to have rolled ALL 2's with 5 dice about 4 times in a row... Now everytime I roll 5 dice at least 4 of them are 2's.... :D

Also once the dice appear to have 'settled' the upwarding facing number appears to change at the last second! Implying the object is not a true 3D object?

Please keep the dev coming! I really like the app!!!! :D

EDIT: I now see I'm not the only one who is so 'lucky' hehe :D
[Touch Diamond, MDA Compact IV Themes and Apps] pauloke:
Hi great app and great work going on here.

I haven't checked out your source yet but you could have a look at the ATan2 (arcTangent) formula (path of the Math library). I think this calculates the angle in degrees or radians (cant remeber which) from one 2D vector to another.

So you could calculate the angle of the cube face facing downwards and work out the angle required to rotate this so it is level with table plane. sounds easier than it is. Not sure if I explained this correctly. Will check out your source and see what can be done.

Again great work going on here.
[Touch Diamond, MDA Compact IV Themes and Apps] xda5566:
adding the 4 sided, 8 sided, 10 sided, 12 sided, 20 sided dice will make the app more fun and useful specially in RPG game fans :-) Is that possible?
[Touch Diamond, MDA Compact IV Themes and Apps] slow23:
I second that. 20 sided dice would be very nice (even if its hard to code).
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
Fixes on the way

I was thinking along this line, but due to time contraints I might need a few days to get the next version ready. Actually, I just need to find which direction one of the planes is pointing too, like for example the "one" and one which is orthogonal to it perhaps.
[Touch Diamond, MDA Compact IV Themes and Apps] vphk:
Hello, I think I need 6 cubes for games. Is it possible to add it to game ?

And it could be perfect, when I can select number of cubes on the bottom of screen.

Bye
[Touch Diamond, MDA Compact IV Themes and Apps] dst6se:
Hello !

Please can you add the number of dices to 6, its hard to play Maxi Yatzy with 5 dices.

Thanks for a good application.
[Touch Diamond, MDA Compact IV Themes and Apps] triklops:
This application is one of the best.

However the newest version is a step backwards IMO. Choosing the number of dices is great but the dices move more unrealistically than before. It's like they change the face in te very last moment without the dice moving.

Still GREAT APP...Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] expo7:
Still in the new version :confused:
[Touch Diamond, MDA Compact IV Themes and Apps] zenkinz:
i installed the latest cab (from the first post of the thread), and it's still 3 dice?

also, will the vibration be added upon collison?
[Touch Diamond, MDA Compact IV Themes and Apps] gebruikershaes:
That's allmost impossible to do perfectly, because when you shake your phone fast the dice will be coliding like crazy, wich will result in a continous buzz of vibration..
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Wow, really nice! I like the way you change the number of dices and the lighting. The tilt effect is a little weak but I have faith in you, it's going to be awesome! I kind of liked the black surface better than the green one. I think the number of dices and the number of sides on the dice is important but that can wait till everything else is working the way you want. I think this and the "hologram" app by pauloke is the most interesting projects here! Keep it up! I wish I cold help in any way but I'm to stupid and old for coding and that kind of stuff...(But if you need help driving or tinker with a APC or a MBT I'm your man!)

:)
[Touch Diamond, MDA Compact IV Themes and Apps] pauloke:
I think if you can either keep track of the cube face normals or calculate then just before the speed hits zero then you can workout which face is closest to facing the table by comparing the face normal with the table normal. You can then rotate the cube by the angle - that should work.

I an guessing as ATan2 works for 2D vectors then you will need to do this for the (Z, X) plane and the (Y, Z) plain. Hopes that makes sense.

Was hoping to try this out using your code but haven't had the time to sit down and understand the code. Maybe if you let me know where in the code the final adjustment is made then i could try and let you know how I get on or just contact me if you need assistance.

I like this as it has a practical use (unlike my hologram :()
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
To many dices ?

Sorry, but this is a source only post. I tried to increase the number of dices, but I seem to hit a limit in that case. Dice will disappear all of a sudden, there are white and black triangles drawn on the screen. I encounter this each time I try to use 5 or more dices.

The current code can increase the number till 8 dices, either by using the menu, or by "rotating" the nav-sensor in clock- or counter-clock mode. I also fixed the lighting (I had it accidently removed in one of the previous versions).

I am not sure if it is a hw problem, or software, but my "Paper Plane" application still performs fine. [If you like 3D effects have a look at this, it allows you to turn your PDS around, so you can watch all sides of a "Paper version" of the F16.]

Maybe I need to go to try "back-face culling", but for the moment this is still a bit above my head. I only have added the sources for CubeForm.cs and Dice.cs, the rest of the project is too busy
[Touch Diamond, MDA Compact IV Themes and Apps] Kueh:
I think the first thing that needs to be addressed is more accurate randomness.

I seem to roll a lot of 2's as well, though the program works well otherwise.

Also, maybe make the threshold for shaking the dice adjustable. Right now, it's a little too sensitive.
[Touch Diamond, MDA Compact IV Themes and Apps] Herr_Knigge:
fix the dices?!

just tried it: great app, but a lot of "2's" here too.

also it would be great, if you could fix the dices somehow (maybe by touching it),so you can roll 5 dices the first time, then fix 2 of them and only roll 3 dices again (for example for yatzee and some other games)

(hope you got an idea of what i mean...)
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
I think that is a great idea!
[Touch Diamond, MDA Compact IV Themes and Apps] Bliblub:
Hi, the thing with the twos... i observed that when ever i roll a five, it instantly changes to a two..
[Touch Diamond, MDA Compact IV Themes and Apps] SXT82:
same here ... please fix this bug because its really a cool app.
[Touch Diamond, MDA Compact IV Themes and Apps] alken00:
seeing to many 2 2 2 2 2 2 :) I started to hate no 2 already :)
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
I dont have the "2" problem at all using the cab in post #75 by gerDiamond. It's working great and the 3d tilt is cool but need a little more work...:)
[Touch Diamond, MDA Compact IV Themes and Apps] Kueh:
Yes, post #75 works better for randomness, but not fond of the dice sliding around so much.

There is no point in continuing development if the 5 dice limit cannot be remedied. A few of the newer board games use 5 different dice, with options for a sixth die, and multiples of each die. That amounts to almost 12 dice in a throw or more. And then holding most of the dice while re-rolling one or two dice. It's not going to be easy

Also, for generic gaming, the dice need to be changed to a numbered facing instead of using the pips. Try counting the pips on a twenty sided die. Considering that, only the top number should be displayed clearly, as side number would make reading a chore. Try reading a 100 sided die.
[Touch Diamond, MDA Compact IV Themes and Apps] Seifer:
i am getting many 2's here too. and also a little better graphics like dices shining or other dice models that could be used would be really cool.
[Touch Diamond, MDA Compact IV Themes and Apps] lazerin:
Yet another two problem here. Otherwise, it's a great app!
[Touch Diamond, MDA Compact IV Themes and Apps] kslwong:
The 24-09-2008 version always getting "2" ..... :eek::eek:
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
The randomness in the release in post #75 is ok I think. Best release so far. It would be great if that version could move up to first post, or even better, a new update!
[Touch Diamond, MDA Compact IV Themes and Apps] kslwong:
Seems those two releases are not from the same developers .... anyway, if randomness issue is not solved, adding more features is meaningless :(:(
[Touch Diamond, MDA Compact IV Themes and Apps] cgeboers:
Better randomnesss

I am still looking into the randomness problem and as a side track created a different dice roller. It allows you also to use numbers instead of dices and it can handle a lot of dices. There is no sound yet, but I would like feedback on how you think the randomness is handled. I feel it is better (using different seeds and mechanisms), but you never can be sure.

If this turns out to work fine, I will try to incorporate the changes in the original dice thrower.

Usage: shake or click on the screen to activate the rolling. Dices can be "frozen" by clicking on the button below each column. These buttons only react when nothing is moving anymore, to avoid cheating.

Numbers can be chosen to start from 0 (zero) or 1 (one) in the settings menu. Settings are also saved in between games.

If you like other symbols on the dices, let me know, but also make sure that you have a picture of the new symbols.
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Nice app but it took the fun and beauty part away big time!:( Pleeeese stick to the original idea with "real" dices!:)
[Touch Diamond, MDA Compact IV Themes and Apps] Brendo:
vibration would be good - but only when hitting side wall

can you make backlight stay on
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
over all new features, I would just prefer much closer relation between device movement and dice movement

also some gravity needs to be applied, now dices just "stop" in their tracks without showing how the reached that state, also (again about gravity) if you rotate the device towards one side (left, right, top, or bottom) dices should "fall" there

still far far from the iPhone version but a really good attempt - keep up
[Touch Diamond, MDA Compact IV Themes and Apps] hesse:
///////edited
[Touch Diamond, MDA Compact IV Themes and Apps] 3rain3ug:
thats a nice app...

but you must think about your used random function... at 5 cubes

you have to many "2" to often ... i mean to many same numbers...

have you used the time for random ? the time isn't fast enough changeging... you must add loop with a counter that x^y (or a prime.. faster scaling of the random base) it... or something like that... and this result as your random base...

big sorry for my realy bad english
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
Poker Dice

Hi,

I've taken a new direction with my version of cgeboers Diamond Cubes.

So here is a first draft of "Poker Dice".

For now it is a draft :)

You have 3 turns to make the best combination of dice (pairs, 3 of a kind, full...). You can tap on a dice to select/unselect ip. To re-roll, tap on the background or shake the device...

I intend to make it a human vs diamond game later.

To exit, hit the "OK" button

I've attached the sources, if it can be of interest for cg or anyone else...
[Touch Diamond, MDA Compact IV Themes and Apps] gamez4all:
really nice:D

some more options would be great.
[Touch Diamond, MDA Compact IV Themes and Apps] maalex01:
I running this new program, and I test the results always is equal 2
[Touch Diamond, MDA Compact IV Themes and Apps] alken00:
I wonder when is the mysterious "2" gonna be resolved.. I saw the DICE program for OMNIA... graphic is great and looks cool too..

I hope Diamond will not lose out :)
[Touch Diamond, MDA Compact IV Themes and Apps] ojp:
is the development on going ? I'm ready for dice rumble :)
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
Yeah, it's been quiet for a while now...:(
[Touch Diamond, MDA Compact IV Themes and Apps] soundguy1202:
this is a nice idea...hope the development gets back on track! i remember an apps in a 'china made' phone...not even branded....which can let u select the number of dice, then the dice spins and stops randomly. The catch is that it only spins on its spot and not thrown around.

granted, the visual isn't close to what you guys are developing but it was pretty interesting and effective! great work guys! :)
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
Not over yet...

Hi,

I'm currently working on a new version of "Poker Dice" (see post #110). For now I want to change the dice rotation method from Euler to Quaternions.

This should allow a better randomness and more realistic and smooth animations.

I also think this could be used to allow Icosahedrons and such.

Anyway, as I'm quite new to this, it takes some time!

But when it is ready, I'll share my code with all.
[Touch Diamond, MDA Compact IV Themes and Apps] MSSH:
When you shake very hard it will always land on 2's!

But i see that is a known bug :P
[Touch Diamond, MDA Compact IV Themes and Apps] soundguy1202:
excellent! waiting eagerly..... cheers!
[Touch Diamond, MDA Compact IV Themes and Apps] Seifer:
why did this stop? i thought i could have some fun while playing backgammon :(
[Touch Diamond, MDA Compact IV Themes and Apps] t0PPy:
Awesome stuff

Looks great. Maybe you could consider taking a hint from the game included with the diamond and add vibration when the dices hit the sides - could maybe make for an awesome effect?

Also the ability to tilt the phone and have the dices role left/right/up/down would be killer.

Regards

Olav
[Touch Diamond, MDA Compact IV Themes and Apps] m_ihab77:
nice idea, good job, thank you
[Touch Diamond, MDA Compact IV Themes and Apps] pbv302:
The goal for Diamond Cubes is to be better looking and smoother than this...or what do you say?

http://projects.gandreas.com/dicenomicon/index

Piece of cake huh?

:D
[Touch Diamond, MDA Compact IV Themes and Apps] sscywong:
Yup great program but annoying bug :(

Especially when you see it "flash" from 5 to 2...

Or is it time to change to your new program? :)
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
maybe he just dropped the whole thing?

indeed competition is hard as mentioned by bpv302...

http://projects.gandreas.com/dicenomicon/index

...I wonder if it is so hard for our devices to have such refined software. Some times I think WM overhead makes the whole thing not possible?