Scolring - Forum

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.

#1 1-Oct-2011 05:42:16

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

AR driving simulation (need help)

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

#2 1-Oct-2011 19:46:41

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

Hi !

Hmm maybe you could use material shift texure plugIT to simulate road, and object control > translate for the car

Offline

#3 4-Oct-2011 09:59:34

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#4 4-Oct-2011 10:42:43

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

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

#5 4-Oct-2011 11:12:52

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#6 5-Oct-2011 05:54:22

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#7 5-Oct-2011 08:13:21

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

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

#8 5-Oct-2011 12:39:14

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#9 5-Oct-2011 13:36:59

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

Hi,

sorry i don't really understand your problem.

can you send me an example ?

Offline

#10 5-Oct-2011 16:27:45

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

http://www.mediafire.com/?lee2m043w02o3e4

Offline

#11 5-Oct-2011 16:51:52

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

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

#12 6-Oct-2011 05:06:14

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#13 6-Oct-2011 21:57:02

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

You don't want that sinbad and the plan follow the main marker ?

If not just remove the plan node on marker 10, I thinnk it should work

Offline

#14 7-Oct-2011 15:52:04

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#15 7-Oct-2011 17:38:08

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

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 smile it's better to understand) : http://arkeon.dyndns.org/scol/skripsi.xos

Offline

#16 7-Oct-2011 17:56:52

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

your vary kind sir... verry2 thanks for your help... i really need it for my thesis ^^

Offline

#17 7-Oct-2011 17:59:58

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

You're welcome smile

don't forget to show us your results smile

Offline

#18 7-Oct-2011 18:08:18

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#19 7-Oct-2011 18:10:54

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

Yes it's possible (almost everything is possible yikes) )

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

#20 7-Oct-2011 18:12:42

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#21 7-Oct-2011 18:16:06

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

look at the examples/advanced/sensors/sensors.xos project
it show you how to manage physic raycast with multiple conditions

Offline

#22 7-Oct-2011 18:19:50

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#23 8-Oct-2011 14:59:18

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#24 18-Oct-2011 04:30:25

addriangembel
Member
Registered: 1-Oct-2011
Posts: 46

Re: AR driving simulation (need help)

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

#25 18-Oct-2011 08:44:24

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR driving simulation (need help)

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

Board footer

Powered by FluxBB