We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Generated texture not working when exporting scene

Home Forums Graphics / Blender Generated texture not working when exporting scene

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #18299
    yasse
    Customer

    Helloo Folks,

    Hope you doing good,

    I Was trying to make an exportation from blender using a texture in which i used a generated texture coordonate,

    but when exported on Verge3D it didn’t worked, and object not appearing,

    Please what could be the issue, (attached the texture node)

    Thank you :)

    #18308
    D3Pixel
    Customer

    Just tested this on a cube with a “Generated” mapped texture as your example it displayed ok using Sneak Peak. Maybe something is odd with your mesh?

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18317

    Can you share your not working example file?

    Co-founder and lead graphics specialist at Soft8Soft.

    #18323
    yasse
    Customer

    Hello, thank you for the answers:

    @d3pixel
    , i’m not sure if in the example it worked since the others faces textures was stretched… even with a repeat, and box / linear properties.

    @Mikhail! Thank you so much for investegating about this, here attached the project file, and it include the main texture i need (material test)
    it has a Two RGB node to control the colors on main body, and then it has 3 textures as png, as stickers.

    the idea is later was to be able to control the Rgb of the material(using puzzle set color) and then to control the stickers using puzzle (open doc) as in custom image demo.

    Thank you again,

    #18326
    D3Pixel
    Customer

    Quick question, why are you using Generated and not normal UV Mapping for this?

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18331
    yasse
    Customer

    because those (what’s called stickers) are texture need to overlay on existing uvw map, in addition, be able to move/scale them only without impacting the main uvw which is the jersey,

    #18341
    D3Pixel
    Customer

    Had a little play with this as can not sleep. Not entirely sure it is what you want but it is a Generated decal/sticker node setup.

    Attached example file and screen shot.

    Attachments:
    You must be logged in to view attached files.

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18344
    D3Pixel
    Customer

    Also, if you want Move + Scale via Value nodes then edit the node tree like the attached image (or open the new blend file attached).

    Although Scale using Generated seems to have its origin in the lower left corner whereas Object would be center scaled, but don’t think Verge can use Object coordinates though.

    Attachments:
    You must be logged in to view attached files.

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18351

    Had a little play with this as can not sleep. Not entirely sure it is what you want but it is a Generated decal/sticker node setup.

    Yes it’s one of the way you can do it and it must work.

    Although Scale using Generated seems to have its origin in the lower left corner whereas Object would be center scaled, but don’t think Verge can use Object coordinates though.

    This won’t work yet.

    Co-founder and lead graphics specialist at Soft8Soft.

    #18356
    yasse
    Customer

    @d3pixel Aswell I Kept thinking the whole night thinking about a way to solve it and working on an API to convert illustrator to Png file format for that sticker upload area, But Yaaaaaay the method you provided, from the sample you sent me, is 100% Working! :)
    I’m happy with it.

    Here attached where I’m willing to use it (user interface component screenshot) I Will be glad to share with you the project link once it’s finished :)
    and the reason the stickers needed are that the main uvw maps, already is the shirt material itself, that it has a colors picker :)

    Also thank you a lot for the second decal2, yes I saw the value node that are controlling position and scale, and for scale it has the reference on buttom left, but it’s not an issue especial the stickers being controlled in it scale, the range not that big to make it appear weird,


    @d3pixel
    @Mikhail Thank you again so much for your time, i will keep you updated about the project, it has some wonderful features. :)

    #18359
    D3Pixel
    Customer

    @d3pixel Aswell I Kept thinking the whole night thinking about a way to solve it and working on an API to convert illustrator to Png file format for that sticker upload area, But Yaaaaaay the method you provided, from the sample you sent me, is 100% Working!
    I’m happy with it.

    Glad to help.

    As for Illustrator to PNG, you could ask your customers to export as vector SVG and use ImageMagick to convert to PNG if needed.

    $image = new IMagick();  
    $image->setBackgroundColor(new ImagickPixel('transparent'));  
    $image->readImageBlob($svg_data_as_string);  
    $image->setImageFormat("png32");

    Looking forwards to seeing your end product.

    As an after thought, you might be able to set the image scale using ImageMagick from function call in your puzzles, this may look better if you run into problems with Value scale.

    https://www.php.net/manual/en/imagick.scaleimage.php

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18366
    yasse
    Customer

    @d3pixel

    Thank you for the link, certainly i give it a try aswell, but here already I Used this converter API, https://api2.online-convert.com/schema

    Please I may bother you one more time with one more question only, when i added the node in decal2, the backside, got me the sticker flipped(Symetry Y axis) see attached please.

    do you have any idea why it’s getting fliped? (it’s the backside) is there any node that can reverse the input material?

    thank you again, looking forward sending you the link soon :) :yahoo: :good:

    #18368

    do you have any idea why it’s getting fliped? (it’s the backside) is there any node that can reverse the input material?

    Mapping node with scale=-1 can help.

    Co-founder and lead graphics specialist at Soft8Soft.

    #18373
    D3Pixel
    Customer

    Mapping node with scale=-1 can help.

    I don’t think you can use a mapping node in this Generated flow due to the Object Texture Space origin being in the corner.

    To get around that, you can Flip X scale with Vector using a Separate RGB -> Invert R-> Combine RGB
    See Image attached.

    If you need to flip Y too then just add another invert on the green.

    You can also feed a Value into the Invert Fac. 0=Normal, 1=Inverted which might help in Puzzles.

    3D Animation and Web3D services - www.d3pixel.co.uk

    #18378

    Both will work, Mapping node work not only with the UVMap but with vectors too and to the same but in one node.

    Co-founder and lead graphics specialist at Soft8Soft.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.