Jump to content
  • Advertisement
Sign in to follow this  
active_vertex

[slimDX] IndexBuffer.Description.SizeInBytes= 0

This topic is 3727 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

after loading the mesh mesh=mesh.fromfile..etc i wanted to use its Indexbuffer and VertexBuffer to fill batch buffer with them but i found this... Indexbuffer.IndexBuffer.Description.SizeInBytes= 0 (always) !! even after locking the Indexbuffer to read/write its contents into the batch buffer, the size is 0 ..means no data datastream ds=mesh.lock(0,0,lockflags.readonly); generates an exception regarding SizeInByte!! am i doing anything wrong here or its just a bug?! any help? [Edited by - active_vertex on July 9, 2008 4:03:56 PM]

Share this post


Link to post
Share on other sites
Advertisement
Do you get the same problem if you use another x-file (not created with 3ds)?

Will a meshviewer open the x-file successfully?

Share this post


Link to post
Share on other sites

here is a sample content from the x file im producing ..

.
.
Mesh {
36; <- vertices
-5.000000;0.000000;-5.000000;,
5.000000;0.000000;5.000000;,
-5.000000;0.000000;5.000000;,
5.000000;0.000000;5.000000;,
-5.000000;0.000000;-5.000000;,
5.000000;0.000000;-5.000000;,
-5.000000;10.000000;-5.000000;,
5.000000;10.000000;5.000000;,
5.000000;10.000000;-5.000000;,
5.000000;10.000000;5.000000;,
-5.000000;10.000000;-5.000000;,
-5.000000;10.000000;5.000000;,
-5.000000;0.000000;-5.000000;,
5.000000;10.000000;-5.000000;,
5.000000;0.000000;-5.000000;,
5.000000;10.000000;-5.000000;,
-5.000000;0.000000;-5.000000;,
-5.000000;10.000000;-5.000000;,
5.000000;0.000000;-5.000000;,
5.000000;10.000000;5.000000;,
5.000000;0.000000;5.000000;,
5.000000;10.000000;5.000000;,
5.000000;0.000000;-5.000000;,
5.000000;10.000000;-5.000000;,
5.000000;0.000000;5.000000;,
-5.000000;10.000000;5.000000;,
-5.000000;0.000000;5.000000;,
-5.000000;10.000000;5.000000;,
5.000000;0.000000;5.000000;,
5.000000;10.000000;5.000000;,
-5.000000;0.000000;5.000000;,
-5.000000;10.000000;-5.000000;,
-5.000000;0.000000;-5.000000;,
-5.000000;10.000000;-5.000000;,
-5.000000;0.000000;5.000000;,
-5.000000;10.000000;5.000000;;
12; <- indices
3;0,1,2;,
3;3,4,5;,
3;6,7,8;,
3;9,10,11;,
3;12,13,14;,
3;15,16,17;,
3;18,19,20;,
3;21,22,23;,
3;24,25,26;,
3;27,28,29;,
3;30,31,32;,
3;33,34,35;;
.
.
}

loading the same xfile with the old mdx
i could get the indices data and size with the locking process
but with slimdx still 0 and an exception whenever locking the meshs indexbuffer

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!