new import formats

new import formats

Postby ikam » Thursday, 10.July 2014, 18:08

Yop

I made a test with an extra library (assimp - http://assimp.sourceforge.net/) to load new mesh formats inside wz.
It works great, lightweight and it's really easy to use with wz (twenty lines of code for the proto). Animation need more works to run but it should be possible to add.

list of supported formats is impressive : see https://github.com/assimp/assimp

Here a proto. (use the ImportEx operator)

note : if you download assimp binaries there is a bunch of all supported model files that you can test here.
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Thursday, 10.July 2014, 19:21

CooooooooL!!! You are the best! :)
Problems:
1) Meshes are triangulated
2) No clusters are seen in Select for meshes with several materials (I tested *.obj)
3) Can't confirm if mesh normals are imported...

Edit: And what about UVs?
Edit1: Added a test file for clusters
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby ikam » Thursday, 10.July 2014, 19:44

1/ it's the easiest and generic way to load a mesh. it is possible to disable the triangulate option in assimp loader but it will require a more complex wz algorithm to generate meshes (some meshes can have faces with more than 4 vertices, wz support 4 vertices max per faces, so need to cut theses faces etc..., to see for an alternative...
2/ I really doesn't manage materials infos for now, just added a default cluster per mesh... to do...
3/ positions, normals, tangent and uv are imported by default if they are present in file. it also can be options when loading file from assimp, and it is also possible to post-compute normals and tangent with wz once mesh is loaded (normalise op do that too). all that should be opartors parameters options at final release...

thanks for the file i'll do some test for clusters.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Thursday, 10.July 2014, 19:57

1) I see. Triangles are OK for now.
2) OK
3) Great
It's a very cool improvement. Looking forward to the final version. :)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby ikam » Thursday, 10.July 2014, 20:12

It's a very cool improvement.


yes, and mainly for animated models. Current animated xsi format is poorly supported by 3d tools, too restrictive and really seems compromised with the end of softimage dev.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Thursday, 10.July 2014, 20:18

I totally agree. RIP Softimage... :(
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby ikam » Friday, 11.July 2014, 11:51

Which 3D tools did you used to create your clustered example ?
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Friday, 11.July 2014, 12:09

It's Blender 2.71. I made so that the 2 material selections didn't overlap.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby ikam » Friday, 11.July 2014, 13:34

ok thanks, I managed clusters and many importing options.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Friday, 11.July 2014, 20:47

Great job, bro! :)
Will do some testing and get back to you tomorrow.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby ikam » Friday, 11.July 2014, 23:53

I merged and switched new physx and assimp support to master branch on github.
use this one now to get last updates now.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: new import formats

Postby Skinnytorus » Saturday, 12.July 2014, 00:09

Great. Thanks!
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby Skinnytorus » Saturday, 12.July 2014, 16:32

So... I've checked animation import from blender (blender native or fbx export) and failed...
Any idea on how to make it work? Here is the test file I got from http://www.blendswap.com.
It's a simple walking man textured model with walking cycle courtesy TiZeta.
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: new import formats

Postby nikitos75 » Saturday, 12.July 2014, 17:15

time ego I achived some animated man inside wz from xsi, but we need to have some animate parametrers like cycle, maybe IK (imported as is with animated model or from extracted bones with ability to make some other changes of animation). Maybe WALK2 operator like was in wz3, but more progressive, with gravity in physix...
nikitos75
Partikelmeister
Partikelmeister
 
Posts: 85
Joined: Monday, 04.April 2011, 19:27

Re: new import formats

Postby ikam » Saturday, 12.July 2014, 17:22

animations from assimp are not yet implanted in wz. soon.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France


Return to Development and contribution



Who is online

Users browsing this forum: No registered users and 0 guests

cron