learnerplates's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Terrain?
Anyone know a good way to make dynamic terrain and quickly at that I can read a black and white image file and read the grayscale and calculate a heightmap but it doesn't seem efficient to me or easily changable (if thats a word). :) Any help is always appreciated. Thanks! Yes, cutting your terrain up into tiles is a good start, I cut my heightmap up into chunks of 33x33 vertices, and I keep these tiles in a quadtree. I can then cull large portions of the terrain tiles based on the view frustum, but again this is just a size I have chosen you might want your tiles to be bigger than this. If you want the terrain chunks to load from disk (I think the term is terrain paging but not sure) as the use ...Show All
Visual Studio Team System Associating a test with a requirement
What a concept. Being able to tell what requirement a particular test validates. Wouldn't it be nice to tell what the test to requirement coverage ratio is Well, I'm going to try and hack my way through it. What I'll need to do is get the unique identifier information out of the test. How do I go about that I know I can get into the tests XML file and read out the properties but I haven't been able to locate an API to do it programatically yet. Can someone point me in the right direction This is where the uniqe id is in the tests file: - < id type =" Microsoft.VisualStudio.TestTools.Common.TestId " > < id type =" System.Guid " > 7521d7ef-4ac7-4bda-a5a2-67e521b1faae < ...Show All
SQL Server SP2!
Dear friends in my previous post i was told that analysis services 2005 does not suport "custom roll up" and hence misrcosoft had introduced 2 new functions "last non empty and first non empty" for semi additive measures. But whenever im trying to bring the semi additive measure in the browser window of my cube, the cube gets hung and i have to finally close it w/o getting any analysis....please help To clarify u can take the example of the measure "closing stock" where u want that across time dimesnion it should alwaz return the last member at the year,half year,quarter,month and day level while across other dimensions like product,customer etc it should be the normal aggregation. I have the exact same ...Show All
Software Development for Windows Vista filter compilation under vista issue
Hi all, I am trying to compile a directshow in-trans filter using the VS2005 over vista. This filter was compiled fine under VS2005 over XP . It does not compile giving the following output: Command Lines Creating temporary file "d:\MediaCam 1.0\mCam\New_MD\Release\RSP0000028923592.rsp" with contents [ /O2 /I "D:\MediaCam 1.0\mCam\Logger" /I "C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" /I "C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\BaseClasses" /D "WIN32" /D "NDEBUG" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /FD /EHsc ...Show All
Visual Studio Indentation in code-tag in included xml-tag
If I want to use a <code>-tag containing indentation in an Xml documented member, I can do it like this: /// <remarks: /// <code> /// <MyKey > /// <registrations default="<i>MyDefaultRegistration</i>" > /// < /MyKey> /// </remarks> This works fine. However, I have some sample code that I need to use a couple of times so I wanted to copy this sample code to a separate Xml-document and then reference this sample code using the <include>-tag. Like this: /// <include file='ApplicationDoc.xml' path='docs/member[@name="ApplicationLogon"]/*'/> The contents of my xml-document looks like this: < ...Show All
Visual Studio Express Editions Database search
This has probably been asked and answered before but here goes. I have set up a login for my application and need to serach my database for username/password combination. Neither of which is the primary key. This is the code I have come upi with so far but it doesn't work! I have used username/passwords that are in the database so it should work. Please can anyone help me Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim user As String = Me .UserName.Text Dim password As String = Me .Password.Text If user = "Admin" Then ElseIf password = "pass" Then Dim myAdminMainForm As New MainForm ...Show All
Smart Device Development resizing message box
Is there a way to resize a message box My text string kinda long and the message box just wraps it automatically. It would be nice to make my text display in one line. Any suggestion Thank you donkaiser wrote: Is there a way to resize a message box My text string kinda long and the message box just wraps it automatically. It would be nice to make my text display in one line. Any suggestion Thank you MessageBox's use a fairly unflexible sizing. If you want something more complex you usually have to implement a new form. ...Show All
Visual Basic Text color
Hi, I have a little sub here to add a line of text to a richtextbox and set the color of the first line. It works fine for the first line, but for some reason after setting the color of the first line, it sets the rest of the text in the textbox to the color it used for the first line the previous time the sub was called (which obviously isn't what it should be). Here's the sub (oType is an enum but I don't think that'll be the problem) well that idea goes out the Window! :-) I'll see what else I can come up with ,reading the docs it should do it but think im missing something edit: the behaviour I have seen is that when you select the text and color it, then unselect the text and set the selectioncolor to something else, then on th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. (Clip) Plane transform?
Hi all -- I'm porting a water shader to XNA, but first I need to get my clip planes right. I noticed we still need to unproject the plane from camera space to world space, but I cannot find a method that actually allows to transform a plane! Like the MDX Plane.Transform method used to do. I tried to transform 3 world points with the inverse of my world*view*proj matrix, and create a plane including these points, but no luck. There was a bug introduced into the Beta 2 Plane(Vector3,Vector3,Vector3) constructor. It doesn't correctly initialize the plane, so you'll need to calculate it yourself. Here's some code for how I do (you may need to change the order of the vertices for your own program): public static void CreatePlane(re ...Show All
Smart Device Development RFID Reader Project
Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. I'm doing this just to ensure that the code works and when i'm done with this i will modify the code for an iPAQ (the Reader works on COM7 on iPAQ). The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read ...Show All
Software Development for Windows Vista Acessing Functions in a Filter
Hi Guys I'm trying to get Informations out of a Filter I have programmed. In a Application I would like to get Information out of this Filter. I built the filtergraph manually and the Filter runs perfectly. But how can I acces Methods or Variables in the Filter My Idea was to give the Filter a function pointer and to set the function after instantiation. But this of course doesn't work since I cannot access the functionpointer via the IBaseFilter object.. I would be very thankfull for help kind regards ...Show All
Visual C# Code alignment lost
I prefer to have my code aligned in such a way that a straight-forward edge detection results. For example (from a .Designer.cs file): private System.Windows.Forms. Label prefix_LAB; private System.Windows.Forms. TextBox prefix_TBX; private System.Windows.Forms. Button retrieve_BTN; private System.Windows.Forms. Label user_LAB; private System.Windows.Forms. TextBox user_TBX; However, if I cut and paste the code, I obtain private System.Windows.Forms. Label prefix_LAB; private System.Windows.Forms. TextBox prefix_TBX; private System.Windows.Forms. Button retrieve_BTN; private System.Windows.Forms. Label user_LAB; private System.Windows.Forms. TextBox user_TBX; Problem: I want to keep the automat ...Show All
Software Development for Windows Vista Problem with maximized MDI child window
I have a straightforward MDI application with four MDI child windows. The MDI client window fills the entire client area of the application's top-level window. Everything works correctly on Vista except in this one circumstance: If the application's top-level window is maximized *and* one of the child windows is maximized, the child window does not fill the width of the MDI client window (and hence of the screen). There is a strip (perhaps 10 or 20 pixels wide) down the right-hand side where the previous contents of the MDI client area can be seen - it is not repainted. If the top-level window is not maximized all is well: the maximized child window extends to the right-hand edge. If the top-level window is mazimized but the client w ...Show All
.NET Development JOIN in select command
If my SelectCommand points to query containing as follows: SELECT * FROM Contact INNER JOIN Company_Contact ON Contact.contact_id = Company_Contact.contact_id WHERE (Company_Contact.company_id = @companyid) how do I write my UpdateCommand, InsertCommand, and DeleteCommand objects to update the two different tables contained in the join query Is there a way I can update both the tabels using a single command and single dataadapter I'm not quite sure what you're shooting for here exactly but I'll take stab at it: 1. You can't update, insert, or delete a joined table 2. You can use subqueries to determine the appropriate record to update, insert, or delete. DECLARE @FirstName varchar(25 ...Show All
Visual C# simple streamwriter question
This is what i have so far: private void radioButton9_CheckedChanged(object sender, EventArgs e) { devicesConfigurationFile_ = @".\Devices.xml"; using (StreamWriter sw = new StreamWriter(@".\Devices.xml")) { messageNode_ = "//DEVICES/DEVICE_LIST/MESSAGE_LIST_RECEIVE/MESSAGE/Login"; XMLDocNodes_ = XMLDoc_.SelectNodes(messageNode_ + "/Login"); sw.Write("no"); } Its writing a new text file every time the button is clicked when i just want it to append an existing file after parsing through to the correct attribute. The file it will be parsing through is XML. Any help would ...Show All
