views:

255

answers:

1

Hello everyone,

technology: WPF, C#

pretext: I am making a game with a custom gyroscope+accelerometer device. I have a sphere that has a labyrinth map on it. The texture is mapped by a set of positions and texture coordinates generated from 3rd party. The user rotates the sphere via device trying to solve the labyrinth.

question: I need to get the map coordinates (x,y) from sphere coordinates (alfa,gama,theta) with custom mapping so i can check if the user is hitting a wall. I cannot use visualtreehelper.hittest because it's asynchronous and I need the data in my game loop.

thanks.

A: 

I changed my approach. I baked my texture in a 3D software and exported it back with unwrap. Now I use this map in my code-behind.

tomato
this helped but not enough. an answer to the question would still help.
tomato
People rarely answer questions that have already been checked as answered, if you are looking for a better answer consider unchecking this reply.
Dour High Arch