Advertisement Jump to content
Sign in to follow this  

Updating part of buffer

This topic is 4912 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey i wants to only update a luttle part of my terrain buffer i thought i did correct with this code but

// the vertex buffer is create , dynamic memory and default creation

// as arguments
// and set like this for example
start = 5;
oiffset = 10;

VERTEX *data; 
DOUBLE size = sizeof(VERTEX);

but the results is really strange everything dissapear except those vertices thats behind the start vertice Image hosted by plz help hunter_ex [Edited by - Hunter_Ex on August 11, 2005 9:03:32 PM]

Share this post

Link to post
Share on other sites
okay i waited some time now and i feel like getting an answer : ) ive tryed many stuff but if i NOT UPDATE(lock,copy,lock) the whole buffer i get really weird results

Share this post

Link to post
Share on other sites
Are you adding NEW data to the vertexbuffer, or are you changing existing data in the vertexbuffer?

If you're changing(Thus the latter case), remove the D3DLOCK_NOOVERWRITE. It tells the vertexbuffer you won't be changing existing data, so it continues drawing with the contents.


Share this post

Link to post
Share on other sites
yea im changing the data... i tryed remove the NOOVERWRITE
and use NULL instead but same problem. :(

ill post a screenshot soon

EDIT image

Image hosted by

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!