Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
colleagues:
pursuant to designing an app that can view os3d scenes and other 3d content with the vm on touch screens i'm writing a plugit to handle navigation with bitmaps/widgets/images/whatever. the plugit will handle creating widgets over buffer or widgets in 2d gui apart from buffer. anyone will be welcome to add functionality, at first i will use predetermined sizes, bitmaps, and coordinates
here is my basic, ugly, plan in a picture:
any input welcome.
what i'm thinking is setting a callback for every frame. vm will determine where finger is (for the moment only one finger although arkeon is working very quickly on allowing more), then set speed and rotation accordingly to walkthrough navigation plugit. perhaps i will use _DRAWline to give user a realtime view of how fast he/she is turning or looking up and down. an
a math questions:
to get distance from bitmap center, i figure it will be the square root of vertical distance from center squared + horizontal distance from center squared, i.e.
//psuedo code
let itof blah-> horizontal_distance_from_center in
let itof blahblah -> vertical_distance_from center in
let sqr. horizontal_distance_from_center + sqr. vertical_distance_from center -> radial_distance_squared in
let sqrt. radial_distance_squared -> radial_distance_from_center in
//more code
that's all i remember from my high school math (i got all the way to calculus and really enjoyed it, but alas i've forgotten almost everything)
is there a shorter way to get this quantity?
Offline
No shorter way as you are using the proper math formula ...
Bob
Offline
No shorter way as you are using the proper math formula ...
Bob
thx, at least i remember something....
Offline
Pages: 1