Home › Forums › Graphics / Blender › Generated texture not working when exporting scene
Tagged: coordonate, texture
- This topic has 15 replies, 3 voices, and was last updated 5 years, 3 months ago by D3Pixel.
-
AuthorPosts
-
2019-08-31 at 3:35 am #18299yasseCustomer
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 :)
2019-08-31 at 2:42 pm #18308D3PixelCustomerJust 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
2019-08-31 at 6:52 pm #18317Mikhail LuzyaninStaffCan you share your not working example file?
Co-founder and lead graphics specialist at Soft8Soft.
2019-08-31 at 8:28 pm #18323yasseCustomerHello, 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,
2019-08-31 at 9:33 pm #18326D3PixelCustomerQuick question, why are you using Generated and not normal UV Mapping for this?
3D Animation and Web3D services - www.d3pixel.co.uk
2019-09-01 at 2:22 am #18331yasseCustomerbecause 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,
2019-09-02 at 4:01 am #18341D3PixelCustomerHad 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
2019-09-02 at 4:27 am #18344D3PixelCustomerAlso, 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
2019-09-02 at 5:46 am #18351Mikhail LuzyaninStaffHad 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.
2019-09-02 at 7:41 am #18356yasseCustomer@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. :)2019-09-02 at 9:03 am #18359D3PixelCustomer@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
2019-09-03 at 2:34 am #18366yasseCustomerThank 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 :)
2019-09-03 at 7:11 am #18368Mikhail LuzyaninStaffdo 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.
2019-09-03 at 9:53 am #18373D3PixelCustomerMapping 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
2019-09-03 at 10:43 am #18378Mikhail LuzyaninStaffBoth 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.
-
AuthorPosts
- You must be logged in to reply to this topic.