Hi,
Can any one tell me how to move 3D Object using mouse? That is, click and drag BB in Virtools.
Awaiting for your help
Hi,
Can any one tell me how to move 3D Object using mouse? That is, click and drag BB in Virtools.
Awaiting for your help
Hi,
Could this behavior fit your needs ? :
http://www.3dvia.com/content/BD7E6AB38597A9BB/3d-draggable-item
Hi hiddentux,
Thanks a lot for your reply. I could not download the file from that link. It takes me to 404 page.
could you please check it once gain and share it?
Thanks.
Well, for some reason it doesn't seem to work in Firefox.
However it's OK in IE and Chrome.
Anyway I've attached it to this post.
Hi,
Thanks for your help.
In this sample I am able to move the object in x,y axis alone. Could you please tell me how to move it in z- axis also? Because my need is based on the x,y,z axis.
Awaiting for your help.
Well technically, it moves in all directions. But it depends on the plane of the current Camera.
I'm not sure to understand exactly what you want to do. Do you want to move an object on a specific plane, which is not the one of the current Camera ? Do you want to add a control (like the mouse wheel) to move the object on its z-axis (or on the one of the Camera) ?
Hi,
Thanks for your reply. For more clarification, I request you to have look at the image. You can understand my need.
Thanks.
Hi,
Sorry. Here I attach the image.
Hi sunder3dvia,
Just a quick side notice: could you give a bit more details about the real topic of your questions inside the title of your posts please (at least one key word) ? That would make forum browsing much more intuitive and may also increase the number of answers to your questions
Many thanks,
Cheers,
Arnaud.
Hi Arnaud,
I have explained what I am looking for. For better clarification that image tells what I am looking for. So that I have attached image with my need.
I want to move 3d object from one place to another place by drag using mouse. This is my need.
Thanks.
Hi,
You post is clear, I was only talking about the title of your post ("Need Help !")
Cheers,
A/
Hi,
Thanks. I shall correct myself on my next post.
Hi Sunder,
I gave it a try, please have a look at the attached project.
Basically, it picks the object under the mouse cursor, then looks 10m below if it can find a ground, and if there is something, uses it as a plane on which move the object.
Hi Guru,
Thanks a lot. This is what I was expecting.
A small request guru, Is possible for you to share your personnel mail id to my mail id or this forum. I would like to establish communication with you. Is it possible for you to share the doc for VSL scripting. If you share it will be great helpful for me.
Email:- sunderatvirtools@gmail.com.
Awaiting for your positive reply.
Hi Sunder,
Sorry but I can't share my email adress here, I don't want to be spammed. However :
- If you have the latest version of 3DVIA Studio, there's a folder "doc" in the installation directory containing "vsl.chm"
- If you don't use the latest version and don't want to install it, I've attached the chm
Hi guys,
Im pretty new to 3dvia studio, im trying to use something like this 3d drag object behavior, but only on the x,y axis. Then i came across this post and saw drag object on ground behavior which is better for what i need, except this behavior seems to effect every actor in run-time, and if there are other click-able events on other actors this seems to override them and they end up being dragged instead of the event happening.
Im not really comfortable with VSL script but if someone could help explain either how to change the VSL script to be actor specific or how to lock the 3d drag-able behavior to be just working on the x,y plane.
Id be really appreciative for anyones advice.
Cheers
Hi Maxharperdesign,
Yep, it's made to work that way, every 3D entity can be moved.
There are several possibilities. The script can become actor-specific with one little addition and 3 comments :
if (node /*rayInt.node*/ && local.isPicked == false)
And
if (rayInt.node && local.isPicked == false)
{
//node = rayInt.node;
And
if(node && ground)
{
local.isPicked = false;
node.SetPickable(true);
//node = null;
You just have to set the node member to make it work.
I'm not sure that's a good idea though, as you may have to use this behavior for several objects.
What you could do is use a sort of semantic. For example, create a behavior named DraggableItem, and test if the Actor that has been clicked owns this behavior or not, with something like this :
if (rayInt.node && local.isPicked == false)
node = rayInt.node;
draggable = node;
if (draggable != null)
{
local.isPicked = true;
[...]
}
This way every 3D Entity with a DraggableItem behavior will move, and not the others.
And it's easy to add or delete a behavior, just right-click on the Actors.
Hi Guys,
can anyone give me the shematic for this, so i can try to understand how it works? I'm not familar with VSL
I have to drag 3D Items on the X and Z axis.
Greetings,
Snowside
You must log in to post.