Timeline for How to update "dynamicVertexBuffer" correctly with "setdata" on XNA?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 9, 2013 at 9:32 | comment | added | Mehdi Bugnard | But in fact I use the "Frustum" to update it to draw only the cubes that is in my field of vision. But with his, my data buffer must change every time the player moves the camera ... Do I have to initialize my buffer each time in my function "Update ()"? Is it okay to reset every time my buffer to each call / frame ... I have edited my function for more information with "frustum" | |
| Apr 9, 2013 at 0:00 | comment | added | Tetrad | @MehdiBugnard that sounds horribly inefficient compared to, say, per-object frustum culling | |
| Apr 7, 2013 at 19:33 | comment | added | Mehdi Bugnard | Yes almost. Whenever the player moves the camera, I get and draws only the vertices that is in the field of view of the camera. This is why I often need to update. | |
| Apr 7, 2013 at 19:01 | history | answered | Bob | CC BY-SA 3.0 |