Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Texture (New Custom Feature!)

2»

Comments

  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    edited September 2022
    @fnxf
    It is possible, but not in the features current state. I will need to add the ability to use a feature as a texture input. The image would need to be placed inside a sketch, then that sketch could be selected as a custom material.

    I'm adding this to my improvements list. This is a fantastic idea! 

    It may take a while, but I plan to re-write the feature from the ground up. When I do, I will try to implement this.
  • fnxffnxf Member, User Group Leader Posts: 107 PRO
    @MichaelPascoe
    Glad to know it might be included in future versions- but with no delivery date 😉 

    Yes, this seems like a good workflow. You need to place and size the image anyway, so a sketch is needed in the first place.

    thanks!
  • STEGSTEG Member, User Group Leader Posts: 26 PRO
    JUST WOW!!!
  • mahirmahir Member, Developers Posts: 1,251 ✭✭✭✭✭
    fnxf said:
    Is it possible to add an image as a texture?
    @fnxf Look at you reaching for the sky :D I know SolidWorks does this, but implementing a method to convert image data into geometry would be quite the undertaking for a FeatureScript. @MichaelPascoe if you could pull this off that would be quite impressive!
  • Evan_ReeseEvan_Reese Member Posts: 1,602 PRO
    mahir said:
    fnxf said:
    Is it possible to add an image as a texture?
    @fnxf Look at you reaching for the sky :D I know SolidWorks does this, but implementing a method to convert image data into geometry would be quite the undertaking for a FeatureScript. @MichaelPascoe if you could pull this off that would be quite impressive!
    I thought he may have just meant patterning sketch images on a part for visuals. I think you're referring to an actual displacement map that modifies geometry and can be 3D printed, which is definitely on my wishlist! I currently use Keyshot or Rhino for this. I know Onshape's Render Studio can also do displacement mapping, but I've not played with it enough to know if there's a way to export the resulting mesh. I don't think featurescript currently has any capability of actually evaluating images (like reading the RGB values and using them in a feature). If they add it, you can bet I'll add something like that to Attractor Pattern.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    edited October 2022
    Good catch @Evan_Reese

    @mahir
    @fnxf
    Evan's right, currently Onshape doesn't have the capability to wrap images. In my custom feature, the only thing an image "texture" would do is resize the image and place it in the patterned locations. It would not wrap to the surface.

  • fnxffnxf Member, User Group Leader Posts: 107 PRO
    mahir said:
    fnxf said:
    Is it possible to add an image as a texture?
    @fnxf Look at you reaching for the sky :D I know SolidWorks does this, but implementing a method to convert image data into geometry would be quite the undertaking for a FeatureScript. @MichaelPascoe if you could pull this off that would be quite impressive!
    @mahir 😉 Maybe it's just a pipe dream.. But the Rendering Studio does Texture as a displacement (e.g. https://www.youtube.com/watch?v=ZTMbo79daIo) and that's sufficient for those times when I need it.

    @Evan_Reese yes, I did mean just patterning sketch images for quicker visuals. Nice that Keyshot together with Rhino can export modified geometry.

    @MichaelPascoe yeah, it's the wrapping (texturing) of images that I want, and if Onshape can't do it (yet), then we just have too keep writing improvement requests 😀 
  • Ammon_HovanskiAmmon_Hovanski Member Posts: 2
    how would you go about making a rough sheet rock texture
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    @Ammon_Hovanski Using the Attractor Pattern by @Evan_Reese would be a great way to generate some rough bumps on a texture square that could be used as a custom texture. There are some special techniques you can use to make the texture seamless. 

    I'll try to work up an example for you.
  • marshall_polandmarshall_poland Member Posts: 9 PRO
    Hey @MichaelPascoe , awesome work! This feature is very useful to me as-is... and I have two humble requests :D
    1) Make it possible to select multiple faces for "Face to texture." For example I'm working on this part which has a surface I'd like to make grippy with a texture. The surface is curvature-continuous, but it's made up of 3 separate faces. Currently it looks like I have to create 1 Texture feature for each.

    2) Add an option to specify spacing between pattern members, rather than the total rows/colums. For example I would like these spheres to be equally spaced on my surface. Currently it seems I have to use trial and error to get the right # of rows and columns, and the spacing would get off if my selected face changed size.
    Cheers--
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    Excellent requests @marshall_poland. These are currently already on my to do list for the next version. 

    Here is a sneak peak of my To Do List for the next version. Note that I have many other projects in the way so it will be some time before I get to this. If at anytime someone needs specific functionality for their production work sooner, feel free to sponsor your specific needs through CADSharp.
    Functionality:
    - Features as custom inputs so you can use images within sketches. (Images will not wrap as this functionality is not currently possible with Onshape)
    - Multi surface inputs - Select multiple faces.
        - If faces are adjacent, feature will treat them as one face.
        - If faces are not adjacent, feature will treat it like a new separate face.
    - Configuration input for face selection: All faces, selective - Row / column count by width or height
    - Selective: Range input. Example: row 2 to 5, column 1 to 3 - Color - Color per configuration
        - Color gradient from column or row similar to "selective" input
    - Property
        - Name
        - Description
        - Part number
        - etc
    - Border: trim parts to edges will now automatically extend parts beyond edge then trim them. Previously required you to "save parts at edges" then "trim parts at edges".
    - Other
        - Flip columns and rows
  • Evan_ReeseEvan_Reese Member Posts: 1,602 PRO
    Oh boy if you figure out a good way to do multiple faces I'd be pumped!
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    @Evan_Reese I will probably do it in a similar way to that mod with your Face Curves feature.

    @marshall_poland Here is a UX sneak peak:

  • gauthier_östervallgauthier_östervall Member Posts: 90 ✭✭
    Amazing! I'm also doing a tower, so that is handy. 

    The way I'm using it, the pattern ends early at edges:


    So, there are some bricks "missing":


    Can I somehow cover them?
  • S1monS1mon Member Posts: 1,213 PRO
    Cut the castellations after the texture.
  • gauthier_östervallgauthier_östervall Member Posts: 90 ✭✭
    Thanks @S1mon! This works well in this case. But sometimes I need the "simple" untextured part to reference to, in the following features. For example in the case of a round tower, I might need the clean section (a circle), without the texture. In these cases, I need to apply texture after all the other features.
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    edited November 2022

    @gauthier_östervall
    Try changing the grid type to Staggered and trimmed.

    This is basically adding two configurations: 
    Other > Border > Save off surface parts
    Other > Border > Trim parts at edges

  • gauthier_östervallgauthier_östervall Member Posts: 90 ✭✭
    @MichaelPascoe Thanks for this awesome work! Since your asking for suggestions:
    - "Sort X" confused me. Maybe because I'm a programmer, I interpreted "sort" as "put them in increasing order". "Fix" or "Auto" would be a better word.
    - I don't find to rotate the pattern. Like if you want the grain of the wood pattern to go perpendicular to default.
    - scaling confuses me a lot. Here is a picture of "Tongue and Groove", applied to a small surface.
    - scaling gives x, y, z, but are there the global axis? Maybe the ability to give a direction line? I my example above, the small surface is slanted, so global axis don't help.

    Thanks for the energy you're putting into it, I've been missing this since forever!
  • MichaelPascoeMichaelPascoe Member Posts: 1,115 PRO
    edited November 2022

    @gauthier_östervall, these are great suggestions! I will add a few of them to the list for sure.

    As far as the tongue and groove material, this one, along with some others, have some default real world values that they instantiate with. This is so that you can place these on a real wall and not worry about it being the wrong scale because it is based on real world dimensions.

Sign In or Register to comment.