Jump to content

Holey OBJ (batman)!


michael

Recommended Posts

I downloaded some free models today and loaded a few into Houdini...

they are OBJ files and come in just fine...but what is strange is this :

obj_holes.jpg

anyone have any suggestions?

oooopss....here's the link to the models:

http://www.3dfestival.com/story.php?story_id=1115

edit-

hmmm... it imports into Mya just fine...then out to Houdini without any issues....strange

Link to comment
Share on other sites

I've seen this, that's one of those CG talk models, right? There's a whole bunch of busted ones in those archives. The problem is they are using Deep Exploration to convert the files and I don't think it writes OBJ exactly correctly, or it has problems going from LW to OBJ or something. If you bring one of those models into Maya and export OBJ, then load it in Houdini it'll be fine. Well, you'll still need a reverse SOP, but there won't be any holes.

I just looked at the difference between a broken CG talk model from DE, vs. a fixed one from Maya... The difference is about 4 megs, that's almost half of this particular model.

Link to comment
Share on other sites

The problem with at least some of the models is that gwavefront currently does not handle backslashes as line continuation characters without a preceding space. So to fix the object file, replace the string "\" with " \" (add preceding space) and then it should work.

Link to comment
Share on other sites

This looks like a job for duct-tape. :D

makeGoodObj.pl

#!/usr/bin/perl -w

use strict;

while (<>) {
	$_ =~ s/\\\n/ \\\n/;
	print;
}

Usage: cat MyModel.obj | perl makeGoodObj.pl > MyModel.Good.obj

perl is such an ugly language. <_<

jim.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...