University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Ply with Multi picture can not display correct. | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Ply with Multi picture can not display correct.
November 28, 2015
1:18 pm
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline
Hi All,
 
I have a question about load PLY format file to smartbody. 
I have an obj format file with multi texture picture,  I use meshlab open it and export to ply format.
The new ply file can display well in meshlab,<br/>
meshlabImage Enlarger
 <br/>
 
But when I load the ply file to smartbody, it will use the last picture to fill the whole model. <br/>
 
smartbodyImage Enlarger
 <br/>
 
The attachment is the obj file and ply file.
 
 
Thanks!
Paul.
November 29, 2015
2:19 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Ok, I fixed the texture problems with .obj and .ply files in the latest revision: r6298.

Your model now loads properly with the new code.

 

Ari

November 30, 2015
8:43 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I update the lastest revision:r6298 code. The texture problemes is fixed. But there are new problems. I open the "retarget  viewer", and click " Apply AutoRig",  the button can't reponse.   It looks like a dead loop.

December 1, 2015
2:18 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

You can also try the autorigger and reshaper tool to rig the model:

 

http://smartbody.ict.usc.edu/a.....ndreshaper

 

Ari

December 2, 2015
2:16 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I have try the autorigger and reshaper tool. Ply file with Multi picture can not display correct in this tool. It has the problem as the same as  sbgui.

December 2, 2015
7:14 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I found a dead loop in fuction "fullSplit" of the file "core\smartbody\sbgui\external\Pinocchio\quaddisttree.h".  The recursion is dead. But I can't know how to fix the bug.

December 3, 2015
1:53 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I don't understand the code very well. I haven't found a nice way to fix the bugs. But I add the code in fuction "fullSplit" of the file "core\smartbody\sbgui\external\Pinocchio\quaddisttree.h" as follows. Let's the recursion return after 20000 depth.  There are other problems, the autorigger and reshaper become very slowly after I update to the latest revision: r6298.

template<class Eval, template<typename Node, int IDim> class Indexer>
void fullSplit(const Eval &eval, double tol, DRootNode<DistData<Dim>, Dim, Indexer> *rootNode, int level = 0, bool cropOutside = false)
{
static int count = 0;
count++;
if(count > 20000){
return;
}
int i;
const Rect<double, Dim> &rect = node->getRect();
node->initFunc(eval, rect);

.......

}

December 3, 2015
2:14 pm
Avatar
Member
Members
Forum Posts: 9
Member Since:
November 28, 2015
sp_UserOfflineSmall Offline

you may find overview on the code:

http://www.mit.edu/~ibaran/aut.....README.txt

btw have the same problem on sbgui recompiled, but not yet found a solution...

grts - fran

December 3, 2015
7:56 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

longpo1988 said
I don't understand the code very well. I haven't found a nice way to fix the bugs. But I add the code in fuction "fullSplit" of the file "core\smartbody\sbgui\external\Pinocchio\quaddisttree.h" as follows. Let's the recursion return after 20000 depth.  There are other problems, the autorigger and reshaper become very slowly after I update to the latest revision: r6298.

template class Indexer>
void fullSplit(const Eval &eval, double tol, DRootNode<DistData, Dim, Indexer> *rootNode, int level = 0, bool cropOutside = false)
{
static int count = 0;
count++;
if(count > 20000){
return;
}
int i;
const Rect<double, Dim> &rect = node->getRect();
node->initFunc(eval, rect);

.......

}

I was able to get the model that you sent to load as a .ply and display properly in SmartBody, as well as rig properly. r6299 has additional fixes for the .obj format.

Are you not able to do this? 

 

Ari

December 3, 2015
8:17 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

We fixed the display bug in the autorigger and posted a new version for download, so now it can effectively display the model and rig it properly. That tool will give you the best results.

 

Ari

December 4, 2015
3:21 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I hava update to r6299. The bug of autorig is not fixed. It can't be used. It's also take long time to autorig.

I download the autorig and reshape tools. It's quick to autorig. But there are other bugs which face and back are switched. You can download the ply file : https://www.dropbox.com/s/5g8xrrdnwwp1pk2/Ken.rar?dl=0. It's wrong to rig.

December 4, 2015
5:24 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Yes, the fix is in r6302, so you can update,  build and try again. 

 

We'll  look at your model tomorrow. 

 

Ari

December 7, 2015
2:39 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

I Have update to r6302. There is a compile error. Maybe you forget submitting some codes.

..\SmartBody\src\sb\SBAssetManager.cpp(2245): error C2660: 'SrModel::export_obj' : function does not take 3 arguments

maskedMesh->dMeshStatic_p[m]->shape().export_obj(outputMeshFile.c_str(), strstr.str().c_str(), outputTextureFile.c_str());

December 7, 2015
3:21 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Yes, please update to the latest 6309. There was a build problem in 6302.

December 8, 2015
9:38 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

Thanks. It's ok now. But It take long time to autorig. The autorig problem for multi texture is existed always.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: Jamesnuh, gotselyuk1987mon, koenig62ramos, krygerhagen69, coxgeorge3, doyle68bekker, ludvigsen62abbott, shortstext78, cormierhopper5
65 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 100502

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 460

Posts: 2403