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.

#51 22-Oct-2016 10:39:57

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

Re: Mixed Reality using google cardboard glasses

hehe glad to know smile

you can use the mouse plugit, and check 3D coords option
then you place a large plan with the transshadow material to make it transparent

then when you click the plan is touched returns the xyz coords to place your object

Offline

#52 22-Oct-2016 14:33:56

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

Could you please explain in brief steps also Is there's a better way by using only mouse plugit or multi touch plugit

Offline

#53 22-Oct-2016 17:00:37

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

Re: Mixed Reality using google cardboard glasses

to be able to get a 3D coords from a screen point, you need to project a ray (raycast) from the camera
this ray must intersect with an object to be able to compute the 3D position.

first place a large plane in the scene around Y - 1.65 for common human tall so it will correspond to the ground when you stand up
mouse plugIT with 3D coords option checked
mouse.LeftClick -> object position.set position

Offline

#54 14-Nov-2016 21:34:45

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

arkeon wrote:

to be able to get a 3D coords from a screen point, you need to project a ray (raycast) from the camera
this ray must intersect with an object to be able to compute the 3D position.

first place a large plane in the scene around Y - 1.65 for common human tall so it will correspond to the ground when you stand up
mouse plugIT with 3D coords option checked
mouse.LeftClick -> object position.set position

if i need to freeze z position i need to use only  x,y coordinates

but by using (object click) > (object move to)  plugit-s

such as player control example

Offline

#55 14-Nov-2016 21:49:02

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

Re: Mixed Reality using google cardboard glasses

well not sure to understand ^^
if this is to get X Z (Y is up)
then in the lik parameter set "$1 0 $3" or "$1 $2 0" to set z to 0

Offline

#56 15-Nov-2016 11:05:27

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

arkeon wrote:

well not sure to understand ^^
if this is to get X Z (Y is up)
then in the lik parameter set "$1 0 $3" or "$1 $2 0" to set z to 0

hello

i need to fix z axis  to 0

and change only x,y coordinate when user click the mouse

Offline

#57 15-Nov-2016 11:38:48

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

Re: Mixed Reality using google cardboard glasses

yes just override the z parameter in link

mouse move/click -> use coors : $1 $2 0 in link parameter
mouse events sent the cursor coords in 2D or 3D coords in "x y" in pixel or "x y z" in 3D world coordinates

Offline

#58 15-Nov-2016 11:52:31

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: Mixed Reality using google cardboard glasses

I was on the way to this theme idea. Now produce smartphones with the definition of space. But in fact it can be done programmatically using markers on all 4 walls and the special calculation of the distance from the fixation position in the phone memory.
12199569m.png

but for this we need to write special code control, measure the distance between the markers and create a virtual box inside which can be a model. Then you need to write the code of behavior of the camera when moving through the virtual box. This overlay will allow you to capture 3D objects in space without special cameras.

Offline

#59 15-Nov-2016 11:54:45

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

Re: Mixed Reality using google cardboard glasses

interesting smile

Offline

#60 15-Nov-2016 12:02:59

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: Mixed Reality using google cardboard glasses

Yes, it's the principle of the new cameras. They create 3d fixed grid on the image. Determining the distance to objects. The mesh is fixed and already placed inside objects live on it. And the camera calculates the position within the generated mesh.

Offline

#61 15-Nov-2016 12:05:24

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: Mixed Reality using google cardboard glasses

special cameras have range-finder. But in my usual camera allows you to calculate the distance between objects. So I think you can do with markers on the walls and code.

Offline

#62 15-Nov-2016 12:06:25

vinurd
Member
From: irkutsk
Registered: 19-Jul-2014
Posts: 540
Website

Re: Mixed Reality using google cardboard glasses

Offline

#63 15-Nov-2016 21:51:38

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

here's the result but not as i expected the object not placed correctly in the place of mouse touch

Flash required

Offline

#64 15-Nov-2016 22:05:03

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

vinurd wrote:

I was on the way to this theme idea. Now produce smartphones with the definition of space. But in fact it can be done programmatically using markers on all 4 walls and the special calculation of the distance from the fixation position in the phone memory.
http://savepic.ru/12199569m.png

but for this we need to write special code control, measure the distance between the markers and create a virtual box inside which can be a model. Then you need to write the code of behavior of the camera when moving through the virtual box. This overlay will allow you to capture 3D objects in space without special cameras.

Yes, of course  because the markers fix the position of 3d object in space
And  there's also SLAM technology can fix the position of 3d object in space

Flash required

also maybe you can use gps data to fix the position of 3d object

Offline

#65 15-Nov-2016 22:13:04

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

Re: Mixed Reality using google cardboard glasses

maybe you should add a dummy to set the position of the solar system with a correct offset
or move the solar system to make it centered on the parent dummy you set when you place it

Offline

#66 15-Nov-2016 22:16:24

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

Re: Mixed Reality using google cardboard glasses

ho an idea passing though ^^
to get 3D position you need a 3D object, so add a transparent plane you place in front of the camera and as son of this camera
so when you rotate the plane still facing the camera and you can grab 3D coords from it.

Offline

#67 15-Nov-2016 22:51:54

3d_mind
Member
Registered: 15-Apr-2016
Posts: 170

Re: Mixed Reality using google cardboard glasses

arkeon wrote:

ho an idea passing though ^^
to get 3D position you need a 3D object, so add a transparent plane you place in front of the camera and as son of this camera
so when you rotate the plane still facing the camera and you can grab 3D coords from it.

great idea
I'm already used four transparent planes and put them in the four sides
But the problem is when you put a transparent plane in front of the camera, it will  hide What behind it

Offline

#68 15-Nov-2016 23:40:39

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

Re: Mixed Reality using google cardboard glasses

if you use the transhadow material yes

but you can just use a material with 0% opacity

Offline

Board footer

Powered by FluxBB