I just noticed that I had a wrong understanding of how v-realm builder works. Apparently, I did have the car as just one entity, but I can not select it manually from the world. To move it, resize it or rotate it, I have to manipulate the values under the main transform. Accordingly, I have to change these values to achieve the tasks I want. Thank you all for the help, Yahia :)
How can I group transforms in matlab's Simulink 3D Animation v-realm builder?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I'm new to v-realm builder and I'm having trouble using it. I drew a car model using another graphical program and then I imported it to v-realm builder. Accordingly, the created file is made of too many transforms and groups to form the complex design. My goal is to be able to group all these transforms into one transform so I can move it and resize it as one object because I will be using it with Simulink 3D Animation.
Any help is appreciated, Thanks, Yahia
채택된 답변
Sumit Tandon
2012년 8월 2일
A few options that come to my mind are:
a. Open up the VRML file in a text editor and add a parent transform to the car transform manually
b. Instead of using V-Realm Builder, use the 3D World Editor, which is part of newer versions of Simulink 3D Animation product. It allows you to right click and cut and move around transforms in the tree view
c. Create a new VRML file and add the car as an INLINE node. This allows you to add an object defined in another VRML file as a single node.
추가 답변 (1개)
Jan Danek
2012년 8월 2일
Hi Yahia,
V-Realm Builder doesn't display contents of Inlined nodes. On the other side, 3D World Editor (option 2 above) does.
I recommend you to include your car Inline in a Transform node. By Changing this Transform's scale field, you will be able to scale the car in your scene.
Example:
DEF Wrist Transform {
scale 1 1 1
children [
Inline {
url ["robot_gripper_wrist.wrl"]
}
]
}
VRML97 is an open, text-based format. You can edit it using various editors, includint text editors. What I often do is to write the basic structure in a text editor, and then adjust object positions, sizes etc. in 3D World Editor.
All the best,
Jan
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!