MATLAB Answers

How do i export to blender?

44 views (last 30 days)
Rey Kelvin Peralta
Rey Kelvin Peralta on 23 Aug 2015
Commented: Rena Berman on 24 Jan 2017
I have this code:
y = rgb2gray(imresize(imread('DSC_0009.jpg'),.2));
z = 255.0 - 1.0 * double(y);
z = z ./5 ;
z2 = imfilter(z, fspecial('average', 15));
z2(z2 > 35) = 35;
z2(z2 < 30) = 0;
surface(z2);
shading interp;
axis ij;
axis tight;
Can i ask help to make the output file of this be converted into a format that blender can read? i am trying to make a 3d model.
please help me.

  2 Comments

Walter Roberson
Walter Roberson on 26 Aug 2015
In a duplicate question you asked about using saveobjmesh.m
Rena Berman
Rena Berman on 24 Jan 2017
(Answers dev) Restored question.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 26 Aug 2015
[X,Y] = ndgrid(1:size(y,1), 1:size(y,2));
saveobjmesh(X, Y, z2);

  0 Comments

Sign in to comment.


Translated by