Ather.'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Solution to Finding Skin Weight Indexes
DELETED BECAUSE BETTER SOLUTION WAS FOUND Ok, I got vertex blending working. Their indexing system is quite simple - int curIndex = 0; private void GetBoneIndices( NodeContent root) { if (root.Name != null ) boneIndices.Add(root.Name, curIndex); curIndex++; foreach ( NodeContent c in root.Children) GetBoneIndices(c); } ^^ that creates a bone-name/bone-index dictionary. Its nothing but a simple preorder traversal (just like you said). I deleted my hack above so as to not mislead people into a more difficult solution. Sometimes I overlook ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture Rotation Problems
I am working on a sample program to test an idea for a top-down shooter. The "landscape" consists of a large texture that should be movable along the x and y axes and should rotate around the "soldier", whose texture is fixed to the viewport. Seems fairly simple, but either I'm hopeless at vector maths or there is some quirk of the XNA framework that I don't understand. The "landscape" texture rotates around some other point (which seems to move relative to the axis directional controls), and the directional controls go weird after playing with the rotation for awhile. They seem to start following the axes of the texture rather than the viewport. Also, the texture initially appears in the wrong place (shoul ...Show All
Visual Studio how to use process control in vb.net
Please give me detail description about process control in vb.net P.Veerakondalu Hi, There is a nice sample and supporting doc for using the Process component here: http://msdn2.microsoft.com/en-us/library/fy81t8yk.aspx Hope this helps. Best, Paul PS: I'm moving this to the VB General forum. This is probably a better place for questions like this. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any 3D tutorials for XNA?
Hi, does anyone know where can I find any tutorials, help etc. for developing 3D games with XNA I've played with 2D sprites, its all nice, now I want to move on :) I would like to be able to create simple things like terrain, skybox , move around map etc. Is this possible or I have to wait for beta2 / final release Thanks, ErnisJ You're probably trying to make you DirectX code work One of the main differences between MDX and XNA is that you need to load an effect that contains a vertex and pixel shader before you can draw anything. This effect file must be written in HLSL, but you can also use the BasicEffect class, which provides basic functionality. I've written a series of XNA tutorials that do ex ...Show All
Windows Forms Creating new forms using threads, and keeping then open after thread exit
Hi there! I currently have a program that creates and displays a new form based upon a message sent by another application. The hierarchy of the threads are as follows: Main Application -> CommThread -> FormCreationThread The problem is that while the CommThread is a continuous thread, the FormCreationThread is temporary; once it creates the new forms, it ends. Because of that, once the FormCreationThread ends, it takes my new form with it. If I set the FormCreationThread to sleep or suspend after it creates the form, it also blocks the form from being used. What I'd like to do is have a way to create a new form from the FormCreationThread, and have it still alive after the thread itself ends. Any ideas on what I can do H ...Show All
SQL Server MAJOR PROBLEM: New SQL2005 installation performance problem.
We are experiencing a major issue since upgrading from SQL2000 to SQL2005 over the weekend. Starting today, it appears that the performance of SQLServer reaches a limit every 15 minutes. Our configuration is as follows: Window Server 2K3 x64 Enterprise SQLServer 2005 x64 Enterprise HP DL585 with 4 dual core Opterons 32 GB of RAM 2 TB EMC SAN At first, I thought there was a memory pressure problem, since I had the default max memory set. After changing the max memory to only 25 GB (out of 32 available), the issue went away temporarily. However, after 15-20 minutes, the number of batches/sec dropped in half, and remained after half until I changed the max memory setting again. Over the course of the day, I was able to fi ...Show All
Windows Forms an item with the same key has already been added
I am trying to change the BackgroundImage property of a UserControl but when I try to do that from properties window VS throws "an item with the same key has already been added" exception. I did that several times in the same project. But it started to complain now. how can I solve that... Actually there is no code that I can send. But let me clearly explain it. I am right clicking to the project namespace and I say new item. Then I am selecting user control. Then it adds UserControl1.cs to the solution explorer. In design window (without touching code) I am trying to change BackgroundImage property. But it throws an item with the same key has already been added. I still couldn't solve it. ...Show All
SQL Server SQL Server 2005 schema
A database was created in SQL 2000. We are going to move to sql 2005. So I attached a database to SQL 2005 and now I have a problem with name resolution. When I worked with SQL 2000 I did not put my schema's name before table name (select * from table1). The schema's name is my user name (IQA) and by default the schema name is a name of user who loged in. (in 2000) Here is a problem with SQL 2005. The schema's name is still IQA. But I need to do select * from IQA.table1. I created IQA login and IQA user is an onwer my IQA schema but I still can not do a select without schema name. I need to resolve this because VB.Net code has all select statement without schema's name. Need help!!! Apparently ...Show All
Visual C++ Custom Scripting Library fails registration for debug build but not release
Hello, I am trying to convert a custom lib from VC 7 to VC 8 and am getting an error in a custom build step where the .dll gets registered using regserv32. The error is "The application failed to start because the application configuration is incorrect". I have read the various threads about the msvc*80d.dll not being found and tried the different solutions for this issue. I used the dependency walker to confirm that these are the problem dll's. I have had no luck in resolving this issue. The manifest file being generated is as follows: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> < ...Show All
Visual Studio Generate C# 2005 project files
Hello, I am looking forward to manage some C# projects programatically. Precisely, I am generating C# files and I want them to be added and removed from their projects on-the-fly. It would be very useful to add VSS checkin and checkout compatibility in the process. To achieve this, I think have to be able to at least generate C# projects as well. What is the most efficient way to write these files Is VS 2005 SDK suitable for that task It would be very nice if I could use a method that offers maximal compatibility with future versions of Visual Studio. Thanks! Marc Lacoursiere RooSoft Computing Marc, MSBuild ships with an object model that is designed to do exactly this. You d ...Show All
Software Development for Windows Vista Problem Changing Capture Filter Frame Rate using IAMStreamConfig
Changing Capture Filter frame rate using IAMStreamConfig doesn't work. Even if IAMStreamConfig.SetFormat returns S_OK the frame rate ramains unchanged. If i'am using Capture Pin Property Page frame rate changes are persistent. Any idea why IAMStreamConfig.SetFormat doesn't work I realise this question was answered a long time ago for the actual poster, but, as I've come back to this thread via Google so many times while looking for how to get the maximum and minimum frame rates for a capture device myself, here's a few notes to help other DirectShow novices: Firstly you'll need to get your device, using ICreateDevEnum, this can be done fairly easily. Next, enumerate through the available pins using ...Show All
Visual Basic IDE annoyances
While i absolutely love the new visual studio, there are a couple of things that drive me nuts!!! when i right click on a symbol in code (such as a variable or procedure name), i can choose "Definition" and jump to that location. unfortunately, the "Last Position" menu item (that was available in VB6) was removed so now i cannot jump back to where i was previously. when i want to save my file with a different name, i would normally choose "File->SaveAs". this has now been changed to include the file name, which i find to be reallly annoying, especially since i will not be using the same name. opening visual studio is really quick, but closing visual studio takes forever. opening the design (GUI) view takes forever. switch ...Show All
Audio and Video Development smallest time for the property "animateProperty"
Hi !!!!!! Does anybody know if one second its smallest time for the property "animateProperty" . Ex: document.barra_idiomas.style.animateProperty("opacity", "0;1", 1); Smaller gives error ( 0.5),(500ms),(5f). Sonic Advanced content gives error . Thanks I've just checked - setting 0.5 as an animation duration works correctly in MS implementation. The line of code I used: document.button1.style.animateProperty( "opacity" , "0;1" , 0.5); . ...Show All
SQL Server Help with declare and cursor
I keep getting the message Msg 156, Level 15, State 1, Line 3 Incorrect syntax near the keyword 'declare'. Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword 'declare'. What am I doing wrong declare @dbname varchar ( 8000 ), declare @countyname varchar ( 200 ) , declare @sql varchar ( 8000 ) declare county_name cursor for select distinct county from Zipcodes open county_name fetch next from county_name into @countyname declare dbname_name cursor for select name from sys.databases where name like 'Property%' and name <> 'PropertyCenter' open dbname_name fetch next from dbnam ...Show All
Visual Basic AboutBox
I noticed that I could add an AboutBox to my project and I have done so. Now I notice that under the description textbox on the form, that it tells me " Description: (At runtime, the labels' text will be replaced with the application's assembly information.Customize the application's assembly information in the Application pane of Project Designer.) " Where do i go to find the Application pane fo the Project Designer Thanks for any help. QWERTYtech Sorry everyone... For some reason I just kept looking over that field. It was the Second option in the Assembly Information. Thanks for the help. ...Show All
