• * Register
  • * Login
  • * FAQ
  • Board index
Board index ‹ ARPlugin for Autodesk 3ds Max

Post a reply
6 posts • Page 1 of 1

Interactions (Mouse)

Postby Naud » 29/02/2012, 12:22

Hi,

I try to hide an object by clicking on it but it doesn't work. This is my XML:

Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<events name="my_events_file">
     <event name="on_left_mouse_click">
      <actions>
         <action source="_self_" target="_self_">
            <command>hide</command>
         </action>
      </actions>
   </event>
</events>


When I use on_marker_detected it works, but I tried all the mouse events but none of them seems to work.

Do you guys got any idea what I'm doing wrong?
Naud
 
Posts: 14
Joined: 16/11/2011, 13:02
Top

Re: Interactions (Mouse)

Postby g.defusco » 01/03/2012, 8:14

Hello,
the XML file you coded is fine, I tested myself with a very simple scene in 3ds Max.

During the AR visualization, try to scale up your model a bit so the objects will be bigger and see if the problem still persists.
Also, you can try to switch to the "Fullscreen" (or "Windowed") mode and see if you can achieve your goal.

Also, this is very unlikely, but you can try to change the directory where this XML file is located (just under C:\ is fine) and see if the problem still persists.

Let us know if these tips were helpful.
Support @ Inglobe Technologies
g.defusco
 
Posts: 385
Joined: 10/01/2011, 11:16
Top

Re: Interactions (Mouse)

Postby Naud » 01/03/2012, 12:46

I've tried all your suggestions but none of them work.
Naud
 
Posts: 14
Joined: 16/11/2011, 13:02
Top

Re: Interactions (Mouse)

Postby g.defusco » 01/03/2012, 15:42

Hello,
we are very sorry but this problem is very strange, so we must get as much information as we can to help you resolve your problem.

To help us pinpoint your problem, you could try these things:
- if you try to set this same custom file to another object (a cube for example), does it work?
- can you tell us which type of mouse are you using? It's a common mouse or a different device?
- To check if it's not really a problem regarding the custom XML file, you can create a scene with just one object holding a simple translation animation. Then, when viewing it in AR, you can double click on it to rewind the animation, or you can click to pause/restore it. Could you please tell us if these interactions are working? These are the default interactions ARPlugin provides for every object.
- With your original scene, during the AR execution, you can try to flip the view horizontally and see if you can then click on your object to hide it.
- If the object has an attached animation, you can try to change the "hide" command with another one and see what happens. Maybe the problem can be in the "hide" command itself.

Please let us know which results did you obtain, so we will be able to analyze it further.

Support @ Inglobe Technologies
g.defusco
 
Posts: 385
Joined: 10/01/2011, 11:16
Top

Re: Interactions (Mouse)

Postby Naud » 02/03/2012, 9:28

- if you try to set this same custom file to another object (a cube for example), does it work?
Already did this, didn't work.

- can you tell us which type of mouse are you using? It's a common mouse or a different device?
Just a common mouse from Dell, I also tried it on a laptop with the touchpad but that didn't work either.

- To check if it's not really a problem regarding the custom XML file, you can create a scene with just one object holding a simple translation animation. Then, when viewing it in AR, you can double click on it to rewind the animation, or you can click to pause/restore it. Could you please tell us if these interactions are working? These are the default interactions ARPlugin provides for every object.
What exactly do you mean by translation animation? I made an object animate (rotate) but I can't rewind or pause it by clicking it.

- With your original scene, during the AR execution, you can try to flip the view horizontally and see if you can then click on your object to hide it.
Doesn't work.

- If the object has an attached animation, you can try to change the "hide" command with another one and see what happens. Maybe the problem can be in the "hide" command itself.
I tried the pause_animation function:

Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<events name="my_events_file">

   <event name="on_marker_detected">
      <actions>
         <action source="_self_" target="_self_">
            <command>play_animation</command>
         </action>
      </actions>
   </event>

     <event name="on_left_mouse_click">
      <actions>
         <action source="_self_" target="_self_">
            <command>pause_animation</command>
         </action>
      </actions>
   </event>

</events>


The play_animation part works, the pause_animation doesn't. Is it possible that I send you the .armedia and/or the .max file?

Here's some more info that might be useful:
We use 3ds Max 2009 and I've tested in with ARPlayer 2.1 and 2.2 on Windows XP and Windows Vista.
I just tried the TV (with video texture and interactions) example from your website and that button does work.
Naud
 
Posts: 14
Joined: 16/11/2011, 13:02
Top

Re: Interactions (Mouse)

Postby g.defusco » 02/03/2012, 11:31

Hello,
first of all, we thank you for your patience.

By translation animation I was meaning a simple animation of the position of the object, but the rotation test you made is perfectly fine too.

Anyway, having both the .armedia file and the .max file will be great, because it will permit us to analyze what may be causing your strange problem.
You can send an e-mail to:
help at inglobetechnologies dot com
in which you briefly specify your problem (you can also link this discussion).

Just one thing to note: If the files you want to send us are small (less than 2 MB) you can safely attach them to the e-mail. Otherwise you should find another mechanism to share the files (you may want to use dropbox or any other file sharing mechanism you are accustomed to).

Regards,
Support @ Inglobe Technologies
g.defusco
 
Posts: 385
Joined: 10/01/2011, 11:16
Top


Post a reply
6 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

  • Change font size
  • Print view
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style created by FreakyBlue @ IDLaunch