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.
hi all.... i was a noob for this kind..... i want to make a simple driving simulation with ar.... where if i track the marker then it show view a street environtment, and where i tilt my marker to front the view is rolling, and if i tilt to right or left the view is turning right or left........ how can i make it... thanks for your help and kindness....
http://www.youtube.com/watch?v=1_7NW_u3VFo
like that thing... but when i tilt it the view goes forward and turn right or left
Last edited by addriangembel (1-Oct-2011 05:50:28)
Offline
yes i tried..... may be you can comment about this project
http://www.mediafire.com/?73p3q4ch3l1aooj
and how can i make that sinbad move without moving the plan
Offline
Hi, I'm not sure of what you want to do
first track the marker on the plan not on sinbad
then move sinbad node to the plan (in tree) to make the plan as the sinbad parent
don't use >control link but translate and give him the translate vector in the link.
example : marker1.lost->sinbad control.translate 0.5 0 0 (vector as link param for x translation)
Offline
got it... so i use translate
but i still have no ide how to make it translate... could you give a simple example from my project?
Offline
i have tried your trick... how if i want to make it looping.... so if i press the marker the objects going forward continously
Offline
for example
marker.orientation -> switch.input
switch.right -> control.translation
marker.found -> switch.left
marker.lost -> switch.right
orientation is sent every frame
the switch will allow you to activate / deactivate the translation link
Offline
i have found how to make it move continously... but when it rotate 180(degree) the ogre will face to us.... then if i make it going forward it's just stuck in place.....
if i think it's because of it's position is that right??
ex= if i use marker1.lost->object control.translate 0 0 0.1
it will going forward.... when the faces 180(degree) and touch the marker then the object is stuck(not going any where)
* i don't know how to explain it correctly in mi mind is like this
first x=0 and degree=0
push forward so x=x+0.01... when degree is 180 so x=x+0.01 till x=0 and it stuck when value of x is minus
Offline
ok
http://www.mediafire.com/?a5d9aasle4bdcmd
maybe you can fix it.... and give it and if condition... when it reach the edge of plan it will stop or not moving...
here is for the source
Offline
here your project modified.
http://arkeon.dyndns.org/scol/skripsi.xos
the plan is positioned by the marker 10
and controls use switch against timers
Offline
wow nice one... thanks.... but from your project if i push the marker... sinbad object still going forward accros the paln.... i want to make that sinbad object didn't accros the plan....
how to make it??
Offline
no.... i mean that sinbad doesn't going to far... if it crosses the plan (move surpass) it will stay( not moved even if the marker is pushed)..... how to make it???
is it use plugin(if) if yes how to make it...
Offline
in the sample I made for you, when I tested it, sinbad goes outside the plan.
you don't what that ?! right ?
so you want to "block" sinbad into the plan surface.
I think that the better way is to use the physic ray cast plugIT
if sinbad ray cast is no more "cutted" then you block the forward marker
here the sample (try by yourself too it's better to understand) : http://arkeon.dyndns.org/scol/skripsi.xos
Offline
your vary kind sir... verry2 thanks for your help... i really need it for my thesis ^^
Offline
ok surelly i'll give you the result when it finished...
here's my theory.... i'll build an street environtment, and a car... the camera will follow behind the car when the car si moving... simple right...
but one more thing logic i still didn't get.... if that posible to stop program when some condition is reach???
in case where that sinbad touch the end of plan it will show a massage that say FAILED and then the application is closed
Offline
Yes it's possible (almost everything is possible ) )
the misc/close plugIT can close the application
you can also use physic contacts or object distance to determinate if your reach a point and then show a messageBox plugIt and close
Offline
yeah like this... when i reach fork, and the sign i must turn left, but i just turn right... then it will say FAIL and application is closed....
it's use plugIT contacs or misc/if??
Offline
yes... i've see it... and i got it... i've some ideea...... wait till i finished my modeling... i'm weak at modeling
the ide is like this.... if there was a fork like this ( T ) and we want to turn left from bottom so we give rays at left ways, so when the car hit the rays it's trigerring to active the message and application is closed, is it right??
Last edited by addriangembel (7-Oct-2011 18:35:40)
Offline
i've got another idea... may i use two marker as a forward switch... ex: if i press marker 1 and 26 then sinbad will go forward
Offline
one more thing sir. if i want to make the camera follow the object specially if the object was rotate i want the camera position is always at the object's tail, like a driving car game
Offline
Hi, moving the camera is not compatible with Augmented reality, the camera "stick" to your real camera, and your real camera don't move.
however you can add a camera as a son of your object and switch to it
Offline