Exporting Objects

Started by WAS, January 02, 2015, 02:43:19 am

Previous topic - Next topic

jaf

Just open the obj and material files in a text editor and see what the names of the materials are.
(12Sep20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 452.06 (17Aug20), Win 10 Pro x64, Terragen Pro 4.4.42 Frontier, BenchMark 0:10:02

WAS

Quote from: N-drju on January 03, 2015, 08:28:21 am
Alright guys, calm down...

WASasquatch, why don't you just send that model over to me? Maybe I can texture it in my DAZ Studio. My mail should be visible on the forum. As far as the other ship models are concerned, the only freebies I have are small sailboats but I can see you're after tall ships, so... :D


You can try, though I have DAZ crash on me, and I guess Lightwave does too. I'll zip it up and send it. I was already planning on texturing it in TG, which is why It's imperative I get the results Kadri got with his export from poseray that I cannot reproduce. My objects are fused into one part.

WAS

January 03, 2015, 12:23:49 pm #32 Last Edit: January 03, 2015, 12:54:30 pm by WASasquatch
Quote from: jaf on January 03, 2015, 11:05:32 am
Just open the obj and material files in a text editor and see what the names of the materials are.


Suuuure.......

QuoteÁCµ'¦D EÀCbXŽC‰ ØD×6ÄC/O_A(¸EîòCšC![×D53ìCÊ\µBœ'E[ÕðCÆ íCy*Åè¾Cù^µB?Ð}Å°mõCG´ECCV{ŨâôCG)ŠCûéuÅf´óCÙ¿®CŒlÅŸÅñCO¦ÑCuåXÅ@éíCméCmö4ÅÁ èCø íC˜+Å™ææC°K¿®E7ìòCIòJ¿£~Åé|õC ÕÁõ'¦D EÀCb#Ã‰ ØD×6ÄCB[ð˹{CSî¸C.bÞø÷iD®ý¼C‡¯xÁ(¸EîòCÁŠ¸Â@Ð}Å°mõC-JGÃDV{ŨâôC9ôŠÃüéuÅf´óCËŠ¯ÃŒlÅŸÅñCCqÒÃvåXÅ@éíCû7êÃnö4ÅÁ èCîÖíØ+Å™ææC3ùÃt$橶CB0ùà  ÅéF»CeŽÃ![×D53ìCÔˆ¸Â›'E[ÕðC¼ÖíÃz*Åè¾CõöJ¿¼,,Ä‹_C~Áå...Ä/D_C....éÁ†ÄG™^C&ûÂ3{‡Äm"]C¬ð0 F‰Ä9R\C¬ð0€.‹ÄgüZC%ûÂmùŒÄ3»YC....éÁ‹oŽÄYµXC~Á»cÄq
XC{÷J¿‰¸ÄÏWC-¶dA»cÄq
XCÜA‹oŽÄYµXCl£BmùŒÄ3»YCó˜*B€.‹ÄgüZCõ˜*B F‰Ä9R\Cq£B3{‡Äm"]C ÜA†ÄF™^CW¶dAå...Ä/D_CõJ¿uPeD÷ÀbCù~Á§dDÇybCv.éÁ¿bD̬aCûÂ--Ô_DÁr`C¤ð0ÂG@\D†ñ^C¤ð0Â+qXD'W]CûÂÛÜTDWÖ[Cv.éÁãñQDLœZCý~ÁQ
PDQÏYCŒõJ¿ý`OD!ˆYCL¶dAQ
PDQÏYCÜAãñQDLœZCt£BÛÜTDWÖ[Cû˜*B)qXD'W]Cý˜*BG@\D†ñ^Cy£B--Ô_DÁr`C/ÜA¿bD̬aCu¶dA§dDÇybC~ÁÕóšÄ7    EìöJ¿ŸšÄì E....éÁè›Äˆþ
E&ûÂ$^Ä+î
E¬ð0Â)ŸÄÚ
E¬ð0Âq¡ÄºÄ
E%ûÂ]ܢħ°
E....éÁ|R¤ÄJ
E~Á¬F¥Ä›•
Es÷J¿z›¥Äæ'
E.¶dA¬F¥Ä›•
EÜA|R¤ÄJ
El£B]ܢħ°
Eó˜*Bq¡ÄºÄ
Eõ˜*B)ŸÄÚ
Eq£B$^Ä+î
E ÜAè›Äˆþ
EX¶dAÖóšÄ7    Eø~Á"'0DÌ EõJ¿çÐ0D? Ev.éÁ@.Dýù
EûÂ U+D]æ
E¥ð0»À'DIÎ
E¥ð0Ÿñ#D©´
EûÂO] D-œ
Ev.éÁWrDôˆ
Eü~ÁÅŠD&|
EõJ¿qáD³w
EM¶dAÅŠD&|
EÜAWrDôˆ
Es£BO] D-œ
Eú˜*Bñ#D©´
Eü˜*B»À'DIÎ
Ex£B U+D]æ
E/ÜA@.Dýù


That's what the original OBJ file has to offer. Apparently compressed. The exports are readable but with the fused single part under Wood

Quote# WaveFront *.obj file (generated by CINEMA 4D)

g SailBoat Sailboat
usemtl Wood_4
v -37.554497 461.708741 -2541.662597
v -35.337528 474.09079 -2539.479247
v -28.954025 484.97937 -2537.559325
v -19.17393 493.061157 -2536.134277
v -7.176864 497.361388 -2535.375976
v 5.590145 497.361388 -2535.375977
v 17.587203 493.061156 -2536.134278
v 27.367295 484.979369 -2537.559327
v 33.750798 474.090789 -2539.479249
v 35.967766 461.708739 -2541.662599
v 33.750801 449.326721 -2543.845948
v 27.367301 438.438141 -2545.76587
v 17.587211 430.356324 -2547.190919
v 5.590152 426.056092 -2547.949219
v -7.176853 426.056092 -2547.949219
v -19.173913 430.356324 -2547.190918
v -28.954011 438.438112 -2545.765868


Whole file is positioning for Wood_4

Kadri


Lightwave Layout can import the object. But Modeler crashes Jaf.
I exported a transformed object from Layout without a problem.

N-drju

@ Kadri - What do you mean by saying that .obj file is problematic? I mean ".obj files" in general, or just the one we're discussing (well, it certainly is :) .)

@ WASasquatch - I managed to edit the ship in DAZ Studio, but it really seems like the object has just a single part (which is entire ship actually...) so you can only texture it with one image. Sorry to say this, but I'm not even going to try to brake that ship into other parts. :( I don't have enough knowledge (nor adequate software) to do that.

What I did however, was scaling the ship down to more realistic size (I compared the size with a human model). I'll send it if it's of any use, to you. By the way, Kadri is right - the object, (even in its default scale) frankly, is not that huge, neither the texture.

The bottom line is that I managed to load the ship into DAZ Studio with no crashes or troubles at all. I also managed to export it to TG as an .obj file with ease, then load it into TG and save it in .tgo format. This object I would say is really not very special or problematic. I would say that you have something peculiar going on with your programs, or maybe system, if this object is causing crashes like you've described. Maybe you could also consult someone from the Planetside to see what they'll say. Or better yet, contact the artist that created the model and ask for an "improved" version of the model?
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

Kadri

Quote from: N-drju on January 03, 2015, 03:19:47 pm
@ Kadri - What do you mean by saying that .obj file is problematic?
I mean ".obj files" in general, or just the one we're discussing (well, it certainly is :) .)
...


I mean this file.

jaf

Hey WAS, I haven't run into a compressed OBJ material file before.  I've always been able to read/edit both the obj and mtl files with a text editor.
(12Sep20) Ryzen 1800x, 970 EVO 1TB M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics 452.06 (17Aug20), Win 10 Pro x64, Terragen Pro 4.4.42 Frontier, BenchMark 0:10:02

WAS

January 03, 2015, 05:13:58 pm #37 Last Edit: January 03, 2015, 05:21:57 pm by WASasquatch
Quote from: jaf on January 03, 2015, 04:01:34 pm
Hey WAS, I haven't run into a compressed OBJ material file before.  I've always been able to read/edit both the obj and mtl files with a text editor.


Poseray has a option to compress the OBJ file. I believe any program can. Uses GZIP.



Perhaps he renamed it to a simple obj file which is causing crashes and weird stuff in certain programs. I contacted the artist for some answers.

THe real point is he advertises the "Complete" project, which shows numerous textures. Even provides some of the painted wood. I assume metals were just solid tones with spec and such.

WAS

January 03, 2015, 05:34:34 pm #38 Last Edit: January 04, 2015, 01:13:50 pm by WASasquatch
Here is source code from a compressed OBJ from Poseray

‹ )n¨Tì] <TÑ¿É-öì)å•ev[¨,,$©"b ¦13[ÉR^Z,,´PTŠ,e1*¡²ïŒ%ûN²eÆ̼;CËÛ÷÷û½÷|ýÎwÏù-s¾sîùîÌÜûwST:fë}ckq#)ÂP8LIø$Ùô‡G8( ...!0J,,,( †BÒÞÀ€<Hî¶n Í?I¿7©¾»ÿÁ!Òxw,£EÀ p®
W,,*#U ¶ÔÚþ±
jáªP-ýç}ú/ E%àßN¬|PF"?E àñ'ýAþC! ¹4øÐ÷üw#Ýÿ'----×_äaþÿ‰ë? ¼þ*@
p¨G¡TϺ`œþþë?...\¹þÿGè¹þ/kW®ÿÿ¤ø¯O÷¿-ÿ--¯ÿp‡ýaþÃ'p ýI¢ÿóë?³...ùX{XW_ààä tÁ ³[ꃎ7Ö ôõw«A+! àà8ÀZùV°º\W[ œ` ¬ç€...kIÎ.<ËuN°¬ûE¾q©Îöåàf×_ƒEl¹^ñ_ìå~éÊÁ ˆƒÇ
°ÀÀúð8ì•Ul›E-=XYÍþw&m
°vðã¸ßžh‡'>æDt''œˆ.ÒÚÆpiS,ÁžèEX9 AªÁ¡ÒU58B
©€ã>^›ÉǼ4†/ûr}÷÷Uäù1wž_æåÉñs^~¿?Î¥>,@ƹ\W--\êíKÿýø‡çˆ%>ÊÆöŒNkœÌ @ˆÝìXNL
ð[@`õêÕ|«øøDø×ð‹lÞ¸eýúë×o`xøóÄ!ÈÏ/($¸VHhí!!¡
¹È'ãßÒ³Y
¸¹8d N.f°


It looks a lot different in the header area, so I assume something is horribly wrong with his object, which should be sailboat.obj.gz to begin with. The header should not very that much as that is what tells the programs what to do with the file.

Oshyan

Yes, it really looks like something is wrong with the source object(s). Nothing should be this problematic across multiple applications.

- Oshyan

Kadri


I installed the Cinema4D demo version just to see how the object (the C4D version) looks in it.
It opened with some error messages. I think it uses Vray materials. But the textures does look right in C4D.
A C4D user might be able to export a much better UV textured OBJ file probably.

N-drju

I think the way forward here is to edit this thing in exactly the same software it was built in and get object parts right.

In my case I did not run into any problems neither in DAZ Studio nor in Terragen, though upon reading the whole topic again I was nervous if this ill-fated ghost ship screws my entire system or not. ;D
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

El Kabong

JM2CW...  (Just My 2 Cents Worth)

Object in question -> sailboat.obj

Loaded into LW9.0 modeler. No crash...    ...and yes, 'bout as big as a DeathStar.  :o
Reported back with 700 plus non-planular normals.
Surface listing revealed only one surface.


~Free 3d models are akin to acquiring a plastic glue build kit, assembling it, and then realizing the painting step was missed...


Quote from: N-drju on January 05, 2015, 07:44:37 am
I think the way forward here is to edit this thing in exactly the same software it was built in and get object parts right.


...or spend the time and effort to rename all the surfaces to properly texture item.

Part of the fun, right?   ;D

Later, Ron