{"id":5051,"date":"2010-09-16T07:00:14","date_gmt":"2010-09-16T05:00:14","guid":{"rendered":"http:\/\/4eyes.code66.se\/?p=5051"},"modified":"2010-09-14T20:08:01","modified_gmt":"2010-09-14T18:08:01","slug":"making-daz-3d-stuff-using-cheetah3d-part-two","status":"publish","type":"post","link":"http:\/\/4eyes.code66.se\/?p=5051","title":{"rendered":"Making DAZ 3D stuff using Cheetah3D &#8211; part two"},"content":{"rendered":"<p>As I said yesterday,<a href=\"http:\/\/www.daz3d.com\/i\/software\/daz_studio3?_m=d\" target=\"_blank\"> DAZ 3D Studio<\/a> has truckload of nice posable 3D objects, so many you could probably get ruined trying to collect them all. Playing with 3D is like a collecting card game, you never have enough bits and pieces.<\/p>\n<p><!--more-->To show you what I mean, here is a picture made with DAZ 3D Studio. This is the Model Michael 4, with the clothes props Mafioso and Hats.\u00a0Edited using <a href=\"http:\/\/www.omnigroup.com\/applications\/omnigraffle\/\" target=\"_blank\">OmniGraffle<\/a> to add the blood and the bullet hole. If I wanted I could probably find both bullet holes and blood to DAZ 3D Studio, but I like to do things the quick and fast way, using the tools I know, and save time and money on the way.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2010\/09\/daz2-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5054\" title=\"daz2-01\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2010\/09\/daz2-01.jpg\" alt=\"\" width=\"400\" height=\"463\" \/><\/a><\/p>\n<p>OK, now back to my crates. This is the file Null.cr2, but I will only show the parts that are of interest.<\/p>\n<p>In the beginning of the file you find this:<\/p>\n<pre>figureResFile :Runtime:Geometries:filepath\r\n\r\nactor BODY\r\n\r\n{\r\n\r\n}\r\n\r\nactor bodypart\r\n\r\n{\r\n\r\nstorageOffset 0 0 0\r\n\r\ngeomHandlerGeom 13 bodypart\r\n\r\n}<\/pre>\n<p>And at the end of the file you find this:<\/p>\n<pre>material Preview\r\n\r\n{\r\n\r\nKdColor 0.767388 0.414228 0.633106 1\r\n\r\nKaColor 0 0 0 1\r\n\r\nKsColor 0.039729 0.0466933 0.0481765 1\r\n\r\nTextureColor 1 1 1 1\r\n\r\nNsExponent 50\r\n\r\ntMin 0\r\n\r\ntMax 0\r\n\r\ntExpo 0.6\r\n\r\nbumpStrength 1\r\n\r\nksIgnoreTexture 0\r\n\r\nreflectThruLights 1\r\n\r\nreflectThruKd 0\r\n\r\ntextureMap NO_MAP\r\n\r\nbumpMap NO_MAP\r\n\r\nreflectionMap NO_MAP\r\n\r\ntransparencyMap NO_MAP\r\n\r\nReflectionColor 1 1 1 1\r\n\r\nreflectionStrength 1\r\n\r\n}\r\n\r\n}<\/pre>\n<p>Now we shall make some changes to our copy of the file, not to the original file.<\/p>\n<p>First, you will see the word <strong>bodypart<\/strong>, which we will change to the name of our object in the .obj-file, <strong>CrateOne<\/strong>, we do a replace all using our favorite text editor, I&#8217;m currently using TextWrangler.<\/p>\n<p>Then we see the string\u00a0<strong>:Runtime:Geometries:filepath<\/strong>, which we should change to the relative path within the DAZ 3D Studio path structure where we will have our model, which in this case is <strong>:Runtime:Geometries:4EYes-crates:4E-crate-base.obj<\/strong>. As you can see, I&#8217;ve changed the name of the .obj file to 4E-crate-base.obj, as I will use the same geometry for all the crates I will make (all five of them), and to save disk space and memory, they can all point at the same geometry file.<\/p>\n<p>Now, in the last part, there are several different things to pick from the .mtl file, <strong>material<\/strong>, <strong>KdColor<\/strong>, <strong>KsColor<\/strong>, <strong>KaColor<\/strong> &amp; <strong>NSExponent<\/strong> first.<\/p>\n<p>These are picked from their equivalents in the .mtl file, but they have different names.<\/p>\n<p><strong>material<\/strong> is set to the newmtl property, in this case WoodenCrate. <strong>KdColor<\/strong>,\u00a0<strong>KsColor <\/strong>&amp;\u00a0<strong>KaColor <\/strong>to the<strong> Kd<\/strong>,<strong> Ks <\/strong>&amp; <strong>Ka <\/strong>values, and last <strong>NSExponent<\/strong> to the <strong>Ns<\/strong> value.<\/p>\n<pre>\tmaterial WoodenCrate\r\n\t\t{\r\n\t\tKdColor 1.000000 1.000000 1.000000 1\r\n\t\tKaColor 0.1 0.1 0.1 1\r\n\t\tKsColor 1.000000 1.000000 1.000000 1\r\n\t\tTextureColor 1 1 1 1\r\n\t\tNsExponent 80<\/pre>\n<p>Now, we nee\u00a0do define the texture to use, and that is set to the <strong>texturemap<\/strong>.<\/p>\n<pre>textureMap \":Runtime:textures:4EYes-crates:4E-crate-5-texture.jpg\"<\/pre>\n<p>We are ready to save our own cr2-file, and we call it WoodCrateOne.cr2 and save it in the Runtime:libraries:Props directory where we first create a 4EYes-crates directory. We also put the texturemap in Runtime:textures:4EYes-crates.<\/p>\n<p>OK, ready to test this? Come back tomorrow for some more 3D fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I said yesterday, DAZ 3D Studio has truckload of nice posable 3D objects, so many you could probably get ruined trying to collect them all. Playing with 3D is like a collecting card game, you never have enough bits and pieces.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[12,36,13,10],"class_list":["post-5051","post","type-post","status-publish","format-standard","hentry","category-mapmaking","category-tools-of-the-trade","tag-cheetah3d","tag-daz-3d-studio","tag-filterforge","tag-omnigraffle"],"_links":{"self":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/5051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5051"}],"version-history":[{"count":14,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/5051\/revisions"}],"predecessor-version":[{"id":5074,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/5051\/revisions\/5074"}],"wp:attachment":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5051"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}