Limitations on obj loader

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
elander
Posts: 193
Joined: Tue Oct 05, 2004 11:37 am

Limitations on obj loader

Post by elander »

I tried to load a big .obj model and i got this message:
Could not draw triangles, too many primitives(79440), maxium is 65535.
Does the other loaders have similar limitations? In particular the .x loader does it have this limitation?

The last time i tried to use the .x format with the previous version of irrlicht i had to use some tweaked version of the a python script exporter for Blender. Now with the irrlicht 1.0 and Blender 2.41 can i just use the exporter that comes with it or do we still need that tweaked python script and run the mesh trought the directx mesh viewer?
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

I believe you have two options, either reduce the number of polygons in your model to a number less than 65535 or apply the 32bit patch that you can find on Hybrid's site and recompile the Irrlicht dl. I think you can also search the forum to find more info on this limitation.
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
vermeer
Posts: 2017
Joined: Wed Jan 21, 2004 3:22 pm
Contact:

Post by vermeer »

is not a format limit, happens also with x


I think is the 32bits stuff he says...

there was a thread before Earth was created. They had the patch at irrlicht Nx.
Seems hybrid has then a patch for that..

[hybrid you're really of value for irrlicht comunity...]
Finally making games again!
http://www.konekogames.com
elander
Posts: 193
Joined: Tue Oct 05, 2004 11:37 am

Post by elander »

Great stuff. This should be pinned somewhere in the development forum.
Shakira22

Post by Shakira22 »

really ? :) :)
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

Post by QtGraphDev »

i downloaded the last version of patch
irrlicht 1.1

but when i tried to execute the patch i got this :


C:\irrlicht-1.1\source\Irrlicht>patch -p1 < 32bit.patch
patching file CAnimatedMeshMD2.cpp
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 339

abnormal program termination


any hint ? maybe the patch work only with irrlicht 1.0 ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, the patches are not yet updated. I've worked on the bug patches, yet, but not all are converted. They will be accessible under a .../patch.1.1/... hierarchy, but as not all patches are converted I did not publish them right now. Due to the many changes done already it's this time quite a lot of (small) changes to the patch files.
But your error seems to be a problem with the patch tool, not with the actual patch.
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

Post by QtGraphDev »

i figured out what is the problem with patch
patch file provided will not work under windows until the --binary option used.
So the patching command will be 'patch --binary -p1 < 32bit.patch'.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, that's been ever since, and it's also documented on the patch How-to page
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

Post by QtGraphDev »

the 32bit.patch does not work with irrlicht 1.1.
They will be accessible under a .../patch.1.1/... hierarchy,
you may give me a full path ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you cannot figure it from the current patch page and my hint you should probably wait until the working patches are accessible :roll:
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

Post by QtGraphDev »

If you cannot figure it from the current patch page and my hint
did you mean that it's possible to use the current 32bit patch to patch irrlicht 1.1 ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, but you can already access some updated patches if you change the URL. However, due to several new scene nodes in Irrlicht I doubt that the 32bit patch will be updated very soon.
Post Reply