• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About Fargo

  • Rank
  1. Need Buffer Clarification

    Thank you very much.. That pretty well cleared it up for me..
  2. Hi, I'm a little confused on buffers.. IM Ok with the back buffer(s) created in the swap chain..But Im not sure about the buffers created with ID3D10Buffer using the CreateBuffer function.. Im learning using a few books I have found.. Some say I can only have 1 or a few of these buffers to store vertices in. I have read in forums that people have created hundreds of these buffers.. for their programs.. but have complained of performance issues when a lot are used.. My question is is this buffer type stored in video memory or computer RAM ? How many can I have ? is there a set number ? I am a beginner learning this but it seems to me If I had a program with Terrain ,, Objects on the terrain.. and models moving about and the models were different types I would have to have a separate buffer for the terrain, separate ones for the models etc. Or do I really have to cram all this in one buffer and try to keep track of what is what and where in the buffer ? (I think I said that right ) I started out with directX9 using fixed pipeline..and figured I should not waste time on that and learn DX 10.. Im still trying to wrap my head around the HLSL that I have to learn for DX 10.. Anyway in DX 9 I had made a class which was comprised of a transformed quad that I could map different parts of a texture on it at any time , change the size and position and transpose font on it at will.. I then made other classes that were derived from the quad class... ( I was building a GUI system for dx9 ) anyway each quad class had its own vertex buffer and it all seemed to work fine..but I was not sure if this was really the right thing to do.. So I really need to get this clear on what is right or wrong as far as buffers go before I build anything more in DX10 Thanks for any advice ..
  3. Thank you for the reply.. I see what you are talking about the possible world transfomation problem. perhaps the scaling method might be better..
  4. Hi, Im new to directx and have a question. I wanted to start out simple so I decided to build a solar system and have a ship travel to and from.. The ship would have the view point of the camera. The distances are in millions and billions of units (Km) so I wanted to know if the world and view space (transfomations) have any limit to size? This would make my life easier.. Or would the prefered method be to keep all the planets closer on the edge of a large playfield and use scaling to give the perception of getting closer or farthur away from a planet. ?
  5. Thank you very much.. This will definitly get me in the right direction..
  6. Hello, I would like to program to use the cursor to click on a 3D object and know that It clicked on it..Im using DirectX 10.. Is there a DX function to do this ? I have not had much luck searching for this on the web.. It might be I cant describe what Im trying ot do in the search. I can find where my cursor is no problem as I use my own class with a quad for my cursor.. just need to figure out 3D objects to screen coord I guess. A nudge in the right direction will be greatly appeciated.. Im using C++ Thanks
  7. compute 3D point on a vector

    Thank you Cornstalks and Haegarr I was not sure how to create a velocity vector that would not wander off from the vector between A and B.This information helped a lot..thanks for helping me out.
  8. Hi, I would like to know how do to the following..I have a point in 3D space A(x,y,z) and another point B(x,y,z) If I travel from point A towards point B at a set velocity (meters per second) I would like to calculate at any given time the point position on the vector between A and B.. C(x,y,z) I already know how to calculate the distance between A and B so I have that and I know the speed.. I probably could find it with google but I dont really know how to describe it for a search.. so far I have not had any luck finding it..Thanks.
  9. Is there a limit on the number of vertex buffers I can create and use ?. I have created a Class that generates a simple quad. The Class has its own vertex buffer and function to render the quad. I use several of these in my program and call each one from the main loop for rendering..So far I see no problems.. It works fine, no memory leaks or exceptions..But before I get too far along I wanted to be sure if there was a limit ..And if I should use managed memory pool or default memory pool when creating a lot of vertex buffers.. Im using directx 9. thanx in advance.