Page 1 of 1

OBJ Importer Plugin Questions

Posted: 30 May 2009, 16:22
by Prodigy
Hi Jason First, Excellent work dude!!
A super Banana for this excellent plugin!

:superbanana:

Ok, i can confirm that yes, if i move the Importer inside one of my custom toolbars, anytime i start a new floating icon appears..

A very simple detail. :P The importer is working great and i love how import the textures and materials.
Excellent Work!

Re: OBJ Importer Plugin Questions

Posted: 30 May 2009, 17:43
by froo
Ok thanks Augusto.

I will get that resolved.
There are some other issues; Noko / DBokon reported an issue with DAZ objects; the MTL file
references bitmaps starting with a / like this:

map_Kd /Maps/B01U.jpg

that does not get processed. DOH!

There is also an issue with alpha maps.
If there is not an alpha map referenced in the MTL file, the alpha map node is not connected to the material node. This was intentional, though in hindsight not such a good idea. I can fix that easily.
I'll just connect the connectors via the plugin.

And Steinie also mentioned I should populate the text boxes in the dialog with the default values,
so I'll do that as well.

Folks: if you have any issues with the importer please report them! We couldn't get them all
because there is that 'big unknown'; I am actively updating the OBJ importer.

Thanks!

Froo

Re: OBJ Importer Plugin Questions

Posted: 30 May 2009, 18:43
by froo
ok I fixed the relative path problem.

If the first character of the path is forward slash (or backward for that matter),
I must prepend a period:

Original:
map_Kd /Maps/main.png

Modified:
map_Kd ./Maps/main.png

as I recall, that designates a relative path according to VS2008 at least.

I believe, in Linux/Unix, this: / designates a path starting at the ROOT.
Probably so in Windows as well; can't remember.

Anyway. that's solved.

Re: OBJ Importer Plugin Questions

Posted: 30 May 2009, 21:54
by Prodigy
Perfect Jason, seems we have a solid rock plugin. :worship:
Keep in touch!

Re: OBJ Importer Plugin Questions

Posted: 31 May 2009, 03:29
by froo
thanks prodigy.
Hm to actually be accurate, instead of prepending a period (because that's making too much of an
assumption), I should concatenate the OBJ file's directory and the material's path-filename.

Re: OBJ Importer Plugin Questions

Posted: 31 May 2009, 14:13
by Steinie
@Frootee...
...two days off for rest... yea right!
No wonder your pooped! ;)

Re: OBJ Importer Plugin Questions

Posted: 01 Jun 2009, 12:57
by froo
hehe yeah; I know... :lol:

in work/test, not yet released:

fixed alpha mapping

added default values to dialog

need to do:
check for toolbar in other toolbars prior to creating a new one