Can I access at least the position of the Node in the 3D space. I mean the coordinates of the object in the world, not the coordinates in the parent&#39;s frame of reference.  This way I could maybe implement collision detection on my own.<br>
<br>Thanks!<br><br><br><br><div class="gmail_quote">El 21 de agosto de 2009 23:01, Russ Kinter <span dir="ltr">&lt;<a href="mailto:pyth7@verizon.net">pyth7@verizon.net</a>&gt;</span> escribió:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">














<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ah yes, inter-object collision!</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">See when they wrote the spec for x3d they
threw in the kitchen sink but forgot the plumbing.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">The one thing that would have made x3d
really worth while and they left it out.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">It doesn’t exist, except in proprietary
form. Contact has it, so does <span>Cortona</span> <span><span>ect</span></span> but one doesn’t work
with the other.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I have seen a Prototype written in good
old VRML that does it by <span>calculating <span> </span>colliding</span> bounding boxes based on</span></font></p>

<p><span><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">the</span></font></span><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> geometry Coordinates. </span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Maybe someone could direct you to that Proto
library? </span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><span><span><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">tc</span></font></span></span><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Russ Kinter</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a> [mailto:<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>diego martínez<br>

<b><span style="font-weight: bold;">Sent:</span></b> Friday, August 21, 2009 4:33
PM<br>
<b><span style="font-weight: bold;">To:</span></b> Joe D Williams<br>
<b><span style="font-weight: bold;">Cc:</span></b> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [X3D-Public] ROUTEs
can send an event to a point in the 3D space?</span></font></p>

</div><div><div></div><div class="h5">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">That does not solve my
problem, but thanks anyway for the advice!<br>
<br>
I will try to explain myself better. I have an object (the &#39;plug&#39;) connected
with a ROUTE to an on/off button. What I want to do is that, when I move
another object (i.e. a bulb) over the plug, that object will react (i.e. the
bulb would start shinning). Both the &#39;plug&#39; and the &#39;bulb&#39; should be movable.<br>
<br>
An event telling when two objects collide  (so that I could check when the
&#39;bulb&#39; collides the &#39;plug&#39;) would solve it. Otherwise I cannot think of a
ECMAscript that solved this issue...<br>
<br>
The second solution is implementing my own SceneGraph in java, keeping the
current positions of the objects (bulb and plug)  and perform the
collision detection on my own.<br>
<br>
If X3D ROUTEs could send events to a position in the space, so that they
stimulated any object located in that position, the problem would be easily
solved...<br>
<br>
Thanks!</span></font></p>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">El 21 de agosto de 2009 21:51, Joe D Williams &lt;<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>&gt;
escribió:</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">You can add/remove routes using SAI script.<br>
Otherwise I don&#39;t quite understand what you are trying to do.<br>
Best Regards,<br>
Joe<br>
<br>
----- Original Message ----- From: &quot;diego martínez&quot; &lt;<a href="mailto:diegomp1982@gmail.com" target="_blank">diegomp1982@gmail.com</a>&gt;<br>
To: &lt;<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>&gt;<br>
Sent: Friday, August 21, 2009 3:15 AM<br>
Subject: [X3D-Public] ROUTEs can send an event to a point in the 3D space?</span></font></p>

<div>

<div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
<br>
</span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hello everybody!<br>
<br>
This is my first message to the list, even though I have some experience<br>
using the good old VRML.<br>
<br>
I would like to add a plug in a Virtual Environment (VE), so that any object<br>
placed over the plug (collision) would receive events to turn it on or off.<br>
<br>
My initial idea was to define prototypes with a boolean input field for the<br>
different objects (bulbs, toys,...) I wanted to plug. These objects would be<br>
moved over a table using a PlaneSensor. Then I would connect a button with a<br>
TouchSensor that would send its events to the position of the &#39;plug&#39; in the<br>
3D space.  I would like this plug to be also movable using a PlaneSensor.<br>
<br>
Unluckily, after checking X3D specification, I think this approach is not<br>
possible.<br>
<br>
How could I implement such a behaviour in X3D?<br>
I have tried to create an script executed by the objects likely to be<br>
connected to the plug, in which I would manually check the collision among<br>
these objects, but I would need to get the 3D position of both the plug and<br>
the object. Is there any way to do this?<br>
<br>
Would I need to use SAI and have a parallel SceneGraph -an external java<br>
SceneGraph- definition that allows me to check such things??<br>
<br>
Thanks in advance!!</span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">--------------------------------------------------------------------------------<br>
<br>
</span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">_______________________________________________<br>
X3D-Public mailing list<br>
<a href="mailto:X3D-Public@web3d.org" target="_blank">X3D-Public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div></div></div>

</div>

</div>


</blockquote></div><br>