PDA

View Full Version : How to make OBJ2M15 work



Lionheart008
20-10-2008, 12:52
hi all:)
dear petr, jason...

- sorry for lately reply.. I am back tomorrow and active with more inputs again..

qt: do you know petr, why your fantastic "obj2m15" tool cannot convert some OBJ file with textures? I send one example with the error messages ("Can't find texture for OBJ file") I have got the last weeks while converting my models... ;) - perhaps it's possible to improve the tool ???

- have a nice day, I celebrate birthday ;D with friends ... prosit and free beer/wine/weizenbier for all ! :)

bye, Lionheart

Michael Clease
20-10-2008, 13:27
Frank it would make more sense to post the obj file with texture.

Petr Schreiber
20-10-2008, 19:29
Hi Frank,

happy birthday :)
I am not able to answer your question without the input - obj+mtl+texture.


Petr

Lionheart008
21-10-2008, 16:25
hi all:)
hi petr, michael c.

of course... I have forgotten the texture.. now I have included obj, texture, m15 file... sorry... there were too much beer yesterday ;) thank you petr was a very good and funny day ...

- here it's just a 'dummy ufo' object (without perfect symmetry), not just perfect, one of my first attempts before some weeks... but for my example to convert it a good one...

- the zip file includes now everything (incl. 'black-white-raster1.bmp' texture) to check it I am sure:)

- more will come later...

good afternoon, lionheart

Petr Schreiber
21-10-2008, 16:29
Hi Frank,

where did you put the obj and mtl ?


Petr

Lionheart008
21-10-2008, 16:36
hi petr:)

- I have added a zip file at my last post included all stuff, do you get it ?

frank

Petr Schreiber
21-10-2008, 16:43
Hi Frank,

thanks for the update, but there is still MTL file missing :)
But anyway ... what is the problem? :) M15 file has texture mentioned ( although with different name than the one you attached ). When I rename the texture, model is loaded with it mapped.

"Can't find texture for OBJ file" should mean it is not within the directory with OBJ, not that is cannot be used.


Bye,
Petr

Lionheart008
21-10-2008, 17:23
hi petr...

yes, I have lost this little mtl file ;)


But anyway ... what is the problem? Smiley M15 file has texture mentioned ( although with different name than the one you attached ). When I rename the texture, model is loaded with it mapped.

"Can't find texture for OBJ file" should mean it is not within the directory with OBJ, not that is cannot be used.



- hmh... do you mean everything is ok when you are seeing the mapped texture with the black-whiter-raster bmp ??? would be very nice... ;D I cannot see the mapped objects with the model-viewer... but perhaps built into one of the tbgl scene examples I have created last weeks... I will check it again... otherwise may be I have a graphic card driver problem...

see you, bye, lionheart

Michael Clease
21-10-2008, 20:13
Frank the problem is the texture name.

this is what is inside ufo5-example.mtl

# ==========================================================================
# Wavefront Material file
# Exported by Red-i Productions' "Riptide"
# (a free plugin for Cinema 4D PC & Mac, R7.3 or later)
#
# Red-i Productions
# http://skinprops.com
#
# ==========================================================================

newmtl Mat.1
Ns 50.781250
illum 2
Kd 0.800000 0.069020 0.097255

newmtl Mat
Ns 50.781250
illum 2
Kd 0.800000 0.800000 0.800000
map_Kd basic018-bmp.bmp

newmtl default_Mat
illum 2
Kd 0.800000 0.800000 0.800000

As you can see the filename is basic018-bmp.bmp but the texture you supplied is basic018-black-white.bmp.

either rename your texture or use notepad to edit the mtl file.

Lionheart008
22-10-2008, 22:12
hi petr, hi michael...

I have done some new models, I will mapped the objects with texture and then check it if I have got the same problems...

...thank you for the good hint to the little mtl file.. I can read it with an editor and see what's going wrong with the texture I have lost so many times before... but I am sure, the mistake didn't belong to the texture name... I have changed it as I have had some *.png and *bmp files with the same name... sorry... ;)

I will take a new *.bmp texture to map my new city buildings and use the same name :)




# ==========================================================================
# Wavefront Material file
# Exported by Red-i Productions' "Riptide"
# (a free plugin for Cinema 4D PC & Mac, R7.3 or later)
#
# Red-i Productions
# http://skinprops.com
#
# ==========================================================================

newmtl Mat
Ns 50.781250
illum 2
Kd 0.028235 0.671373 0.476863

newmtl default_Mat
illum 2
Kd 0.800000 0.800000 0.800000


this infos included only material properties of my new city material but it's good to proof it...

bye, thanks for little help, Lionheart