Answer Questions
Martin Odhelius Text in texture with effect
I am currently making a component for a larger graphical system. It is rendering text into a texture for display on some 3d object. I am currently using drawText, which works just fine, though there is perhaps a better/faster way of doing it My question is about effects. If I want the text to have a blurry outline, i imagined doing it like this render the text to a texture T1, being the render target select T1 as input texture and change to a new texture T2 being the render target Select a pixelshader and then render a transformed and projected quad, with same size as T1 and T2, using T1. The pixelshader shall then output (to T2) the mean of a 9x9 area surrounding the pixel in T1. This gives a blurred text. Next I ...Show All
TannerH 3rd Series of 3D XNA Tutorials finished: HLSL intro
Hi all- This 3rd series of XNA Tutorials was already online this weekend, I checked once more to make sure all code on the site compiles without errors. This 3rd series was written to be a introduction to HLSL, starting from zero, and consists of 18 chapters. The first chapter actually shows no code, it only positions HLSL in the big picture. For this series, I've chosen to create a scene shadowed by the Shadow Map algorithm to introduce the various concepts of HLSL. As you can see in the outline of this series, we start with basic chapters, which increase in difficulty throughout the series: Creating your own vertex format Creating a first vertex shader and pixel shader, and playing around wi ...Show All
arse Game crash
Hi I am making my first in XNA and i have a problem. When i run my game in debug mode, it all works fine, but when i try to build the game, and run it from the executabel in the Release folder, it crashes. Whats wrong is it because XNA is in the beta stage hmm.. I am using the refferense "microsoft.VisualBasic" and when i remove it, my game does not chrash :S It sais that my game has encountered an error, and asks me if i want to send an error report Why are you refrencing VB in your game project Umm, maybe if you tell us what the error you're getting is I'm assuming it doesn't just shut down without saying anything. ...Show All
ElliotHC Xbox 360 Official Dev Kit vs. "the XNA thing"
Here goes, The official dev kits intergrate within Visual Studio and compile on PC and send the executable to the machine and launch it via remote debugging. This also allows for breakpoints, steping thru code, etc. Will this new XNA subscription and Game Studio Express be similar to this idea I'm dreading things like relying on Windows support and burning it to a CD to play it on the 360. (For example) Egomancer wrote: I understood that you pay 99$ for 1 year, they make you a FTP account on the XBOX live site or another site where you upload the build. You connect with your XBOX360 there and you dload the game and play it. If I understood wrong please correct me. According to the FAQ: ...Show All
deen Syncing Present() to vblanks
I'm currently porting my 3D engine to Direct3D 10 from some old Direct3D 9 code. I'd like to fix the maximum buffer swap rate to the refresh rate of the monitor, so that Present() blocks and eases up CPU usage when it exceeds this. The documentation suggests that Present(1, 0) should work: SyncInterval [in] Specifies the granularity with which the presentation synchronizes with the vblank of the target IDXGIOutput. If the target window straddles more than one IDXGIOutput, the synchronization will be performed to the IDXGIOutput that contains the largest subrectangle of the target window's client area. Valid values are: The call may be synchronising to the vblank but Present() certainly isn't blocking for the duration. All of the SDK ...Show All
Richard Watts Using DirectX9.0c and Visual C++ express: errors in building a full screen
Windows XP Home Edition, SP2. Visual C++ express, DirectX SDK (oct. 2006), Visual Studio and platform SDK (SPK1). Updated the different files. Successfully made a window in Win32 application. And now have compiling errors building a full-screen window with DirectX. What I did: - in: Project - MyThirdWindow - Property pages _ Linker - Input: I added d3dx9.lib and d3d9.lib - in : Tools - Options - Project and Solutions - VC++ Directories , I made sure to add : in Executable files: $(DXSK_DIR)Utilities\Bin\x86 in Include Files: $(DXSDK_DIR)include in Library Files: $(DXSDK_DIR)lib\86 I've been working on this since las night (started with 26 errors narrowed down to 9 (+ 1 warning)! Looking for hints ! (new to ...Show All
mwoehlke Compiling Errors in FX?
I came to an error when compiling. And the error is an internal error in the fx file.The error description is like this: "d:\Program Files\NVIDIA Corporation\SDK 9.5\MEDIA\programs\HLSL_VideoFilter\VideoFilter.fx(618,2): internal error: invalid access of unbound variable" And the error code lies here: texColor0 = tex2D( YUVSampler, VSOUT.TexCoord0 ); Later I compiled .fx file in FX composer, it's just ok. Can anyone tell me where this internal error comes After rewritting the codes, simply change the varialbe types in the fx file, I finally solved those compiling errors! Thanks for everyone's help! It doesn't sound right that you should be seeing an internal error. Which SDK are you usi ...Show All
Hans L Any DirectShow equivelant to XNA?
I'm curious if there's anything similar to DirectShow in XNA so I can render some various cut scenes for my project Thanks... On the PC see this - http://www.thezbuffer.com/articles/364.aspx On the xbox you are out of luck. Not yet. ...Show All
smithalovesdotnet Mouse pointer changed event?
Hello Sorry for the ambigous and silly title. Is there any event that is triggered when the mouse pointer has changed (that is, the actual graphic of the mouse pointer) I am guessing such an event may exist in the Win32 API or the DirectX API. I understand this post may be slightly off-topic, but I found this forum most suitable. No. DirectX settings that an app change are specific to that app only and don't affect other processes. So DX is off question. For the Win32 API, there's also no such a functionality exposed directly... ...Show All
redhanz Designer Property collections
I want to create a menu game component like the one in Mitch Walker's video (http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx) on the XNA team blog. I got a hardcoded menu working but how do I make it that the developer can add menu items from the property window in Visual Studio like in the video Hi , Nice code by the way, I have converted it to vb.net, I have also added some code to allow keyboard input a shown Below '*********************************************************** '*Do keyboard '*********************************************************** Dim keyboardState As Input.KeyboardState = Keyboard.GetState() If Me .Enabled Then If ( Not Me .downpressed AndAlso (key ...Show All
CHolmes Direction vector from a matrix or quaternion
Hi all, A have a matrix and I need to specify a direction vector from it... How can I do Thanks Aurelien Because I'm importing a scene from 3DSMax with the plugin Collada. The origin direction vector in 3DS Max is (0, 0, -1) with a Z up axis and I would like an origin direction vector at (0, 0, 1) with a Y up axis... When I read a position or a translation, it is easy to replace a axis coord by an other... but when I read quaternion values (x, y, z, w), how can I make the transposition to my coords system with my origin coord Thanks, Aurelien In general, quaternions do not need to be translated. Something that is rotated X degrees in one coor ...Show All
UnknownScripter Designer support for Vector2, Color?
Hi, I was wondering if anyone can answer why Vector2/Color properties are not editable in the property grid, when exposing them in a component Is it just not available yet, this being beta 1 and all, or am I missing some step I have created a simple Vector2 type converter so that you at least have a little designer support. http://www.kinlan.co.uk/2006/09/xna-vector2-type-converter.html Kind Regards, Paul Kinlan It's just not supported in the beta. We'll get them editing correctly for RTM. ...Show All
Nkomo Sun effect
Hello, this is my first post. I'm working on my first project in XNA. Is it possible to create with this beta relase an effect that looks like sun screenshot of my project: link Sorry for my english. :D.... I know, I know.... stupid question, but I'm such a lama. hmm... some ball on the screen (sun ) that shines until the land, that's what I want :D. Is it possible to make that lighting effect with BasicEffect class There are typically several different parts of doing a convincing sun in a 3D game: You need to render your objects with lighting, so they are brighter on the side that faces the sun. You probably also want to draw some kind of glow and/or lensflare to represent the sun itself. And of course you ...Show All
MSJ17 Getting started example needed
How do I draw a 2d box on the screen Or even better a 2d circle. I guess I should use DrawPrimitives but a little example would be nice.. After that I would like to draw some text, do I need to create a bitmapped font for that and draw using sprites / Erik Since the API does not yet support a simple static method like DrawShapes.Line(point A, point B), what about drawing a basic sprite with the proper rotation. mySpriteBatch.Draw(mySprite, picBox, picBox, Color .Red, rotationRad, vOrig, SpriteEffects .None, 0); All you need is a tiny bit of trigonomic magic to calculate the rotation and the dimensions of your rectangle. This completely avoids the need for vertic ...Show All
_target_ Playing (avi) video's in XNA?
I would like to play a little into-video before my game starts, its simple and small and it's an avi (though I could easily change its format), how do I play it with XNA MDX used to have AudioVideo playback, but I can't find that in XNA. my thought would be, if you want it to work on xbox, you're going to have to write your own content importer for the avi file itself. then manually extract each frame of the avi and sync up your framerate to match the framerate of the avi, playing one frame of avi per game frame. that's the abstract thought i have about it... though in practice, i haven't the foggiest! There isn't anything in XNA to do video at the moment. Joel, ...Show All
