VRML engine error: Couldn't read Image Texture

21 ビュー (過去 30 日間)
Raha
Raha 2014 年 3 月 13 日
編集済み: Raha 2014 年 3 月 13 日
Hello everybody,
I'm using VRML to render and capture images from 3D .wrl files.
My goal is capturing 2D images in diffrent viewpoints of the objects but the problem is Texture where it is working well if I don't use Texture (e.g. Wireframe) but when I want to use texture, Matlab give me below warning and it doens't show the texture but object is visible! Now I'm seeking a solution to help me to show texture.
Warning :
Warning: VRML engine error: Error: unrecognized image file format (Filename_F3D.bmp)
Warning: VRML engine error: Error reading image file "C:/Loader/wrl render/Filename_F3D.bmp"
Warning: VRML engine error: Couldn't read ImageTexture from URL Filename_F3D.bmp
'Texture' Property is also 'on' based on the Matlab help.
Please do not hesitate to give me any idea.
Thank you beforehand
Code:
filename = 'Filename_F3D.wrl';
wrl = vrworld(filename);
open(wrl);
f = vrfigure(wrl);
nod = nodes(wrl);
[nleft, ntransform, nlight] = findnodes(nod);
set(f, 'Wireframe','on');
set(f, 'Textures', 'on');
im = capture(f);
Photo:

採用された回答

Walter Roberson
Walter Roberson 2014 年 3 月 13 日
In keeping with the VRML97 specification, the Simulink 3D Animation Viewer ignores BMP files. As a result, VRML scene textures might not display properly in the Simulink 3D Animation Viewer. To properly display scene textures, replace all BMP texture files in a VRML scene with PNG, JPG, or GIF equivalents. Note that Blaxxun Contact supports BMP files in addition to the standard VRML texture file formats.
  1 件のコメント
Raha
Raha 2014 年 3 月 13 日
編集済み: Raha 2014 年 3 月 13 日
Thanks for your reply,
Could you please tell me how can I address a Png file? or give an example?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by