My name is Isidro Fernandez, and I want to say thanks to all of you for the comments I received from a lot of people who want to learn a little more. 3.8K Java and JavaScript in the Database.Hi, welcome to the second part of the series of Paint Effects Articles.7.9K Oracle Database Express Edition (XE).165.3K Java EE (Java Enterprise Edition).1.7K Training / Learning / Certification.myProject/resources/CylinderHead-binary.stlĪ 'resources' named sub-directory in a Java project is typically used to collect image, sound, and model files which are associated with the classes: The multiple use of the word 'resources' might be confusing. => this.getClass().getResource("resources/CylinderHead-binary.stl") Ī model file itself can also have associated image, material, and shader files. These are the resources of the model file. Their location is typically relative to the location of the model file. I tried to use the obj importer, but for some reason it's not working for me? I used your exact code have both files together, and returned it as a "MeshView" and put it into a group as that MeshView and nothing appears? MeshView cylinderHeadMeshView = new MeshView() ĬtMaterial(new PhongMaterial(Color.GRAY)) ĬtMesh(cylinderHeadMesh) August TriangleMesh cylinderHeadMesh = stlImporter.getImport() URL cylinderHeadUrl = this.getClass().getResource("resources/CylinderHead-binary.stl") Generated vertex normals result in a smoothly shaded surface StlMeshImporter stlImporter = new StlMeshImporter() If not, then a model-resource-location base is to be set for the importer. I also have been trying to get more stls, and the sites I've been finding like turbosquid and such all give really tiny, or different shape/model than I was supposed to. I'm not too sure if that has to do with "creaseAngle"(as changing the creaseAngle for this Cylinder didn't produce anything that I saw different). I found a program called "MeshView" and I had this AUD.stl that when imported into MeshLab it was as big as the cylinder, and I could manipulate it in any way. when I scale is 10x it looks much better though, so it seems it's just an issue of scaling.įor some reason it wouldn't save the file's axis different(even when I moved it) nor it's translation. I just think these files are poor, and the only 3D software I have is Photoshop.Īlso for the obj file it specifies a bunch of MeshViews, TriangleMesh's, and PhongMaterials, using codes like u, g, etc. Perhaps someday Maya's Paint Effects will work efficiently with Mental Ray, but for now the only solution is to convert you're paint effects strokes to Poly. How does that work? I can make obj's in Photoshop, but are we supposed to name each file according to it's "letter." There was a Coffee Cup that I tried and I got an error for 'g' so I'm curious how exactly it works.Īnother thing I notice is that I cannot find "sizes" on these models. It's always measured in Triangles, polygons, or Vertices, and other information is given. Is it possible in the future for us to possibly import pictures at a specific size? I don't know too much about how the 3D programs work, so any insight would be appreciated.Īlso when trying to import 100(lowest I've tried that does it) or more the area around the importing mesh's is extremely slow and choppy. When I try to drag and move a mesh it will take a couple of seconds to drag over, but after it's out of the "area" it moves fine however putting it back into the area causes it to lag and be slow again. Thanks again for putting out this wonderful importer.Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: For some reason even when I was rotating a mesh far outside the area, if I moved inside the area, my object outside would freeze for a second. Maya 2016 - Learn Paint FX fundamentals by creating a realistic scene with grass and a tree. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #MAYA CONVERT PAINT FX TO MESH SOFTWARE#.
0 Comments
Leave a Reply. |