Results 1 to 10 of 10

Thread: How to make OBJ2M15 work

  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    How to make OBJ2M15 work

    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
    Attached Images Attached Images
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  2. #2
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    How to make OBJ2M15 work

    Frank it would make more sense to post the obj file with texture.
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    How to make OBJ2M15 work

    Hi Frank,

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


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    How to make OBJ2M15 work

    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
    Attached Images Attached Images
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    How to make OBJ2M15 work

    Hi Frank,

    where did you put the obj and mtl ?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  6. #6
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    How to make OBJ2M15 work

    hi petr

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

    frank
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    How to make OBJ2M15 work

    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #8
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    How to make OBJ2M15 work

    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

    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  9. #9
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    How to make OBJ2M15 work

    Frank the problem is the texture name.

    this is what is inside ufo5-example.mtl
    [code=bash]# ==========================================================================
    # 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[/code]

    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.

    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  10. #10
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    How to make OBJ2M15 work

    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
    Attached Images Attached Images
    you can't always get what you want, but if you try sometimes you might find, you get what you need

Similar Threads

  1. Is there a way to make the DLL smaller?
    By Michael Hartlef in forum Module SDK (Power Basic version)
    Replies: 6
    Last Post: 28-02-2007, 00:12

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •