Sign in to follow this  
AhmedSaleh

Knowing the symobls positions out of a stopping angle

Recommended Posts

AhmedSaleh    190

Basically, There are 12 unique symbols, but they are repeated 3 times all over the cylinder, so a total of 36 symbols. but I have 36 meshes that hold all those 36 symbols. I want to know what is the mesh index at the giving angle :/  

 

Yes, or in other words, at any time, when the reel is stopped, of course there will be 3 meshes that will appear to the player. 

Share this post


Link to post
Share on other sites
jms bc    448

Pick some mesh to be mesh 0 corresponding to angle = 0. The meshes are presented at intervals of 360/36 = 10 degrees. Then, mesh index = angle/10.  No?

 

 

I would like to change the 3 symbols, that are behind the three symbols which will be appeared

 

That's the part I didn't understand.

Share this post


Link to post
Share on other sites
AhmedSaleh    190

 When the reel is stopped, at any angle. There will be three symbols that are shown to the user, other (meshes) or symbols, are not shown due to clipping by  the screen. Only three symbols are shown to the users but those are not desirable for the moment,  I I would like to change those three hidden meshes ( behind or down the viewed symbols), or know their indices, at any stopping angle. 

Share this post


Link to post
Share on other sites
jms bc    448

Well, I assume you would calculate the index of the mesh in the center row (or some other reference row), then add or subtract (with wraparound in mind) to get the index of any nearby offscreen meshes.

Still curious (for no good reason) about your intent -- are you trying to compose certain "near misses" that the player would observe as the reel slows down to a stop?

Share this post


Link to post
Share on other sites
jms bc    448

An aside: a game manufacturer did that a few years ago after the video slots first came into the casinos. It seemed to work as the game did fairly well...but the regulators caught on eventually (a competitor found out and told them) and the practice was made illegal in at least one US jurisdiction as a result. But that's ground-based real money gambling, of course, maybe not what you are doing.

Share this post


Link to post
Share on other sites
AhmedSaleh    190

it worked.  

Is it possible to define a critical angle ( red line ), where If the symbol before 1 in the picture, is going to pass it ?  How would I calculate it ?

 

My cylinder is just a 3DS Model.

Share this post


Link to post
Share on other sites
jms bc    448

In the video slot games I've been involved with, the final position of each reel is obtained by getting a random integer [0, #stops). The motion is entirely scripted, occasionally with some staged mechanical backlash as an embellishment. Do you really want to simulate a mechanical slot? In that case, you'll have forces to contend with, and those will determine this critical angle you describe. Otherwise, it is arbitrary -- you decide what it should be.

It looks like you get a random stopping angle [0,360) and want to go from there. I guess then this critical angle would be some fraction of the solid angle taken by each mesh. You would account for this in how you convert angle to mesh, you basically truncate after adding an offset. index = (angle + (10 * (1-fraction)))/10. 

Yeah, i'm in a hurry so that might not be clear cuz I haven't defined anything but I think you'll get the point.

Share this post


Link to post
Share on other sites
AhmedSaleh    190

My current problem is when I get index 14, and  I changed that mesh's texture ( symbol ), I want then to tween the reel to go to the end of screen and that index 14 be the first symbol of the three.  I want to know how to get its angle, and the desired or the ending angle so that the reel keeps spinning until it stops.

 

Thanks for your help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this