Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,738 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Good and real example of 3d dice model #460470
07/02/16 16:44
07/02/16 16:44
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
Is there any tutorial that explains how to roll a dice
and to be able to determine what number is thrown ?

thx in advantage : )


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Good and real example of 3d dice model [Re: Realspawn] #460471
07/02/16 17:06
07/02/16 17:06
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Hey man, what exactly you need? Can you describe it more in details.

Greest!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Good and real example of 3d dice model [Re: 3run] #460473
07/02/16 17:46
07/02/16 17:46
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
well i created a dice model so all the sides have a number 1 to 6 laugh
i want it that on a push of a key this model is thrown (Dropped from the sky) then rolls and a variable is showing the number that is thrown

there a lot of picture used dice examples but not for an actual 3D Dice laugh


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Good and real example of 3d dice model [Re: Realspawn] #460481
07/02/16 19:42
07/02/16 19:42

M
Malice
Unregistered
Malice
Unregistered
M



I'm not sure there is a made example. The number is easy to get. Use a second skin with 6 colors, color point up is == to the rolled number. The dice I'd give over to the physics engine instead of coding it. And for that I can strongly say 3run is the physics king!!


There are about 5 or so others ways to determine which side is facing up.
Used vertex numbers of the model
use the models pan/tile/roll numbers
use a color skin
I can think up many. But I've no idea the best or fastest.

Re: Good and real example of 3d dice model [Re: ] #460483
07/02/16 20:42
07/02/16 20:42
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I'just done the physical part, now thinking about how to determine what number is on the dice bone.. I think that I need to take two points (maybe vectors?) for this calculation, my math is pretty bad grin

Edit: almost got it working, I'll post a demo here soon!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Good and real example of 3d dice model [Re: 3run] #460484
07/02/16 21:08
07/02/16 21:08

M
Malice
Unregistered
Malice
Unregistered
M



I assume the BBox vectors are still valued.
get
my_x+my_max; my_y+my_max_y my.z+my_max_z
and min's ==6 points

rotate
by my.pan
for loop to find point with the highest world z
== side showing/facing up

Re: Good and real example of 3d dice model [Re: ] #460485
07/02/16 21:11
07/02/16 21:11
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I do it in different way, probably way to complex. But everyone will be free to edit the demo grin


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Good and real example of 3d dice model [Re: 3run] #460487
07/02/16 21:37
07/02/16 21:37
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
As I promised, here is the working demo (available from my webpage):
Download link

I was making it too complicated.. It's probably too complicated even now, but it's the simplest way I can think of right now.
I'll be really grateful if anyone will share his/her more elegant way of determining which side is facing upwards.



Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Good and real example of 3d dice model [Re: 3run] #460488
07/02/16 22:00
07/02/16 22:00

M
Malice
Unregistered
Malice
Unregistered
M



^-- That's simple awesome!

Re: Good and real example of 3d dice model [Re: ] #460489
07/02/16 22:13
07/02/16 22:13
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Originally Posted By: Malice
^-- That's simple awesome!
Thank you man! I really hope that this will be useful!

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1