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.

#26 Re: Openspace3D » marker and object » 29-Jun-2011 17:03:15

Hi arkeon,
Many thanks for your example, really interesting!
In my game the marker showed the object. Not only is the answer.
I tried but it does happen:
after the first time that the condition "if" is true, it works the marker even when  is not visible the operation, why?
I attach the folder with all

http://kktc.jimdo.com/app/download/5198 … 1309362614


many thanks

#27 Re: Openspace3D » marker and object » 23-Jun-2011 11:30:33

I thought this procedure:

Scene Random Output Ins Out1 -> Scene Var Inst Increment (Value 1)
Scene ArMarker Inst Found       -> Scene Var Inst Increment (Value 1)
Var Inst Instance (Value 2)
Scene Var Inst Modified            -> Scene Hide Inst Show


It is correct?

#28 Re: Openspace3D » marker and object » 21-Jun-2011 12:04:52

Thanks Tenshikris for your examples! Very interesting!
In my game the random choice between the "operations" part of an object by clicking "GO".
My problem is this:
The result is active with the marker, so if with marker 1 (it is combined with the number four) and is visible operation "3 + 1 =" we will have a positive feedback. I do not know to solve this problem, any ideas?

thanks

#29 Openspace3D » marker and object » 19-Jun-2011 11:04:05

gius
Replies: 16

Hi!

the screenshot of my game is:
http://kktc.jimdo.com/

I explain my game:
If I click on the object "go" at random is "visible" - "show" an object between "primo" "secondo" "terzo" the others are "not visible".

If I click on the object "reset" all object are not visible.

problem:
if marker "test" is active and visible "show" object "first" happens ....
I can not create this event, how can I solve this problem?

thanks

#30 Re: Openspace3D » file image and random in AR » 18-Jun-2011 10:18:52

Hi Tenshikris ,
there is a link in this project, I tried but the random texture does not work.

http://kktc.jimdo.com/app/download/5178 … 1308388294

thanks

#31 Re: Openspace3D » file image and random in AR » 16-Jun-2011 19:41:29

I have tried, but it does not work,
no random choice of textures,
I tried with another object, and an image file to be imported,
The screenshot is at this link
http://kktc.jimdo.com/


Where am I wrong?

thanks

#32 Re: Openspace3D » file image and random in AR » 16-Jun-2011 14:34:23

Hi Tenshikris, thanks for your help!

it's true! I want to change randomly texture of my cube when my game is starting.


1) on init inst -> link -> get object number?

If it's true: not work

2) on init inst -> link -> random output inst?

If it's true: not work

where am I wrong?

thanks

#33 Re: Openspace3D » file image and random in AR » 16-Jun-2011 10:59:43

I want to change a texture in object of the game beginning in AR.
I think I have done the steps right but does not change randomly no textures.
The screenshot is at this link
http://kktc.jimdo.com/

It is correct that?

thanks

#34 Re: Openspace3D » file image and random in AR » 15-Jun-2011 12:40:35

Game description:
on the live webcam there is a cube, loads a random texture (they are numbers),
if the marker loads a cube with the same number written on the texture is fine.

I have developed:
I create: get object number
I create: random output texture
Link: Scenes get object number -> Scene random output texture.Input
I create: change texture 1 and change texture 2
Link: Scene random texture output Out1 -> Scene change texture 1.Change
Link: Scene random texture output Out2 -> Scene change texture 2.Change

but get object number never changes at random textures, where am I wrong?

thanks

#35 Re: Openspace3D » texture » 13-Jun-2011 07:42:50

All fixed.

I solved the problem with:
IF True -> Show
IF False -> Hide

thanks

#36 Re: Openspace3D » texture » 13-Jun-2011 06:47:11

Hi arkeon,

Objective: When 3 markers are visible, we see an object (test cube) in the center of the screen.


I added these steps:

menu - object - object position  - position X Y Z Favorite
menu -  object - object position  - position X Y Z Reset

- if all markers found.True -> object position Favorite
- if all markers found.False -> object position Reset




but even if three markers are visible do not see the object (test cube)

#37 Re: Openspace3D » texture » 12-Jun-2011 17:52:33

in my game:
if there are 3 marker (Marker 1 - Marker 2 - marker 3) we see a cube (cube test 1)
The cube is set to "Set position" at x = 0 y= 0 z=0  in Scene tree.

- var plugIT in Int type default value 0, call it "markerState" for example
- If plugIT int Int type default value 7, call it "If all markers found"

links :
- marker 01.found->markerState.Increment "1"
- marker 01.lost->markerState.Decrement "1"
- marker 02.found->markerState.Increment "2"
- marker 02.lost->markerState.Decrement "2"
- marker 03.found->markerState.Increment "4"
- marker 03.lost->markerState.Decrement "4"
- markerState.Modified->if all markers found.equal

menu - object - object position  - position X Y Z Favorite
menu -  object - object position  - position X Y Z Reset

- if all markers found.True -> object position Favorite
- if all markers found.False -> object position Reset

but does not work

Where am I wrong?

#38 Re: Openspace3D » texture » 12-Jun-2011 12:26:55

I wish with "if true" to move a cube  in specific positions xyz.
The cube is set to "Set position" at x = 1 y = 1 z = 1 in Scene tree.

if all markers from found.True  -> I connect with "object position" with links "set position" x = 0 y = 0 z = 0
if all markers from found.False -> I connect with "object position" with links "set position" x = 1 y = 1 z = 1


but does not work.

Where am I wrong?

thanks

#39 Re: Openspace3D » file image and random in AR » 11-Jun-2011 16:32:36

Hi arkeon,
It is possible to import a picture (test.png) and insert it on the live webcam in AR mode?

thanks

#40 Openspace3D » file image and random in AR » 11-Jun-2011 16:16:13

gius
Replies: 13

1) It is possibile while using AR, have on the live webcam a two-dimensional image file (for exemple test.png)?
2) If yes, how can we choose randomly between the three image files to be included on the live webcam?


thanks

#41 Re: Openspace3D » texture » 11-Jun-2011 10:06:21

The procedure to insert value in the link is:
- Click on the number on the  link,
- open the windows "Edit links",
- click on the link of the string (for example: Scene.Ar maker.01 found-> markerState.Increment),
- just so it can insert the value.

thanks

#42 Re: Openspace3D » texture » 10-Jun-2011 17:52:37

my increment and decrement are without numbers (value),
I have link
Scene.Ar maker.01 found-> markerState.Increment

but as I can the value of this link?

thanks

#43 Re: Openspace3D » texture » 10-Jun-2011 12:57:13

I have applied this procedure:

1)  I add from the "misc" and  choose "if"
2) "IF 1" , choose "Data Type " "Int", write it as the value  (example 1)
3) I choose "True" and connects AR Maker 1 and "IF 1"

4) same procedure for AR Marker 2 and 3, but change the value.

5) I create a variable "sum"  the value equal to the sum of the three variables
6) Connect the variable "sum" with "Set Value" with  "IF 1" , "IF 2" and "IF 3"


but does not work, what is wrong?

#44 Re: Openspace3D » texture » 10-Jun-2011 10:52:33

I write what I understood:
1) AR Marker 1  I add from the "misc" choose "var"
2) Var Instance, choose "Data Type " "Int", write it as the value Value (example 1)
3) I choose "Lost" and connects AR Maker 1 and Var Instance

4) same procedure for AR Marker 2 and 3, but change the value.

5) I create a variable "sum" with the value equal to the sum of the three variables
6) Connect the variable "sum " in AR Marker 1, 2 and 3?

I'm wrong in something?

thanks

#45 Re: Openspace3D » texture » 10-Jun-2011 09:21:31

Hi arkeon,
a great job the new version of the sketchup exporter!

It is possible with plugIT a situation :
if (marker 1 and marker 2 and marker 3 are visible)  {
................
................
}

how?

thanks

#46 Re: Openspace3D » texture » 9-Jun-2011 17:52:45

All solved!

thanks

#47 Re: Openspace3D » texture » 9-Jun-2011 16:19:08

1) in the second image: ar_piano launched when I change a cube with a cube developed by SketchUp


I solved this problem:
Selecting "Hide on Start"

2) in the third picture: the new cube with the maker, I tried to change his position but does not move from that position.

This problem I can not fix it.
I added the picture (4) http://kktc.jimdo.com/
where you can see the axes xyz are down, they are not in the center.


How can I fix this?

thanks

#48 Re: Openspace3D » texture » 9-Jun-2011 13:33:51

Hello everyone,

In this link you will find the images:


http://kktc.jimdo.com/

in the first image: the original version ar_piano
in the second image: ar_piano launched when I change a cube with a cube developed by SketchUp
in the third picture: the new cube with the maker, I tried to change his position but does not move from that position.
How I can solve the problems of second and third picture?

Thanks


I am preparing a small tutorial for augmented reality and openSpace3d in Italian.

#49 Re: Openspace3D » texture » 8-Jun-2011 13:54:57

the new cube is always visible, even without the marker, where am I wrong?

thanks

#50 Re: Openspace3D » texture » 8-Jun-2011 11:43:39

I would like to change in the file ar_piano.xos the cube box #11 with the cube b#84 with textures made with SketchUp.
I  imported a.scenewith with "import scene".
I put in "Set Phisics" shape and default;
I have reduced the size.
In AR_maker 1, I changed "object name" with b#84.
I saved everything but I play in live webcam of the new cube is always visible, large!
Where am I wrong?


thanks

Board footer

Powered by FluxBB