--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/d0e8207f-26c8-43b7-96bb-78a198859124%40googlegroups.com.
Here is a an example to start you off.You'll need to download the `city set` example from here : http://graphics.pixar.com/usd/downloads.htmlI'm not sure about the orientation & scale attributes right now and will work on adding more to the example scene, but it does demonstrate how to prepare USD point instancer data for use with gaffer's instancer.Cheers- Don
On Fri, 27 Dec 2019 at 02:14, Naiqi Weng <nik...@gmail.com> wrote:
--Hi,Merry Christmas and Happy holidays everyone!We are trying to use USD as much as we can in our pipeline. For example we would like to be able to parse usd instance with SceneReader in Gaffer and render it. I asked about UsdGeomPointInstancer before, and understand it is basically the similar workflow, but I still have some questions with regards to the inputs of the "instancer" node. From previous discussion, my understanding is that I need to get the instanced mesh locations using sceneReader and the actual geometry using a second sceneReader and input them to instancer node, but it looks like I don't have any control over the output of "sceneReader" node, then how do I specifically pass those information to "instancer" node. It looks to me "instancer" node has 2 inputs: "in" (which is a scene plug) and "instances".Can anyone help me solving this puzzle?Thanks a lot!Naiqi
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffe...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/71c4e5c1-c926-4c8c-823d-3125d52fcb3a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/71c4e5c1-c926-4c8c-823d-3125d52fcb3a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/691b5241-5378-4070-9958-f11c53b9333d%40googlegroups.com.
Hi, Don
Thanks for the example file. I was able to see it correctly in Gaffer0.55.Unfortunately the usd file I was instancing cannot be shared, I can use a simpler file to replace this. Actually any usd file can be used, as long as you replace this line"prepend references = @/mnt/pubTempData/users/wengn/usdFile/qingtongniao.usda@" with its correct path. If you want me to attach a simpler usd file, let me know.
About your comments, "The Gaffer Instancer won't help with dealing with USD's SceneGraph graph instancing, AFAIK as it corresponds only to the USD PointInstancer as we convert the pointInstancer to a points primitive and then we can use the gaffer instancer." I was not aware of this, I thought the instancer node is more of a general interface, and as long as you pass necessary information to it, it should be able to absorb the information. I mean, I understand Gaffer does not have an analogue of USD's scene graph instancing, but I thought I could organize the output from "SceneReader" node somehow, simliar to what you did in your pointInstancer example: use gaffer nodes to get position information of all the instancing prims from the "SceneReader" and pass it to "instancer" node as its first input, use gaffer nodes to get prototype mesh information (which is the usd instance prim master) and pass it to "instancer" as second input, and instancer node should be able to understand and resolve the information. Does this make sense?
If what I am saying is possible, then the question becomes: what exactly information "SceneReader" node outputs? And what exactly "instancer" node needs on its "in" and "instances" input plug? And how to connect them together?
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/691b5241-5378-4070-9958-f11c53b9333d%40googlegroups.com.
Hi Naiqi,
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/691b5241-5378-4070-9958-f11c53b9333d%40googlegroups.com.
void USDScene::childNames( SceneInterface::NameList &childNames ) const
{
for( const auto &i : m_location->prim.GetFilteredChildren( pxr::UsdTraverseInstanceProxies() ) )
{
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/36fa4d8c-8333-4388-881a-69bbb057ff0a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/36fa4d8c-8333-4388-881a-69bbb057ff0a%40googlegroups.com.
Hey John, would it be worth putting up a PR with just this change or would you only accept a change with an update to the geometry hashes also along with it?
Hi everyone. I'm bumping this thread because we're in trouble with our project and usd instancing in Gaffer.
Is this something that can be done without coding ? Because right now the process is really long and memory intensive, we sometimes wait over 45 minutes before the render actually starts, and it seem to totally fail on computers with a lower ram budget.