Answer Questions
pfabrie buf.Write(byte[] buffer): Can't convert to byte[]
Hi. I'm writing a code that houses a sky class for showing a skycube. The skyV is a PositionTextured data type and PositionTextured struct is in a DirectX.Direct3D.CustomVertex namespace in the Managed DirectX/.net 2.0. The problem is, I can't write the vertex data to the GraphicsBuffer which is renamed from GraphicsStream in MDX/.net 1.1. Here's the code: Questions about MDX 2.0 should be asked in the beta newsgroups. See ht ...Show All
jimc5240 HLSL: how to use *.Fx of FX Composer in DX ?
I use FX Composer to get a *.FX file But now I want to use it in DX I try to load it with the BasicHLSL example but it crash... It doesn't work in EffectEdit, even when I add a Mesh to it It doesn't do an error, but it doesn't apply the material How do people at MS use those tools What is the best sample in the SDK to use to make the *.FX file of FX composer to work Any idea what I have to change in the file to make it work ...Show All
Alejandro-Ramirez 3DS Max 8 & .X
Hi. I have downloaded newest DX SDK (December update) but the included .X Exproter plug-in is only for max 7. All models are saved in max 8 format, so i got problems opening them with max 7 ( witch has prefered .x exporter plugin ), so i'm in dead-end. What you would suggest me to do I dont want to remodel all from the begining in max 7... I havn't tried as I do not have Max 8, but in previous versions you were able to expo ...Show All
MCMICKS frames per second benchmark for games
Hello all, I'm John, a newbie to real-world apllication development. My experience so far has been in the classroom working with C/C++, no DirectX knowledge yet. I would l ike to write a program that will allow users to benchmark games by analyzing frames per second (FPS). My main hurdle at this point is retrieving the FPS information from the games. I believe the answer lies in un ...Show All
Telexer Unmanaged DirectX to solve dependancies?
Hi, I'm back again! My application is now working fine and converting textures as it should, but I've just sent it to one of the texture guys to give it a run through and it crashes out with an error of "File or assembly name Microsoft.DirectX.Direct3D, or one of its dependecies, was not found." As I've come to understand it, that means that the DirectX install that they have isn't enough and that the also need to install the MDX package. Consid ...Show All
dev_questions MechCommander 2 Fix Guide
For anyone who is interested in the MechCommander 2 stuff I just wanted to let you know I've posted a guide with all the bugs we've found in our Shared Source Release and how to fix them. You can find the guide at: http://blogs.msdn.com/mklucher/articles/629796.aspx If you have any comments please let me know! DS3DSoundChannel::SetPan (in as of yet the unreleased src for GameOS): The safety check if v is below -1 Seems to me the ...Show All
Lenin Easy way to Display a data grid in DirectX
I'm a directX newbie, but I have a table of values (user name, nationality, high score, etc..) that I would like to display. Basically a high scores type page. Is there an easy way to do this in DirectX (something akin to a data grid control) or do I need to create something from scratch If I need to roll my own, are there any suggestions on how to approach it Thanks. I don't really kn ...Show All
llorrac Samples of human models?
Is there a web site where we can download samples of human models in X format for learning purposes I experimented with Tiny from the DirectX samples. It's a great sample but I was looking for something simpler ( ) such as the models used in "Rise of Nations". Thanks in advance for your help! Excellent. Thanks a million! You might want to look at places like www.3d ...Show All
pershing Transparency In DrectX
Hi everyone I am a newbie . I have a few questions regarding DirectX and GDI+. Here we go. Description: The application i am developing is using C# .NET, there is a main "Form" on which there are controls i.e. buttons etc. Then, there is a child form on which i draw lines and circles (using drawArc). I have tested both DirectX and GDI+. My requirement is to update the screen after like every 10-20milliseconds. Another requirement is that the c ...Show All
dh Loading .X meshes
How do you load a DX8 .x mesh file My 3D modelling program (Blender) exports to DX8 format or just .X. I don't know what the difference is. I tried it with the same code as for one of the meshes that came with the SDK, but it just gives an error. The model is a simple cube. I am using the february SDK. I tried using the Meshviewer but it can't open them either, so I guess its just not a very good export script. I tri ...Show All
PriyaKutty DirectInput not recognizing wired Xbox 360 controller for Force Feedback
I want to implement force feedback in a game I'm working on. The controller is reocignized fine without checking for force feedback. So if I write... //create force feedback capable joystick device. foreach(DeviceInstance di in Manager.GetDevices( DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly)) { joystick = new Device(di.InstanceGuid); break; } if (joystick == null) { //Throw exception if joystick not found. throw new Exception(& ...Show All
CetinBasoz How to create a new Texture from an existent Texture?
How to create a new Texture from an existent Texture I have a bitmap file, first I created a Texture from a bitmap file by using function D3DXCreateTextureFromFile(). Now I want to create an another Texture from the existent Texture, and the new Texture's content is the existent one's bitmap but be rotated 15 degrees. For Example: the existent Textures have a horizontal line "-" on it's center , from the old Textures I can create another thre ...Show All
RobinSed Hey Everyone
Hello every1, i remember playing my snes :P it was a damn fun game console for sure though. i remember a game called earthbound best. it was a great game and it looks simple enough to make with todays game dev tools. i thought maybe it would b possible to make a online version of this game... would this be possible also wat about legal issues Well, I don't think any lawyers participate in these forums, but it's pretty safe to say that if ...Show All
bucketofsquid D3d
Hi everyone, i'm making my arcade 2d engine using d3d9 sprites, particles ditto. I have a problem with creating the device. First of all i tried all the ways i knew to make the hWnd handler which i guess is the problem. Any ways here's my code for creating the device. /* dx9.pD3D is basically our d3d object d3dpp is presentation parameters and dx9.pd3dDevice is our d3ddevice object.*/ if( FAILED( dx9.pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3 ...Show All
J M B Most efficient way to draw a colored square (no, really!)
Yeah I know, this sounds really lame... I've actually got textures, input, sound, physics and a bunch of other stuff working, but I have to conclude that the method I'm using to draw a starkly colored square is murderously inefficient. I can add 50 textured squares to my scene and lose maybe 40 frames per second... but adding 20 colored squares to my scene kills about 600 frames per second... from a human standpoint, this makes no sense, sinc ...Show All
