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 24-Jun-2014 04:09:11

singgihspd
Member
Registered: 24-Jun-2014
Posts: 1

why the one is rotating are the light not the object ?

hello i'm a new user openspace3D (sorry for bad english)
i'm using 2 AR marker inst, the first one is for my object (AR marker 0), and the second one (AR marker 1) is for the marker when i touch it (lost), the object will be rotated
I tried to rotate my object using rotate inst (the object are in the marker) and for the links are :
Scene.AR marker 1.Lost -> Scene.rotate inst.Play
Scene.AR marker 1.Found -> Scene.rotate inst.Stop
I already using dummy, in the dummy there are my object, and a light, it goes like this :
screenshot

the question is, why my object didnt rotate, only my light are rotated ?

Offline

#2 24-Jun-2014 15:59:30

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

Re: why the one is rotating are the light not the object ?

Hello and welcome !

in your case, the rotate instance must be setted on the dummy, you should set the object here.
On the AR marker instance use the dummy not the object.

Offline

#3 6-Dec-2016 08:40:32

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi Arkeon

Again asking you with some doubts.
I'm doing exercises with button plugins, sequence and rotation.
Attached you link of the exercise

http://www.mediafire.com/file/ypcsavsz1 … _pisos.xos

I am making a house and buttons hidden buttons on each floor to see the interior of the house, each button has 2 sequences "show" and "hide" the floors of the house.
Place each floor in a dummy and the button for "show" and "hide", everything is fine with the "show" and "hide" buttons but the button that does the house does not work, use the "PlugIT rotate". In the OSD3 viewer if you rotate the house without problems but when passing it to the Android application the button does not work.
In another different exercise try to do the animation of the rotation of the house in Max 3ds and export it in Ogre and everything very well, in OSD3 the house was rotating correctly to give "play" to the animation, did not respond to the animation in the viewer Of OSD3.
Here use the "PlugIT animation" and place the name of the animation and activation with a button with the sequences "play" and "stop".
The only thing that responded to the animation was the floor that were not inside a dummy son, the floor was in the dummy father.
My conclusion was that separating each floor in different dummy children blocked the function of PlugIT rotate and in the second exercise blocking the animation to rotate.
There is some way for the house to spin on the Android app.

Greetings and again thanks for clarifying my doubts.

Offline

#4 6-Dec-2016 09:38:21

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

Re: why the one is rotating are the light not the object ?

Hello,

when you rotate or hide a dummy, all the hierarchy will be hidden or rotated by default.
if you use an AR marker you need to move the node you want to rotate on a parent node that will not be affected by rotation, and use it for marker.
otherwise the marker position override the rotation animation.

if you want to share a project, the xos file is not enough. do an app export in windows format and share the partition folder content

Offline

#5 6-Dec-2016 19:35:38

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi, Arkeon

I send again the link of the file, I hope this file is correct, if you need some files please tell me, if I am very interested in the exercise.
http://www.mediafire.com/file/g8qbky09w … 2_pisos.7z

Export it to Windows, Renderer DirectX9, Antialising 0

thanks

Offline

#6 6-Dec-2016 20:16:54

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

Re: why the one is rotating are the light not the object ?

here the project corrected.

I changed the objects hierachy, and added switch plugits to keep the last hidden state of the different parts.
so they don't show up on marker show / lost
http://www.arkeon.be/scol/os3d/casa2_pisos.xos

Offline

#7 6-Dec-2016 20:24:05

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi, I'll check it out and thank you very much, I learn a lot with the help you give us.
I send you my comments later

Thanks

Offline

#8 7-Dec-2016 08:08:17

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi Arkeon

I already checked the changes you made to the file, I would never have thought of placing a switch and I also saw the new order that you gave the objects and placed them in a single dummy and I put a dummy for each one.
You may have to place a switch in an exercise that leaves slope, and is to place a "play button" to activate an animation and when you press change the image to a "pause" button and just as you press it to pause the animation and it changes to "play button".
I already did an exercise but I realized that when I returned from "pause" to "play" the "play button" no longer worked until the second pushed,

Play -----> Pause ------> Play (works up to second pushed)

And when the marker was lost with the animation activated and the marker appeared again, the animation appeared active but with the "play button" when it should be "pause button"
I am reviewing the exercises and demos, look at how each PlugIT works and find the logic of why they were placed, but if it takes time.
I appreciate your help and I continue to do exercises. OSD3 is an interesting tool.

Offline

#9 7-Dec-2016 09:27:50

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

Re: why the one is rotating are the light not the object ?

if you want to restore a pause / play button when the marker is found again you should use a switch plugit again to keep the last state and show the correct button

play button.click -> play animation
play button.click -> play button.hide
play button.click -> pause button.show
play button.click -> switch anim button.switch right

pause button.click -> pause animation
pause button.click -> pause button.hide
pause button.click -> play button.show
pause button.click -> switch anim button.switch left

marker.found ->  switch anim button.input
switch anim button.left -> play button.show
switch anim button.right-> pause button.show

marker.lost -> play button.hide
marker.lost -> pause button.hide

Offline

#10 7-Dec-2016 20:18:53

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi  Arkeon

Thanks for the instructions
Do what you told me, I hope I understood, the exercise I had done was missing the switch.
Today do the application on Android as you indicated but the buttons are unstable to the "pause button" I have to give several pushed and "play button" appears at the beginning of the application.
I share the file so you can indicate if it is what you indicated.
Thank you.

http://www.mediafire.com/file/gi5allkg7 … y_pause.7z

Offline

#11 7-Dec-2016 23:49:31

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi Arkeon

I made some modifications to the file
At the "PlugIT switch" I had moved it to "Right" in the "Default position" and returned it to "Left"
Forget to turn off "Show in star" on the "PlugIT button"
For the instability of the buttons change all the "Pushed" buttons by "leftClick".
I use a lot of "Pushed" buttons, but I'll use "leftClick"
And the Android app is working properly
Do not pay attention to the file I shared with you.

Thanks and I keep practicing with OSD3 to make my first formal application.

Offline

#12 8-Dec-2016 00:45:18

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

Re: why the one is rotating are the light not the object ?

Ok good smile

Offline

#13 9-Dec-2016 08:18:29

Legrafc
Member
Registered: 31-Oct-2016
Posts: 77

Re: why the one is rotating are the light not the object ?

Hi Arkeon

I found a script for 3ds Max and I dared to consult you, you think it is possible to use the animation made with this script in OS3D

https://www.highend3d.com/3dsmax/script … for-3dsmax

I found on YouTube some examples of augmented reality that show books and magazines that are browsed and I found it very interesting to create some application with this script.
Greetings and have an excellent day.

Offline

#14 9-Dec-2016 09:24:38

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

Re: why the one is rotating are the light not the object ?

Hello,

I don't know maybe it can work if the plugin make vertex animation

Offline

Board footer

Powered by FluxBB