Answer Questions
Raju Sreenivasan TextureLoader gone? Alternatives?
Hi, I'm new with DirectX and I'm starting with the December 2005 SDK. It seems like almost every tutorial or sample I've run into uses TextureLoader to retrieve textures. From what I've seen, and I've looked pretty hard, TextureLoader doesn't exist in Microsoft.DirectX.Direct3D anymore contrary to any documentation that I can find. Well, instead I've been using Texture.FromBitmap to load textures, which I guess is okay... But I can't ...Show All
Jan van Casteren Thread safety and graphics device
I am experiencing errors in the form of a locked application when I have a device (with two backbuffers) in one thread which i use for rendering while another thread attempts to lock and read the other backbuffer. I get no error. The application just freezes on the call to getBackBuffer. I attempt to lock buffer 1 while rendering into buffer 0. How is the graphics device working in relation to threads Can you work on a buffer while renderi ...Show All
M Popiela 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
balajikoturu SDK Error when running (Debugging) application
Howdy All, Upfront Info : Windows XP Pro SP2, DirectX 9.0c (w /August SDK) C# 2005 Express IDE I have created a simple little DX app using the MS tutorials and other information that I have found on the internet. All works well until I add a Dialog to the app. private Dialog myDialog = null; myDialog = new Dialog(framework) There are no controls added to the Dialog only the creation of the initial instance. The app compiles without complain ...Show All
Mar G Early Out
Hi. I tried at the "regular" DirectX forums but since there was no answers or even faint ideas I am gonna post my question here. I have a fairly simple shader which loops over a numer of calculations. With ps_3_0 can we exit an loop and the fragment program early on if a certain condition is obtained for( ... ){ if( b > constant ) return Output; } } return Output; An alternative that ...Show All
teacake.the.cat Transformation of a single object
Hi! I just started learning directx and here is the first of probably many newbie questions. Please, be patient :) How can i transform a single object I used Sample Framwork to load a "tiny.x" mesh and created simple triangle. I can rotate them together (by rotating the whole world) but how can i transform only one object I've got also small problem with my "tiny.x" mesh. It's not so tiny after all :) If i move my camera, so i can see ...Show All
ampersandz Render final scene to Texture in Shader [FX Composer]
I want to save the final rendering of my shadowed scene to a texture (see below). I would like to know how to render to an 800x600 texture directly in the shader. I am using the FX Composer from NVIDIA. I would've thought I could simply add the following as the final pass of the shader: pass Bg < string Script = "RenderColorTarget0=TexFinal;" "RenderDepthStencilTarget=TexFinalDepthMap;" "RenderPort=;&quo ...Show All
Iza SoftwareVertexProcessing is leaving some part empty
I have been banging my head on the wall over my codee which doesn't seem to be working fully. I am displaying Sprite's, text, backgrounds and you name it (all 2D) on the screen, the only thing that is not working is the text. The code works on some computer and others not, which was a really big mystery to me. After some serious debug of each and every line, I found out that the code is doing it thing, there was nothing wrong with it (I am displ ...Show All
Ashish757 Miller & Weller
Now that our David has toddled off to Microsoft is there a possibility of a joint book between Miller and Weller I certainly hope so, an awesome combination! Well, the "Weller" half has been at Microsoft for over 3 years now, so I'm not sure how I've "toddled off" :-) To be more specific though, I doubt Tom and I will jointly collaborate on a book, because I hate Tom thoroughly...... just kidding :-)&nbs ...Show All
Abbott Unmanaged directX and .net windows form
I have written (with a pointer from you lot here - thanks) a visualisation program in unmanaged C++ DirectX. Everything works fine, however I need to be able to change and edit parameters of the model with the usual text input boxes and track bar, as well as haveing a menu with different options. I have written a little windows form program that does this but wihout the directx stuff. I would like to add my DirectX work into a window in the f ...Show All
majkeli How can I learn working with DirectX?
Hello, How can I learn working with DirectX in C#. Knows somebody articels about beginning with DirectX DIII thks ...Show All
Turbosolo Why so many big structures in managed directx?
I was told to ask this question here to get an answer: struct Caps 304 bytes struct Material 68 bytes ... These big structures are used as properties and passed here and there. Isn't this a big performance penalty I checked the generated asm code, and it seems these's no optimization to remove the overhead. So anyone knows why Just to add to what Tom has said... You really need to look at some instrumentation ...Show All
tmorton Questions about release date and VCS
Q1 : As far as I have understand, current version of XNA Build isn't the final one. When it will be released, approximately at least Q2 : I haven't found any mentions about version control systems (even SourceSafe) exploring MC2 XNA-sample, maybe I was inattentive. In what manner it will be possible to incorporate a VCS into XNA Thank you. Q1: Correct, what is released now is the March 2006 Community Technol ...Show All
Apolo H Problem with lights
I've created a model with 3ds max 5 and I've exported to .x fileformat. I used Manged DirectX to load the file and render it, but all the materials are rendered in white color. Here is the C# code I use to load the meses, the method I use to load is called LoadMesh and the one which renders them is called DrawObject. Can somebody help me thanks: /* Author: Eduardo Fonseca B. * Create on: 23.October 2005 * <comments> ...Show All
Crof Lighting Question/Problem
I am attempting to light a square. The square is made up of 4 vertices having a position and a normal. The normal for all the vertices is pointing towards the user(0.0f, 0.0f, -1.0f). I have applied a material with the diffuse and ambient color set to Red. I am using a directional light which has a direction of (0.0f, 0.0f, 1.0f). If I set the diffuse color to White, the square shows up Red as I would expect.&nb ...Show All
