Vertex Array and Indexes
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Posts: 26
- Joined: Mon Jan 04, 2010 8:02 pm
whatever you do do not try this in the terrain demo or with heightmapped terrain
For some bizzare reason it crashes the app with an access violation, I have no clue why this is but it's definately not good
Code: Select all
terrain->getMesh()->getMeshBuffer(terrain->getMesh()->getMeshBufferCount())->getVertexCount();
Remember all information is contextual and if I do not understand the context I cannot gras the information
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Hey strange guy. You were told so many times not to resurrect old threads. Your code is simply wrong, why do you post such things? Of course this crashes, you access one mesh buffer too far. Moreover, read the terrain demo, then you get the correct code to access vertex data from terrain.
BTW: completely useless posts in too old threads are deleted without further notice, please don't complain about this fact.
BTW: completely useless posts in too old threads are deleted without further notice, please don't complain about this fact.