Jump to content

  • Log In with Google      Sign In   
  • Create Account

displaying 10 different jpg images per second for 20 secs


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 17 January 2013 - 04:28 AM

Wanting to do what the title says, all the images have the same resolution and format, The solution I have is load all the images data into a big vertex buffer where each vertex has a the RGB info of one pixel of an image... then dislay the images. So i will have to fread all the images, put the data in an array and then load them into a vertex buffer.

Is here a better faster way to do this?

 



Sponsor:

#2 Juliean   GDNet+   -  Reputation: 2735

Like
0Likes
Like

Posted 17 January 2013 - 04:37 AM

Why don't you just make each image a texture, then you can just have one vertex buffer (4 vertices describing the desired image size) and draw it 10 times, each time just changing the texture? No offense but what you are doing seems simply insane. Don't know DX10 too well, cant give you any code, hope you can figure that part out.

EDIT: You need orthogonal projection for this to work, too.

Edited by The King2, 17 January 2013 - 04:49 AM.


#3 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 17 January 2013 - 04:51 AM

mmmm ok, i think i will do it that way.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS