Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: MorphIt v1.0  (Read 5340 times)

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
MorphIt v1.0
« on: May 30, 2013, 08:46:40 am »

MorphIt v1.0


This program creates morph targets by comparing other objects to the reference object in a .an8 file. If the meshes in the other objects have the same name and point number, it'll create new morph targets based on their offsets compared to the reference object.

I made this primarily so that you can animate PHUR, but there are other applications for this tool. It'll work on any mesh.

How To Use:
  • Load the file (large files will take a while--it'll seem to freeze but give it a minute)
  • Select the reference object
  • If any of the other objects qualify as a new morph target, it'll be listed in the top left listbox.
  • The bottom left listbox will be populated with pre-existing morph targets for that reference object.
  • The morph targets in the bottom-left listbox will be exported when you click Export Morphs and save to a new file.

Playing the selected morph:
  • You can play a morph by pressing the clock button. Change the animation speed with the arrow buttons
  • The code to animate the morphs is extremely inefficient -- medium to large animations will have a lot of lag
  • Stop an animation by pressing the clock button again

A few notes...
  • It won't run without the .NET 4.0 Framework (or later) installed
  • The 3D viewport will only show meshes. Any other types such as parametric shapes, spheres, cubes, splines, etc., are ignored. However, everything ignored will still be exported.
  • The parser is very "fresh". It's possible that I missed something while writing it. I recommend you don't overwrite your original .an8 file until you're absolutely sure nothing's missing. If you discover that something didn't make the transfer, please report it so that I can fix it.
  • Developed using the v0.97e Pre-Beta files as a reference. Files from v0.97d will probably be ok, but no guarantees
  • This program is not "smart". It merely checks the distance between, say, point #1 in mesh 1 and point #1 in mesh 2. If you create two totally different meshes, or generate them from different software, then point #1 could refer to two totally different points between the two meshes. If you use a program like Sculptris, export the .obj unchanged from Sculptris first and use that as the base. That way the meshes will likely have the same order of points.

If you want to use it with PHUR...
  • Do not change the spacing or distribution quality
  • Do not change the X or Y Divisions
  • Do not change the random seed
  • Do not change the base mesh
  • Lock the Y Divisions

Known Bugs

It's my first experience with C#, terribly coded, etc. So I won't be surprised if it doesn't work right on other systems. However, if you have a Vista+ operating system and the latest .NET framework, and it doesn't load or work properly, please report it!

Post your:
  • Operating System (And x86 or x64?)
  • Processor
  • Graphics Card

If you can email me the crashdump files (and if you get far enough--the .an8 file that doesn't load), that'd be even better.
« Last Edit: June 03, 2013, 06:19:06 pm by Raxx »
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 450
  • errm...errr?
    • View Profile
Re: MorphIt v1.0
« Reply #1 on: May 30, 2013, 10:51:54 am »

win 7, not loading Raxx.
Logged
!

kreator

  • Hero Member
  • *****
  • Posts: 1114
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: MorphIt v1.0
« Reply #2 on: May 30, 2013, 05:16:23 pm »

I get " msvcr100_CLR400.dll " missing on 64bit, though its resident on 32Bit, so just copied it over to WOW64 Dir, now program just hangs, lovely white screen! (Win7)

Have not tried on XP yet.
Logged
O

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
Re: MorphIt v1.0
« Reply #3 on: May 30, 2013, 05:34:55 pm »

Thanks for trying it out guys. I'll run a debug on it once I get the chance, and I'll post an update when I find the problem.
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 450
  • errm...errr?
    • View Profile
Re: MorphIt v1.0
« Reply #4 on: May 30, 2013, 06:52:16 pm »

Still the same result Raxx ,downloaded again 7.45pm but the file is the same size.is this correct?
Logged
!

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
Re: MorphIt v1.0
« Reply #5 on: May 30, 2013, 09:56:32 pm »

Ok, I tested it on a fresh install of Windows 7, and you definitely have to have .NET 4.5 installed. I uploaded a new version that checks for this.

But if that doesn't solve your problem, please provide this information:
  • Operating System (And x86 or x64?)
  • Processor
  • Graphics Card
Logged

Claude

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Re: MorphIt v1.0
« Reply #6 on: May 30, 2013, 11:59:24 pm »

When I tried it with the first version, I had already .NET 4.5 installed.
I tried it again with the second version same result.
When I try to load a file, I get the msg "MorphIt has stop working".

WIN7 x64
Intel  I5-2500K
NVidia GTX 560 TI

Here's the Anim8or file.It might help.
« Last Edit: May 31, 2013, 12:19:36 am by Claude »
Logged

captaindrewi

  • Sr. Member
  • ****
  • Posts: 450
  • errm...errr?
    • View Profile
Re: MorphIt v1.0
« Reply #7 on: May 31, 2013, 12:42:37 am »

Tried latest 1a version with net 4.5 works ok.
Release version works ok too.
Terribly sorry thought erroneously that the need to download net 4.5 related to xp.

« Last Edit: May 31, 2013, 01:56:10 am by captaindrewi »
Logged
!

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
Re: MorphIt v1.0
« Reply #8 on: May 31, 2013, 01:59:39 am »

Hey guys, sorry about all the trouble for an app that will collect dust for most of you ;) It's certainly been a learning experience on my end.

I managed to switch it over to .NET 4.0, which means that Windows XP users should be able to use it as well. The new version is attached in the first post as v1.0c. If you're using Windows XP, let me know if it works for you!
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1114
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: MorphIt v1.0
« Reply #9 on: May 31, 2013, 06:54:26 am »

Hello Raxx, Yes it is working on my Dodgy old XP Laptop, however, There appears to be a problem with the icons see image below



Perhaps I`m using the wrong font?

Logged
O

$imon

  • Sr. Member
  • ****
  • Posts: 540
    • View Profile
Re: MorphIt v1.0
« Reply #10 on: May 31, 2013, 06:58:34 am »

Hey Raxx, sorry to say I still have the same issue as before:

the mesh loads up all jumbled up in the program, and an exported an8 file appears empty (though looking at the an8 file there should be a mesh in there somewhere..).

- Win 8 pro x86
- AMD Athlon 64 Dual Core 5000+ (2.6 ghz)
- NVIDIA GeForce GT 610

Sounds like a different problem than other people are experiencing though. So if im the odd one out dont worry about me ;)
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1114
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: MorphIt v1.0
« Reply #11 on: May 31, 2013, 07:28:21 am »

Strange, Can`t seem to export anything. Get the save option But nothing is written.

Perhaps it should be for 0.97e but as xp will not run 0.97e at present this could be the problem as the model is 0.97D ... Haha Clutching at straws here! Test model attached.
« Last Edit: May 31, 2013, 07:33:06 am by kreator »
Logged
O

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
Re: MorphIt v1.0
« Reply #12 on: May 31, 2013, 04:40:32 pm »

$imon, still scratching my head on that one. I'm thinking your AMD64-based cpu could have something to do with it, but I'm not sure if it's causing a problem in one of the libraries, my code, or something else. It worked fine on my 32-bit Win8 Intel-based test setup. I'll keep looking into it.

Kreator, thanks for reporting your issues and attaching the .an8 file. I fixed MorphIt so that it embedded the font (wingding--it's a system default font so I didn't account for how it may not be installed on some people's machines).

I also fixed the problem with your mannytest. It wasn't a 0.97D issue, just a little bug in the parser ;) I found a few other related bugs thanks to it, so your mesh should load and save just fine.

I uploaded the new version as 0.1d in the first post, feel free to give it a shot!
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1114
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: MorphIt v1.0
« Reply #13 on: June 03, 2013, 07:01:14 am »

Thanks Raxx, just tested 0.1d  this morning on my Laptop(XP) and everything is working fine now.

I feel I will be using this a lot more for morphs ( never could get on with Howitzer`s MorphEnvy program!)

Logged
O