Re: getting subsurface index
I understand the problem, I had to work with combined curves and found difficult (impossible?) to access subcurves. Looks like an area of ICE that could be improved a lot by exposing the right attribute. Good luck and keep us posted with your discoveries. On Tue, Jun 11, 2013 at 5:10 PM, Matt Lind wrote: > You only need that method when comparing PointLocators across multiple > subsurfaces to make decisions. In my case I only need the nearest location > on the surface mesh. NURBSSurfaceMesh.GetClosestSurfacePosition2() returns > the subsurface index as part of the PointLocator object. > > ** ** > > In the case of ICE, the subsurface index can be specified in the UV to > Location node to apply a location on a surface mesh, but there is no way to > read the subsurface index from a PointLocator on a surface mesh – that is > the problem. I spent most of last night at home scratching my head on > various ways to determine the subsurface index. I tried using group > geometry, metadata in weightmaps and so forth. Bottom line is no matter > what workaround I attempted, I needed the subsurface index to be delivered > from the PointLocator. The only option in ICE is to use the Reinterpret > Location node, but it doesn’t expose the subsurface index which makes it > impossible to apply a UV offset as I need to do. > > ** ** > > Since the ICE SDK doesn’t expose locators, looks like I’ll have to use C++ > or a scripted operator. > > ** ** > > Matt > > ** ** > > ** ** > > *From:* softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] *On Behalf Of *Vincent Fortin > *Sent:* Tuesday, June 11, 2013 12:48 PM > *To:* softimage > *Subject:* Re: getting subsurface index > > ** ** > > Looks like this > method<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/NurbsSurfaceMesh.GetSubSurfaceIndexArray.html,topicNumber=si_om_NurbsSurfaceMesh_GetSubSurfaceIndexArray_html>would > be useful to you if it was implemented in ICE. It'd be perfect with > the UV to Location node. > > ** ** > > It's the opposite issue with polygons. You can extract the polygon index > from the location but it's missing the polygon UV. > > I was hoping to be able to build a location from scratch using those two > attributes. But I couldn't find anything about polygon UVs, even in the sdk. > > > ** ** > > Maybe Grahame knows? > > ** ** > > On Mon, Jun 10, 2013 at 7:22 PM, Matt Lind > wrote: > > And to follow – I wish the subsurface index wasn’t encapsulated in the > location. It should be exposed as a port on the reinterpret location and > UV to location nodes so you can perform one-to-many and many-to-one > remappings. Reinterpret location should expose a UV coordinate port as > well. > > > > > > Matt > > > > **** > > *From:* softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 3:16 PM > > > *To:* softimage@listproc.autodesk.com > *Subject:* RE: getting subsurface index > > > > I need to remap with an offset in the UV coordinate. Reinterpret doesn’t > allow for that. > > > > Matt > > > > > > > > > > *From:* softimage-boun...@listproc.autodesk.com [ > mailto:softimage-boun...@listproc.autodesk.com] > *On Behalf Of *Grahame Fuller > *Sent:* Monday, June 10, 2013 12:53 PM > *To:* softimage@listproc.autodesk.com > *Subject:* RE: getting subsurface index > > > > An ICE location on a surface mesh essentially consists of the subsurface > index and the UV parameters on that subsurface, in other words, the > subsurface index is built in to the location. So, you should be able to > simply use Reinterpret Location to New Geometry. Is that not working? *** > * > > > > gray > > > > *From:* softimage-boun...@listproc.autodesk.com [ > mailto:softimage-boun...@listproc.autodesk.com] > *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 03:03 PM > *To:* softimage@listproc.autodesk.com > *Subject:* ICE: getting subsurface index > > > > I have to write a tool which remaps a position from a surface mesh onto > another surface mesh. I am hoping to use ICE, but am running into a > barrier – how to obtain the subsurface index of a surface mesh which a > location was found. > > > > Anybody? > > > > > > Matt > > > > > > ** ** >
RE: getting subsurface index
BTW - you get the UVW coordinates from the polygon node index array returned from the PointLocator. The UVW coordinates are stored in a ClusterProperty of type 'uvspace'. You need to use the Polygon Node Indices returned from the PointLocator to look them up in the uvspace property. Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Tuesday, June 11, 2013 2:10 PM To: softimage@listproc.autodesk.com Subject: RE: getting subsurface index You only need that method when comparing PointLocators across multiple subsurfaces to make decisions. In my case I only need the nearest location on the surface mesh. NURBSSurfaceMesh.GetClosestSurfacePosition2() returns the subsurface index as part of the PointLocator object. In the case of ICE, the subsurface index can be specified in the UV to Location node to apply a location on a surface mesh, but there is no way to read the subsurface index from a PointLocator on a surface mesh - that is the problem. I spent most of last night at home scratching my head on various ways to determine the subsurface index. I tried using group geometry, metadata in weightmaps and so forth. Bottom line is no matter what workaround I attempted, I needed the subsurface index to be delivered from the PointLocator. The only option in ICE is to use the Reinterpret Location node, but it doesn't expose the subsurface index which makes it impossible to apply a UV offset as I need to do. Since the ICE SDK doesn't expose locators, looks like I'll have to use C++ or a scripted operator. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Vincent Fortin Sent: Tuesday, June 11, 2013 12:48 PM To: softimage Subject: Re: getting subsurface index Looks like this method<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/NurbsSurfaceMesh.GetSubSurfaceIndexArray.html,topicNumber=si_om_NurbsSurfaceMesh_GetSubSurfaceIndexArray_html> would be useful to you if it was implemented in ICE. It'd be perfect with the UV to Location node. It's the opposite issue with polygons. You can extract the polygon index from the location but it's missing the polygon UV. I was hoping to be able to build a location from scratch using those two attributes. But I couldn't find anything about polygon UVs, even in the sdk. Maybe Grahame knows? On Mon, Jun 10, 2013 at 7:22 PM, Matt Lind mailto:ml...@carbinestudios.com>> wrote: And to follow - I wish the subsurface index wasn't encapsulated in the location. It should be exposed as a port on the reinterpret location and UV to location nodes so you can perform one-to-many and many-to-one remappings. Reinterpret location should expose a UV coordinate port as well. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 3:16 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: RE: getting subsurface index I need to remap with an offset in the UV coordinate. Reinterpret doesn't allow for that. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Grahame Fuller Sent: Monday, June 10, 2013 12:53 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: RE: getting subsurface index An ICE location on a surface mesh essentially consists of the subsurface index and the UV parameters on that subsurface, in other words, the subsurface index is built in to the location. So, you should be able to simply use Reinterpret Location to New Geometry. Is that not working? gray From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 03:03 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: ICE: getting subsurface index I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
RE: getting subsurface index
You only need that method when comparing PointLocators across multiple subsurfaces to make decisions. In my case I only need the nearest location on the surface mesh. NURBSSurfaceMesh.GetClosestSurfacePosition2() returns the subsurface index as part of the PointLocator object. In the case of ICE, the subsurface index can be specified in the UV to Location node to apply a location on a surface mesh, but there is no way to read the subsurface index from a PointLocator on a surface mesh - that is the problem. I spent most of last night at home scratching my head on various ways to determine the subsurface index. I tried using group geometry, metadata in weightmaps and so forth. Bottom line is no matter what workaround I attempted, I needed the subsurface index to be delivered from the PointLocator. The only option in ICE is to use the Reinterpret Location node, but it doesn't expose the subsurface index which makes it impossible to apply a UV offset as I need to do. Since the ICE SDK doesn't expose locators, looks like I'll have to use C++ or a scripted operator. Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Vincent Fortin Sent: Tuesday, June 11, 2013 12:48 PM To: softimage Subject: Re: getting subsurface index Looks like this method<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/NurbsSurfaceMesh.GetSubSurfaceIndexArray.html,topicNumber=si_om_NurbsSurfaceMesh_GetSubSurfaceIndexArray_html> would be useful to you if it was implemented in ICE. It'd be perfect with the UV to Location node. It's the opposite issue with polygons. You can extract the polygon index from the location but it's missing the polygon UV. I was hoping to be able to build a location from scratch using those two attributes. But I couldn't find anything about polygon UVs, even in the sdk. Maybe Grahame knows? On Mon, Jun 10, 2013 at 7:22 PM, Matt Lind mailto:ml...@carbinestudios.com>> wrote: And to follow - I wish the subsurface index wasn't encapsulated in the location. It should be exposed as a port on the reinterpret location and UV to location nodes so you can perform one-to-many and many-to-one remappings. Reinterpret location should expose a UV coordinate port as well. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 3:16 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: RE: getting subsurface index I need to remap with an offset in the UV coordinate. Reinterpret doesn't allow for that. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Grahame Fuller Sent: Monday, June 10, 2013 12:53 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: RE: getting subsurface index An ICE location on a surface mesh essentially consists of the subsurface index and the UV parameters on that subsurface, in other words, the subsurface index is built in to the location. So, you should be able to simply use Reinterpret Location to New Geometry. Is that not working? gray From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 03:03 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: ICE: getting subsurface index I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
Re: getting subsurface index
Looks like this method<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/NurbsSurfaceMesh.GetSubSurfaceIndexArray.html,topicNumber=si_om_NurbsSurfaceMesh_GetSubSurfaceIndexArray_html>would be useful to you if it was implemented in ICE. It'd be perfect with the UV to Location node. It's the opposite issue with polygons. You can extract the polygon index from the location but it's missing the polygon UV. I was hoping to be able to build a location from scratch using those two attributes. But I couldn't find anything about polygon UVs, even in the sdk. Maybe Grahame knows? On Mon, Jun 10, 2013 at 7:22 PM, Matt Lind wrote: > And to follow – I wish the subsurface index wasn’t encapsulated in the > location. It should be exposed as a port on the reinterpret location and > UV to location nodes so you can perform one-to-many and many-to-one > remappings. Reinterpret location should expose a UV coordinate port as > well. > > ** ** > > ** ** > > Matt > > ** ** > > ** ** > > *From:* softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 3:16 PM > > *To:* softimage@listproc.autodesk.com > *Subject:* RE: getting subsurface index > > ** ** > > I need to remap with an offset in the UV coordinate. Reinterpret doesn’t > allow for that. > > ** ** > > Matt > > ** ** > > ** ** > > ** ** > > ** ** > > *From:* softimage-boun...@listproc.autodesk.com [ > mailto:softimage-boun...@listproc.autodesk.com] > *On Behalf Of *Grahame Fuller > *Sent:* Monday, June 10, 2013 12:53 PM > *To:* softimage@listproc.autodesk.com > *Subject:* RE: getting subsurface index > > ** ** > > An ICE location on a surface mesh essentially consists of the subsurface > index and the UV parameters on that subsurface, in other words, the > subsurface index is built in to the location. So, you should be able to > simply use Reinterpret Location to New Geometry. Is that not working? *** > * > > ** ** > > gray > > ** ** > > *From:* softimage-boun...@listproc.autodesk.com [ > mailto:softimage-boun...@listproc.autodesk.com] > *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 03:03 PM > *To:* softimage@listproc.autodesk.com > *Subject:* ICE: getting subsurface index > > ** ** > > I have to write a tool which remaps a position from a surface mesh onto > another surface mesh. I am hoping to use ICE, but am running into a > barrier – how to obtain the subsurface index of a surface mesh which a > location was found. > > ** ** > > Anybody? > > ** ** > > ** ** > > Matt > > ** ** > > ** ** >
RE: getting subsurface index
And to follow - I wish the subsurface index wasn't encapsulated in the location. It should be exposed as a port on the reinterpret location and UV to location nodes so you can perform one-to-many and many-to-one remappings. Reinterpret location should expose a UV coordinate port as well. Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 3:16 PM To: softimage@listproc.autodesk.com Subject: RE: getting subsurface index I need to remap with an offset in the UV coordinate. Reinterpret doesn't allow for that. Matt From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Grahame Fuller Sent: Monday, June 10, 2013 12:53 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: RE: getting subsurface index An ICE location on a surface mesh essentially consists of the subsurface index and the UV parameters on that subsurface, in other words, the subsurface index is built in to the location. So, you should be able to simply use Reinterpret Location to New Geometry. Is that not working? gray From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 03:03 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: ICE: getting subsurface index I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
RE: getting subsurface index
I need to remap with an offset in the UV coordinate. Reinterpret doesn't allow for that. Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Grahame Fuller Sent: Monday, June 10, 2013 12:53 PM To: softimage@listproc.autodesk.com Subject: RE: getting subsurface index An ICE location on a surface mesh essentially consists of the subsurface index and the UV parameters on that subsurface, in other words, the subsurface index is built in to the location. So, you should be able to simply use Reinterpret Location to New Geometry. Is that not working? gray From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 03:03 PM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: ICE: getting subsurface index I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
RE: ICE: getting subsurface index
I was using 'reinterpret location', but had to replace it with 'UV to Location' because I needed to specify a specific UV coordinate with an offset before it was remapped to the target surface. Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Vincent Ullmann Sent: Monday, June 10, 2013 12:35 PM To: softimage@listproc.autodesk.com Subject: Re: ICE: getting subsurface index Did you try the "reinterpret Location"-Node in ICE? Not sure if it works with your Subsurface-Index, but in general it soundsa like it would work for you. Position -> [Get Closest Location (on Mesh A)] -> [reinterpret Location (On Mesh B)] -> Get Position If you do it in a Custom Op or anything SDK, you could still evaluate Locations on different geometries. More or less the same like the pseudo-ICE graph above. Get location on Mesh A -> myLoc MeshB.ActivePrimitve().Geometry().EvaluatePosition(myLoc) //something like that Am 10.06.2013 21:03, schrieb Matt Lind: I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
RE: getting subsurface index
An ICE location on a surface mesh essentially consists of the subsurface index and the UV parameters on that subsurface, in other words, the subsurface index is built in to the location. So, you should be able to simply use Reinterpret Location to New Geometry. Is that not working? gray From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Monday, June 10, 2013 03:03 PM To: softimage@listproc.autodesk.com Subject: ICE: getting subsurface index I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt <>
Re: ICE: getting subsurface index
Did you try the "reinterpret Location"-Node in ICE? Not sure if it works with your Subsurface-Index, but in general it soundsa like it would work for you. Position -> [Get Closest Location (on Mesh A)] -> [reinterpret Location (On Mesh B)] -> Get Position If you do it in a Custom Op or anything SDK, you could still evaluate Locations on different geometries. More or less the same like the pseudo-ICE graph above. Get location on Mesh A -> myLoc MeshB.ActivePrimitve().Geometry().EvaluatePosition(myLoc) //something like that Am 10.06.2013 21:03, schrieb Matt Lind: I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier -- how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt
ICE: getting subsurface index
I have to write a tool which remaps a position from a surface mesh onto another surface mesh. I am hoping to use ICE, but am running into a barrier - how to obtain the subsurface index of a surface mesh which a location was found. Anybody? Matt