0.7 test 3 build with OBJ support

General questions about Indigo, the scene format, rendering etc...
User avatar
Kojack
Posts: 57
Joined: Sat Aug 12, 2006 8:46 pm
Location: Poland

Post by Kojack » Wed Jan 31, 2007 3:40 am

yeah! great news
.obj for me is much better than .3ds
thx :)

Slobodan
Posts: 59
Joined: Fri Dec 01, 2006 2:19 pm
Location: TORONTO, CANADA

Post by Slobodan » Fri Feb 02, 2007 8:35 am

Can someone explain how to use .objs ???

Thanks,
Slobodan

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Fri Feb 02, 2007 8:38 am

Check the latest manual for xml syntax.
http://www.indigorenderer.com/joomla/fo ... php?t=1163

suvakas

Slobodan
Posts: 59
Joined: Fri Dec 01, 2006 2:19 pm
Location: TORONTO, CANADA

Post by Slobodan » Fri Feb 02, 2007 11:46 am

thanks suvakas,

I went three times over the manual but I don't see obj stuff. I try it as it's in there but as I said it complains about something "utlmtl". I'm not sure what that is.

Slobodan

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Fri Feb 02, 2007 12:05 pm

mtl files describe the materials of the objects sharing the same name. I don't know if every software outputs mtl files along with obj files...

That's the content of one mtl file concerning an object wearing 3 different materials:

Code: Select all

newmtl blinn1SG
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd footRefllexology00.jpg
Ni 1.00
Ks 0.00 0.00 0.00
map_Ks visuel1 festival.jpg

newmtl initialShadingGroup
illum 4
Kd 0.50 0.50 0.50
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
Ni 1.00

newmtl phong1SG
illum 4
Kd 0.50 0.50 0.50
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
Ni 1.00
Ks 0.50 0.50 0.50
Ns 18.00
Edited: first material is now texture mapped in diffuse and specular channels.

See here for reference. These files are easy to set up from scratch.

Slobodan
Posts: 59
Joined: Fri Dec 01, 2006 2:19 pm
Location: TORONTO, CANADA

Post by Slobodan » Fri Feb 02, 2007 4:14 pm

thanks citizen,

I might as well grab your hand and let you lead me into the world of indigo. :) :) :)

Thanks for all your help.
MOI3D doesn't export material part of it and I'm not familiar with .OBJ format so that's why all this confusion.

Thanks again.

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Fri Feb 02, 2007 4:29 pm

I can take the compliment Slobodan, thank you for that :)

However I am absolutely not sure that "utlmtl" issue is related with mtl files, this has still to be confirmed, and many people here know Indigo better than I do ;)

User avatar
domparis
Posts: 37
Joined: Sun Nov 26, 2006 8:55 am

Post by domparis » Fri Feb 02, 2007 7:27 pm

Hi Slobodan, M.O.I. don't generate material definition in the obj file, curently indigo use only the definition mat inside the obj file and don't care about the mtl file.

the best way to get material in the obj is to open it in your favorite 3d app that can surely generate a proper export for you.
one problem i experiment with that, is the normal that can be reseted on importation on some 3d app, in maya no prob, but if u use blender, i cannot find a way to keep the normal in place, this is particulary a problem on a medium size mesh, M.O.I. produce a very clean mesh let's hope that a mat editor will come in a futur beta.

An other non user friendly method is to hand edit the obj file and insert the mat manualy before each face block (ie.: usemtl my_mat, the face block start with the "f" tag), the problem is you don't have a object name inside the file, if there one object it's ok or export one object at time. This method keep all the normal ok, since there are no reexport :)

Sorry for the long explanation, but i hope it'll help

Dom

P.S.: sorry for my english :(

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Sat Feb 03, 2007 2:21 am

OnoSendai wrote:As far as rotation goes, i'm not sure if .obj files can have rotations in them, perhaps that's the problem. I'll take another look at the 'spec' soon.
Hey Ono !
You can totally ignore these rotation problems i wrote about. It was all my bad. The problem was in my not-so-good exporter code. I got everything working now (position,scale and rotation). So. Don't waste your time on this. It just works !! 8)

So there are 2 *.obj related issues remaining: bitmaps and multi-materials

Thanks!
Suvakas

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Sat Feb 03, 2007 8:13 am

So there are 2 *.obj related issues remaining: bitmaps and multi-materials
Both of them need mtl files, really.

http://www710.univ-lyon1.fr/~jciehl/Pub ... j_spec.pdf
http://www.martinreddy.net/gfx/3d/OBJ.spec

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Sat Feb 03, 2007 12:57 pm

ok suvakas, no worries.

Indigo doesn't read mtl files.
I made the decision a little while ago to not try and interpret materials from the various file formats (.3ds, ply, obj)
That's what indigo material XML is for :)

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Sat Feb 03, 2007 5:09 pm

Then I withdraw my words :)
CTZn wrote:
suvakas wrote:So there are 2 *.obj related issues remaining: bitmaps and multi-materials


Both of them need mtl files, really.

Post Reply
27 posts

Who is online

Users browsing this forum: No registered users and 74 guests