OBJ importer
-
http://forums.sketchucation.com/viewtopic.php?f=79&t=20021
here you go..a wonderful script by Jim with a small mod by Remus.
works great
-
Thanks, testing it now, I noticed it takes quite a bit to import, is there a limit of how many polys you can import?
-
no idea what the limit is.. time for destruct testing!
-
Just a little note: the version khai linked to works when the obj is in meters. Jims original script works when the obj is in inches.
You can adapt it to anything you want by finding the number of inches in your chosen unit then using that value for the scale argument.
-
I tried importing a model that's about 150.000 polys and it took about half an hour, 500.000 polys.. I shut it down after 1.5 hours, SU tends to lag quite a bit on my rig and I don't know why (4GB, E8600, 9600GT), are there other settings that I should look for other than enable hardware acceleration?
-
..anyone?
-
On line 30 of the script is where it initializes the Polygon mesh. Try adding a 0 (zero) to each of the arguments. If it helps, try adding another zero.
if use_mesh mesh = Geom;;PolygonMesh.new 50000, 10000 # <-- increase these values end
-
thanks Jim, for a great plugin and for the adjustment
I've got a coupla suggestions for a second version of the ruby if you want them?
-
And what will this adjustment do? Decrease importing time? Also, what's the import limit, polycount wise?
-
The numbers are the number of points and polygons used "as a hint to decide how much space to pre-allocate to speed up adding points and polygons."
It may decrease importing time, it may not. I am not aware of any limit, but I don't know what the result is of using numbers that are very large.
Advertisement