2 registered members (TipmyPip, AndrewAMD),
1,151
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Keeping track of dice numbers
[Re: Darkmatters]
#321450
04/29/10 11:49
04/29/10 11:49
|
mercuryus
Unregistered
|
mercuryus
Unregistered
|
I used a dice (cube) model and added an extra vertex to the center of each of the 6 faces. Then (after the dice was thrown) I checked the extra vertix z-position. The one with the highest position represents the upper face.
(-> vec_for_vertex)
|
|
|
Re: Keeping track of dice numbers
[Re: ]
#321451
04/29/10 11:56
04/29/10 11:56
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
you can also determine the number facing up from the pan/tilt/roll angles.
3333333333
|
|
|
Re: Keeping track of dice numbers
[Re: Quad]
#321456
04/29/10 12:56
04/29/10 12:56
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
If you know which face is UP, then you know the one that is down.
DOWN = 7 - UP and conversly UP = 7 - DOWN (on MOST 6 sided dice anyways, more statistically random)
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Keeping track of dice numbers
[Re: Darkmatters]
#321528
04/29/10 22:50
04/29/10 22:50
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Quadraxas and mercuryus told you how to do it...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Keeping track of dice numbers
[Re: Darkmatters]
#321558
04/30/10 09:38
04/30/10 09:38
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
I do not know how can we give more pointers without writing the code.
this is no challenge. it's a very small task that i am sure posters above you can write the code for that in minutes.
"but they dont return the parameters required" , then you did it wrong. Can you please show us how did you tried the methods?
3333333333
|
|
|
Re: Keeping track of dice numbers
[Re: Darkmatters]
#321559
04/30/10 09:39
04/30/10 09:39
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
I have used the methods Quadraxas and mercuryus suggested, but they dont return the parameters required. And you don't give a single description of the way you did it. To get help, you have to describe what you already tried, in detail, not an 'I already tried that', because that isn't sufficient. There is no challenge to someone in writing something that he has already written. It is only boring unpaid work, then. That's it.(I can assure you that the thing with the applied vertices that you test with vec_for_vertex works like charm.)
|
|
|
|