It looks like you're new here. If you want to get involved, click one of these buttons!
Hello. Is there any way to get world coordinate from the UV coordinate of the polygon mesh?
I don't think this is possible, simply because the UV values for each point are not necessarily different.
If for example 10 vertices of a mesh all have the UV coordinates (0, 0) then one cannot decide which point positions to use.
You could of course just go through all the points and compare the UV value with some input UV value and return the closest match, but that would not be very performant when dealing with large meshes.
Yeah, I guess Eric is right.
The only thing I can think of would be dodgy workaround - although this is only possible for one very specific scenario.
For this to work your meshes must:
Basically I'd like to suggest to:
Please see attached screenshot and canvas graph.
The Axis represents the UV value, the yellow point the resolved position, the wireframe grid is the unwrap.
Hi @Chase Cartman
We understand that a UV to Location functionality can be useful and have already the internal ticket FE-4655 to tackle it in the future.
Technical Product Manager
Fabric Software Inc.
@martin_chatterjee, thank you very much! It is exactly what I've been asking. Just modified your canvas to an array of UVs version.
Glad to hear that it helps.
@mootzoid even if the result isn't well defined for the overlapping uv case, many softwares implement some version of this for baking textures. i wanted to use fabric for some texture simulation baking (think weathering) and wanted to evaluate a shadow at a world position and needed this. i didn't finish the project but found kettle bake helpful in getting a world position from a uv coordinate...
you will notice the comment about stealing this code...
I might have been a bit quick in dismissing this
Thanks @martin_chatterjee and @scaron for posting some solutions to the problem!
Yes its something I use in ICE.
Whilst its true that there are some 'impossible' scenarios, you'll use it in a situation where you can circumnavigate those issues.
I'm primarily trying to help the visual programming development, in my own small way, through providing feedback on Canvas.
We added recently in the escher daily builds uv to location capabilities to our Polygonmeshes (and the corresponding canvas presets). You can check the sample instance_on_uv_location.canvas included
©Copyright 2017 Fabric Software Inc. All rights reserved. | Privacy