Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!newsfeed1.eu.ignite.net!news.cesnet.cz!news.felk.cvut.cz!not-for-mail
From: Jan Houska <houska@humusoft.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab Virtual Reality Toolbox - speed?  / several other questions
Date: Wed, 29 Apr 2009 08:43:16 +0200
Organization: HUMUSOFT s.r.o.
Lines: 41
Message-ID: <gt8su5$sc7$1@ns.felk.cvut.cz>
References: <gt7oj5$6f9$1@fred.mathworks.com>
NNTP-Posting-Host: hack.humusoft.cz
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: ns.felk.cvut.cz 1240987397 29063 88.208.79.130 (29 Apr 2009 06:43:17 GMT)
X-Complaints-To: usenet@news.felk.cvut.cz
NNTP-Posting-Date: Wed, 29 Apr 2009 06:43:17 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
In-Reply-To: <gt7oj5$6f9$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:536098


Hi Alexander,

Alexander wrote:
> Hello, 
> 
> I have become aware of the Matlab Virtual Reality Toolbox, but I am currently having some problems running it on Linux. Nevertheless, I have several general questions about the toolbox.
> 
> - How fast is it? A project I am currently working on is implementing several rather simple models in a 3D environment and rotating them with numerical solutions of differential equations. Would VReality be fast enough for a realtime simulation? Is it much slower than let's say OpenGL?
> 
> - Do I necessarily have to use Simulink to communicate with the VReality  toolbox? I find solutions of differential equations using e.g. ode45, so I don't use Simulink.
> 
> - Once my simulation is ready, what can I do with it? Can the toolbox export to any popular formats which might be used by other well-known applications (maybe CAD, Maya...)?

The Virtual Reality Toolbox (now renamed to Simulink 3D Animation) uses 
OpenGL for rendering. There is indeed some overhead caused by parsing 
the VRML files and transferring values from/to MATLAB, but that overhead 
is not big and generally the speed is comparable with OpenGL. Having a 
hardware-accelerated OpenGL graphics driver definitely helps performance 
substantially. As to real-time simulation - that depends on the 
complexity of your virtual world and the frame rate you want to achieve. 
It cannot be answered without knowing how complex worlds you plan to 
animate.

The command-line interface allows you to fully control your virtual 
world from MATLAB programs. So you do not necessarily have to use 
Simulink, but you do lose some comfort without using it.

Simulink 3D Animation uses VRML as the format of its virtual worlds. 
This is an ISO standard and is supported by many CAD and animation 
software, although the level of the support in individual programs will 
of course vary.

Good Luck, Jan


--
Jan Houska                                           HUMUSOFT s.r.o.
houska@humusoft.com                                  Pobrezni 20
http://www.humusoft.com                              186 00 Praha 8
tel: ++ 420 284 011 730                              Czech Republic
fax: ++ 420 284 011 740