Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

reading a 3D object in vrml 2.0 into matlab

199 views
Skip to first unread message

Oren

unread,
Apr 10, 2005, 2:13:57 AM4/10/05
to
Hello

I'm trying to read a vrml 2.0 file (*.wrl) into matlab, and display
it in a malab figure using the 'patch' command.
Does anyone know of a function that can do that ?
(the 'read_vrml.m' function reads only a vrml 1.0 file).

Does anyone know of a program that converts a vrml 2.0 file into a
vrml 1.0 file ?

Any help would be greatly appreciated...

Thanks
Oren

Dongqing

unread,
Apr 12, 2005, 11:55:06 AM4/12/05
to
The function Patchvrml does. But you probably need the virtual
reality toolbox to have it.

Oren Halpern

unread,
Apr 13, 2005, 5:52:56 AM4/13/05
to
Hi DongQing

I've searched for the function 'Patchvrml' in the 'www.mathworks.com'
site, and in 'www.yahoo.com' site and found nothing.

Can you please send me the '*.m' file for this function, or tell me
where i can find it ?

Thanks
Oren

Jan Danek

unread,
Apr 13, 2005, 11:32:00 AM4/13/05
to
Hi Oren and Dongqing,

The function patchvrml is not the part of the Virtual Reality Toolbox.
You can find a code that perhaps does what you need at Matthew Cairns' page:

http://www.dcs.gla.ac.uk/~mc/1stYearReport/4.3_MatlabCode.htm

Virtual Reality Toolbox allows you to manipulate objects from MATLAB /
Simulink directly in the virtual scene. Maybe this will allow you to do
what you need in a more elegant way than importing VR objects into
MATLAB patches.

Best Regards,

Jan

Dongqing wrote:
> The function Patchvrml does. But you probably need the virtual
> reality toolbox to have it.
>
> Oren wrote:
>>Does anyone know of a program that converts a vrml 2.0 file into a
>>vrml 1.0 file ?

--

--
-----------------------------------------------------------
Jan Danek
da...@humusoft.com http://www.humusoft.com
--
HUMUSOFT s.r.o., Pobrezni 20, 186 00 Praha, Czech Republic
Tel: +420 2 84011730 Direct Tel: +420 2 84011746
Fax: +420 2 84011740
-----------------------------------------------------------

Oren

unread,
Apr 18, 2005, 3:41:56 AM4/18/05
to
Hi danek

Thanks for the info. I've learned agreat deal from the link you sent
me.
The patchvrml file is not suitable for reading any VRML 2.0 file (it
doesn't support TRANSFORM etc.) but it's a start…

Yours
Oren Halpern

karima

unread,
Apr 25, 2005, 9:46:52 AM4/25/05
to
Hi Oren,

have you already solved your problem of reading and displaying a file
vrml 2.0. If you already have, please explain me how to proceed.

Thanks in advance.

Oren Halpern

unread,
Apr 28, 2005, 6:55:14 AM4/28/05
to
Hi karime

I haven't solved the problem yet, but If I do get successfull, I'll
be sure to let you know.

Yours
Oren

Jan Danek

unread,
Apr 29, 2005, 8:38:54 AM4/29/05
to
Hi Karima,

Oren from some reason needed to import arbitrary VRML model into MATLAB
patches, which is quite complex task.

For displaying *and also manipulating* objects that are available in
VRML2, there is Virtual Reality Toolbox. Most probably it offers all the
functionality you need, without necessity to solve the above problem.

Best Regards,

Jan

karima wrote:

> have you already solved your problem of reading and displaying a file
> vrml 2.0. If you already have, please explain me how to proceed.

--

0 new messages