Answer Questions
BubbaRichard Help compile pixel shader from fragments right !
I wrote fragment: // texture Normals; textureCUBE CubeMap; sampler NormalSampler : register(s0); samplerCUBE s_CUBE : register(s3); // s_CUBE must use sampler register s3 void someFunc (float2 fNormalTex : TEXCOORD0,float4 fSpecTex[3] : TEXCOORD1, out float4 fColor : COLOR) { float4 fNormCol = tex2D(NormalSampler, fNormalTex); float3 norm; norm.x = dot ( fSpecTex[0].xyz, fNormCol.xyz * 2 - 1 ); norm.y = d ...Show All
SteveLe DXUT and D3DXLoadMeshFromX
Hi ive used the DXUTIL to initialise my prog and load an animated X file(Tiny.X) but when i call D3DXLoadMeshFromX to load my map mesh it fails. help ... Sorry i meant i have december 2005 How about some more detail What is the error you get What SDK version are you loading Etc. Please read this before posting more questions: http://forums.microsoft.com/MSDN/ShowPo ...Show All
Yoav Sion 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
coderkidd Taking hi-res screenshots.
I'm currently using the following code to take screenshots: Surface backbuffer = device.GetBackBuffer(0, 0, BackBufferType.Mono); SurfaceLoader.Save("Screenshot.bmp", ImageFileFormat.Bmp, backbuffer); backbuffer.Dispose(); The problem is it only takes screenshots that are the same size as the windows size. Does anyone know if it is possible to make my app take screenshots of an arbitrary size irrespective of the window size ...Show All
Kaloyan Georgiev Strange Texture object constructor exception in Managed DirectX
Hello! I have recently started programming DirectX, and I have chosen to used Managed DirectX 2.0 to create my application. Everything went all right until I tried to create a texture object to draw as a sprite. I had a Bitmap loaded from a 32bit PNG, and when the execution flow encounters the statement Texture deviceTexture = new Texture(DxDevice, bmp , Usage.None, Pool.Default); an InvalidCallException with "Error in the applicat ...Show All
Torbjorn do you have to use createwindow to create the main directx window? or does the directx api have its own way?
i am starting to look at directx , do i have to use createwindow to make the window or does directx api come with its own way to create a window ,, Pieter Germishuys wrote: Yep, You have to create a window and then pass it's handle to the method that will create the device. In c++ it will look something like this pDirect3d->CreateDevice(...Window->hWnd...) In Managed DirectX you pass the handle to the constructor of the ...Show All
Jamie Eckman Managed DirectX in C# Forms - differences between SDK
Hi - this is a repost since my previous html one was garbaged... anyway I've been trying to embed DirectX controls into a C# winforms application. However, there seems to be a major problem getting all the forms controls to paint... I thought it was something I was doing wrong, but then tried using the old Summer 2003 API and it all worked fine Basically, I create a UserControl that handles all my rendering code, then add that to a forms ...Show All
Shyam Vaidya Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. ...Show All
nsLns Broken Link to MechCommander 2 Shared Source Release
Microsoft XNA Build March 2006 Community Technology Preview featured at http://www.microsoft.com/downloads/details.aspx FamilyID=868fe562-5ded-4bb1-8648-708d3481bda3&DisplayLang=en has a link to the MechCommander 2 Shared Source Release download. The link is http://www.microsoft.com/downloads/info.aspx na=40&p=2&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=868fe562-5ded-4bb1-8648-708d3481bda3&u=http%3a%2f%2fgo.microso ...Show All
RichardWu 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; On the other hand, w ...Show All
JasonDWilson Loading a *&#@ing texture... (C#)
I don't get it. I'm trying to make a texture from a file. The book I have says to use TextureLoader, but that doesn't exist anymore. I read that you can make textures using [code]Texture texture = new Texture(stuff here);[/code] But there's nine different ways to fill the constructor, and half of them I can't even get to compile. I'm so lost. *cries* Thanks a zillion! Off th ...Show All
Barry Kwok directx error
i know c++ pretty well and i got started into directx. im using dev-c++ for it and when i compile the following code i get a: invalid conversion from `void*' to `HINSTANCE__*' error. wat does this mean and how do i fix it other people got the code to work so wat did i leave out thnx ill do that That's a lot of code. Which line is your error in And why can't you use VC2003 ( y ...Show All
Gosovic Beginning Managed DirectX (C#): Manager.Adapters.Default
I just installed the December 2005 DirectX SDK, and am using Visual Studio 2005. I have a reference to C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\2.0.0.0_x86\Microsoft.DirectX.dll in my project. The problem: I've seen numerous tutorials doing this: int adapterOrdinal = Manager.Adapters.Default.Adapter; Which results in this compile error: Static member 'Microsoft.DirectX.Direct3D.AdapterCollection.Default.get' cannot be accessed ...Show All
SanderV DirectX 10 shader compiler?
Hello, Does DX10 have comman line shader compiler like DX9 fxc Thx, You might need to ask this question in the Beta newsgroups for DX10, as the system is still in beta, some of the tools and our systems may not have been released. But the guys in the beta groups will know. You can sign up for the Beta system at http://msdn.microsoft.com/directx/beta , this is a public beta and open ...Show All
R Zimmerman Rookie question w/ Index Buffers + Vertex Buffers
Hi, I'm having a real tough time with Index Buffers/Vertex Buffers. A book I'm reading wants me to draw a kind of large (for me, anyway!) scene mesh using Index Buffers and Vertex Buffers. It always comes out deeply Picasso-ed :[ So I thought I'd try to scale it down to a box and figure out what I was doing wrong with a simpler mesh, but even my Box comes out picasso-ed when I try to use buffers from the mesh itself. In the code sample below, th ...Show All
