<div dir="ltr"><div><div><div><div><div><div>Hi All,<br><br></div>I'm having some trouble getting my code to use hardware instancing. I've referenced OSGEarth, DrawInstanced example, and a few different code samples on the web. I've gotten pretty close but I seem to be at a bit of an impasse.<br><br></div>This screenshot shows what the map looks like with the default rendering:<br><br><a href="http://imgur.com/fKvunfd">http://imgur.com/fKvunfd</a><br><br></div>This screenshot shows what the map looks like after I apply my instance rendering code to it:<br><br><a href="http://imgur.com/zZCzurr">http://imgur.com/zZCzurr</a><br><br></div>The map is composed of a lot of little nodes. I figured instanced rendering would be helpful in this case. The map has ~4000 individual nodes. Two of the nodes are repeated 465 and 266 times. I have trimmed down my code and it is posted here:<br><br><a href="http://pastebin.com/ifSVSzD6">http://pastebin.com/ifSVSzD6</a><br><br></div>From what it looks like. Its rendering one copy of every nodes but not anymore that that. I have commented out lines 215 to 224 as it doesn't work at all. Any insight or help would be greatly appreciated.<br><br></div>Thanks, Sam<br></div>