-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support both touch and motion #2
Comments
setting [self.library setTouchEvent:YES], this funciton support touch screen to select object. |
ah i mean that "[self.SZTLibrary interactiveMode:SZTModeInteractiveMotionWithTouch];" |
oh, I misunderstood. this sdk is not touch to move top and bottom, beause I don't think it's useful. |
that's ok, Just wanna to easy to see around , anyway thank for support me :) |
and what is formula to calculate position of hotspot that i add in VR ImageView base on point (X,Y ) of Image (Width,height) |
you can see demo SZT_TouchDemo. [image setObjectSize:200.0 Height:100.0]; [image setPosition:5.0 Y:0.0 Z:-20.0]; |
I'm not sure what you want to know. |
The camera is facing in the direction of vec(0,0,-1)。 |
i still don't see, i mean how you calculate X, Y, Z from x,y above |
The coordinates are only relevant to the location of the camera, irrespective of the background ball, and the SDK default background ball radius is 150.I default that the camera is facing in the direction (0,0, -1), you can try to change the coordinates of the map to see the effect. |
no , i mean if i want put image somewhere in VRview LIKE on table or on chair, wall , and i just know position (x,y) and width , height of panorama image , so how do you know X, Y, Z to setposition for putting image exactly on table, chair, wall..... |
sorry but i try to change value of X,Y,Z to find formula, but i'm still not found. What's relative degree in your picture to help me get formula has relative on background ball. |
You can understand that, your position is at the center of the ball vec(0,0,0), and VEC (0,0, -10) is in front of you,vec (-10,0,0) is on your left, vec (10,0,0) is on your right, and so on.. |
You can also use the script directly. I've done the latitude and longitude conversion. You just need to tell me the longitude latitude and the depth value. I can fix it for you. how to use script: you can see Script specification:http://www.vrkongfu.com/doc/doc_en.html |
Can you find it ? |
How did you get the x = 385,y = 405? |
i Use paint on window |
Use the following method, it can help you to latitude and longitude into coordinates.
// 规格化
|
what concer between setPosition(X,Y,Z) and latitude, longtude ? how do i calculate ? I don't understand |
i tried with your method but result x,y ,z is big ,it was wrong when i setposition |
What is the depth value of your incoming? |
150 |
the depth value need in 0 ~ 150,try 25. What is the latitude and longitude value? |
float lon = 360.0f * (float)x / ((float)image.size.width*(float)image.scale) -180.0f; base on you description, i calculate long and lat follow formula above , but not right |
Independent of the width of the background image, you can get the coordinates you want with just passing the values I provide. |
Because the background map is already attached to the ball, no matter how large your image is, it is attached to a ball with a radius of 150. |
i used your background image , image size in formula , its background |
do you develop from project md360player, that i want same on android, ios not support add plugin, so i need another solution , that's your project, so could you me . |
This is not developed on md360player.so it is different from each other. |
ok , i got how to calculate position |
And has a problem when i use Displaymode Normal, Screen will be same flashfly when phone is lock or pause state |
do you have support touch and motion in same sphere5
The text was updated successfully, but these errors were encountered: