Answer Questions
rohinirohini Is it possible to import .X files into 3D Studio Max?
Hey guys, In a spot of bother here! I'm doing some work for a game and had a ton of short animation files i had created in 3DS Max and then exported to .X format using a third party exporter. I now need to render these animations as BMP frames for importing into a Flash version of the game. I may also need to reanimate bits and bobs. I placed all the Max files on someones portable hard-drive for safe keeping... problem is they've gone and delete ...Show All
Jahan Players move faster at higher framerates
Okay, this is really bad. Clearly, a hard-coded "2" that's applied to my character's "Left" property on every frame render isn't going to cut it. Obviously, the game will run slow on crappy hardware, and there's not much I can do to prevent that. But the game shouldn't run faster on really good hardware! How can I cap the movement speed, or better yet, guarentee a certain speed within reason I can already calculate frames per second, and h ...Show All
Bent Need help with a black Tiger
Hi All, I need help with a black tiger. I am using DirectX 9.0 SDK (August 2005) I used the Sample Browser to install new SimpleSample C++ project as a basic starting point. The only changes I added were as follows... //-------------------------------- // Global variables //-------------------------------- CDXUTMesh g_Mesh; // mesh //-------------------------------- OnCreateDevice() // create the mesh LPCWSTR strFilename = L&q ...Show All
Klause Using controls as a textbox in dx9?
Greetings! :) I'm programming a game in dx9 and now and then you need a textbox, listbox or some other control for userinput. If you add normal controls it does not work. So the question is: how do I use controls in directx games I cannot find any information on this subject anywhere.. I might be missing something but I don't know what, if it is the case. Nb. Also I might say that I'm programming it in .Net with C# under Windows XP Pro T ...Show All
r cook Program for editing .x files
What program should I use to edit .x files Can I import objects from powerful editors like 3D Studio MAX Gamedev has a much better list then me http://www.gamedev.net/community/forums/topic.asp topic_id=202348 Most of the modern 3d modelling packages allow you to export to x files for directx programming, but I do not know of any that will go from x files to the modeling programs format. There may be some converters out ...Show All
Chris V getting the position of vertices in a mesh
Hello everybody. I am trying to get the position of vertices in a mesh. That seems to work fine except that the data I get doesn't make sense. To me. I use a lock on the mesh.VertexBuffer (both versions... an array and a graphics stream with same results) and use the returned array or graphics stream to look for vertices that have a Position "of interest". The only issue is that some "Positions" have ...Show All
Peter Hogg retrieving more than 4 values per texture lookup
Is it possible to have a texture with more than 4 values per texel My problem is, I need to look up a chunk of many values (about 16) multiple times per pixel and I like to do that quickly. In my setting more than three 2d texture lookups each time (= 12 float values) is the maximum I can allow without a significant performance drop. Also if anybody has experimented with 64 or 128 bit textures I'm interested to know about the performance ...Show All
Christopher Smith Page hits in DX
Hey everyone I’ve been experiencing some severe framerate drops that seem to stem from DX. I built a real simple embedded profiler and started debugging the app to see where these “spikes” were coming from. I wrapped all DX calls within the profiler and sure enough I noticed right away that the spikes were originating from the DX calls. I started up DX Pix to see if that would tell me anything and sure enough I was seeing the drop in fra ...Show All
erzfezsf Height of a picture
I'm starting with DirectX (working with C++), and I'm loading some pictures with the function D3DXCreateTextureFromFile into textures. How can I know the dimensions of the picture I mean the height and the left. Texture.GetSurfaceLevel gives you a surface (there may be mutliple of these if you created mipmaps) Surface.Description gives you information about the surface SurfaceDescription .Height etc giv ...Show All
muammer Creating a HBITMAP from a LPD3DXBUFFER
Creating a HBITMAP from a LPD3DXBUFFER First of all is this possible Below is my current code with the annotated space where this transformation is required. HBITMAP MyClass::ScreenGrab() { //RenderTargetSurface. IDirect3DSurface9* pRenderTargetSurface = NULL; //DestinationTargetSurface IDirect3DSurface9* pDestinationTargetSurface = NULL; //DisplayMode D3DDI ...Show All
Chuck S. 3D game tools
I want to create a simple flying game using DX and C#, what are some of the tools people here use to place objects into world space(to get the coords), my idea is to use a manager I created to manage my resources then once I find a good tool to use to get world coords I will create a class that will tie into my rendering loop that will grid out my world for rendering. thanks for any help or Ideas What you're de ...Show All
biju The costs of methods
In one of Tom Millers books, he recommends knowing the cost of every method you use. So, I'm wondering how to find out what methods cost to call/use. Like changing the RenderState, or even just retrieving the the device reference. Get/Set constructs must be quite cheap... I've never used one, but is that what a profiler is for (Showing where resources go) Thanks all three, Very useful info there. I pulled this from Rico's si ...Show All
Andreaszhang Managed DirectX, C# & and large textures
I have a very simple 3D world which consists of a sphere which is meant to represent the Earth. While a single texture file, like the ones which come with the DirectX SDK are good for when the whole world is being viewed, it is no good viewing it up close. Is there any way to have multiple texture files relating to specific points on a sphere, so that if for example I have a more detailed image of New Zealand, I can overlay that portion of the s ...Show All
WCO draw sprite doesn't work when inside VS (executable works fine)
This may be a known issue, but I haven't been able to find it anywhere... and I'm a good googler =o)... I have this code (directly taken from Microsoft) to draw a simple sprite: public Device device=null; public Microsoft.DirectX.Direct3D.Spr ite sprite=null; public Texture tex=null; public void InitGraphics() { PresentParameters p=new PresentParameters(); p.SwapEffect=SwapEffect.Discar d; p.Windowed=true; device=new Device(0, DeviceType. ...Show All
alexgr disposing of video when using "RenderToTexture"
hi, i am using C#, feb2006 sdk and managed directx 1. i am exploring the Video class, especially the render to texture feature. setting the whole thing up was not much of a problem, except for the total lack of documentation of this class. anyways, after some trial and error i got it work quite nicely. the class seems well designed and - once you know how - is easy to use. my problem is, i haven't found a way of safely disposing of the video obj ...Show All
