View Issue Details

IDProjectCategoryView StatusLast Update
0002298DarkRadiantModelspublic10.07.2010 11:56
Reporterown3r Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status newResolutionopen 
Product Version1.3.2 
Summary0002298: OBJ model support
DescriptionObj models are one of the best supported formats for 3D models around but at the moment they are not loaded by the darkradiant model loader. I use darkradiant on a non doom3 platform where these are quite popular it would really help us to be able to do this. :)

Information on OBJ is available http://en.wikipedia.org/wiki/Obj

Thanks
TagsNo tags attached.

Activities

greebo

greebo

06.07.2010 12:17

administrator   ~0003106

There is an attribute in the doom3.game XML file, in the install/games/ folder:

modeltypes="lwo ase md5mesh"

Adding "obj" to that list should do the trick for you. Can you confirm that?
own3r

own3r

06.07.2010 13:30

reporter   ~0003107

I tried that to no avail. no obj models appeared in the model viewer's list.
greebo

greebo

06.07.2010 15:13

administrator   ~0003108

For me that worked: Editing the doom3.game file so that it contains this attribute in line 17:

modeltypes="lwo ase md5mesh obj"

Made the .obj I copied to models/darkmod/pagan_warrior.obj appear in the models list:

http://img12.imageshack.us/img12/181/warrioroz.jpg

Does anything appear in the console when you try to load your OBJ file?
own3r

own3r

10.07.2010 11:56

reporter   ~0003111

ModuleRegistry: preparing to initialise module: ModelLoaderOBJ
   ModelLoaderOBJ needs dependency FileTypes
   ModelLoaderOBJ needs dependency ShaderCache
   ModelLoaderOBJ needs dependency VirtualFileSystem
ModuleRegistry: dependencies satisfied, invoking initialiser for ModelLoaderOBJ
PicoModelLoader: ModelLoaderOBJ initialised.

as expected the model loader is initialised but the models list is not populated with any models of the obj type, only ase, lwo and md5 are listed. When I enter the name of a model manually it loads the model without a texture (not reading the mtl?) and it requires a "rotation" "1 0 0 0 0 1 0 -1 0" property to be applied in order to be the correct orientation. No errors are reported in the console.

Issue History

Date Modified Username Field Change
06.07.2010 11:58 own3r New Issue
06.07.2010 12:17 greebo Note Added: 0003106
06.07.2010 12:17 greebo Status new => feedback
06.07.2010 13:30 own3r Note Added: 0003107
06.07.2010 13:30 own3r Status feedback => new
06.07.2010 15:13 greebo Note Added: 0003108
06.07.2010 15:13 greebo Status new => feedback
10.07.2010 11:56 own3r Note Added: 0003111
10.07.2010 11:56 own3r Status feedback => new