rm2000's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. missing triangles with stream render
hello this is my first post in theese forums, though I am not such a noob. I load a multimaterial mesh from X file and render it with DrawPrimitive() function like this and with DrawSubset() method replacing DrawPrimitve I get correct result I wonder what goes wrong. All I do on my mesh object is that I call Optimize InPlace() method like this Mesh->m_pAdjency =new DWORD[3 * Mesh->m_pMesh->GetNumFaces() ]; Mesh->m_pMesh->GenerateAdjacency(0.00f,Mesh->m_pAdjency); if (FAILED(hr =Mesh->m_pMesh->OptimizeInplace(D3DXMESHOPT_ATTRSORT | D3DXMESHOPT_COMPACT | D3DXMESHOPT_VERTEXCACHE, Mesh->m_pAdjency, NULL, NULL, NULL))); the rendering is done this way: if(FAILED(h ...Show All
.NET Development Sending multiple http requests with one connection
Hi, I'm trying to send multiple batch of http data to a server while using only one connection. I must use the same connection every time, since the first batch of data sent is some sort of logging and the other batch of datas asks for informations from the server, based on the logging previously sent. The problem I have is that after the second batch of data sent, my connection is closed (the server informs me that the socket was closed). I can't understand why it is closed and how to keep it open. I'm still new to C#, so it might be pretty easy. The code is from a function that gets called every time I have a new request to send to the server. Here's my code: // Create the Uri object for the resource you want to access. U ...Show All
Audio and Video Development Text to Display Rending
Here's the issue in the simplest terms I can explain it. This all started with subtitles. It is obviously easier to have a markup file with all the subtitle text in it instead of having to make individual graphics for each. Far as I know, this should be possible. Unfortunately, it's not going so well. After many attempts at subtitles, I decided to just add a very basic text output from the main markup file. It still did not work! I've checked the fonts, tried a few, and they are all Open Type. It's a very simple piece of code that just sets the position, font, and color. I left out all the timings and animations to be safe. Is there a bug in the Toshiba Players that won't do this or I am just overlooking something right in front of my face ...Show All
SQL Server Visual Studio AS Project
I had a nice Visual Studio AS project and I deployed it to a AS server. Afterwards I made some changes to the AS database on the server. Meaning that my visual studio project and the AS database are not in sync anymore. Can I copy things from the AS server to my VS project Or can I create a Visual Studio project from an AS db Thanks Easy! Create a new project and in the Business Intelligence section you should see an 'Import Analysis Services 9.0 Database'. That will create a project and suck in all the metadata for your. Enjoy. Dirc ...Show All
Visual Studio Express Editions Executable VB 2005 file
Just downloaded the VB 2005. There's a maze of folders and files, but none clearly identifiable as the vb 2005 executable file. What is the name for the file that allows you to begin writing code Thx. JC After you install you should see a new item in your Start Menu for Visual Basic Express. The executable lives in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VBExpress.exe ...Show All
Visual Studio Express Editions Look-up table :-
I need to do manipulation with my incoming data fr serial port n need to have a look-up table for this purpose, starting from 0.0dB and 30H data. For every increment of hex value, the level increases by 0.5dB. My data in hex format, i need to convert it to dB value based on the look-up table. How can this be done Disclaimer: I am no good at math and can't handle 'log' functions in math. Anyway the math in the following may be all wrong but maybe it will give you something to work with. Public Class Form1 Dim ht As New Hashtable Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load ' Build a hashtable Dim dbtot A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The Unofficial "Hooray I'm Done With my DBP Game" Thread
When you get done with you game and sumbit it, crow about it here. A little over 24 hours left until the deadline and I'm so amazed I'm done, so much better than college Thanks to ZMan for his help, good luck all. I'll post the source code for my submission once the deadline hits. Bill It's done and submitted now. It's called Joe's Fuel Harvest Service. The game consists of mining planetoids for radioactive mineral to fuel the ships of Spacewar. Link to screenshots on the project page Youtube Link I can't wait to see all the entries. ...Show All
.NET Development Parsing XML
Hi everyone. I'm almost new int his of programming, now I'm having problems with an XML. The case is that I have a XML string that is answer of a web service, I need to parse that XLM document to extract the information and I don't know how. I tried with the XMLTextReader, but it asks me a Stream or a file, and i don't have any of them. How can i made this Thanks! Jose Luis Montero Mexico Try using the XmlDocument Dim doc As New XmlDocument doc.LoadXml("<tag>Text</tag>") http://msdn2.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx ...Show All
Visual Studio Express Editions font install
hi I use a special font in my app with textbox and drawstring methods. How can I install this font with the apllication i tried to copy the fontfile to windows\fonts folder but even on restart the font does not show up until I manually open the fonts folder and click on the font Edited, improved and updated private font info and code at my other thread. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=542664&SiteID=1 (original hack removed) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Touch panel in Manged DirectX
Hi! I almost finished game for our company. It is based on FlatRedBall library and it using now MDX 1.1. Currently I have 2 big problems with this game: 1) Game will use touch panel as for user inputs, but its behavior is strange. Looks like mouse pointer on steroids (100x) more sensible. 2) Graphic card – I described this problem in separate thread. I need help (and ASAP) – if I will not resolve current problems I need to switch to Flash … Kind regards from Poland Mateusz Kierepka Well, the screenshot in the page linked to above has widely different positions (motions actually) reported. It's hard to say what the problem is, it could be a problem with the sample, DirectInput or the drive ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I manually uninstall old XNA framework?
I was messing around with my registry (trying to delete old items from the Add/Remove Programs list) and I seem to have removed the "Remove" button for the XNA framework. How can I manually uninstall the old framework so I can install the new one Also, do I need Game Studio Express or just the XNA framework Thanks, John If all you previously installed were the (beta) XNA framework runtimes, you can uninstall those manually by going to c:\windows\assembly, finding the Microsoft.Xna.XXX assemblies and choosing "Uinstall" from the menu that appears by right clicking on them. ...Show All
SQL Server Time intelligence
I was trying to using the BI wizard and add time intelligence, but when I try to do so, I get an error stating: "One or more dimensions do not have a data source view. The time intelligence wizard can only be run if a data source view is present." Does anyone know how to get around this error Thanks! ...Show All
Visual C# Generics in C# - new() cnstraint
Hello... I am trying to play a bit with the generics feature of the .Net 2.0 Framework and I ran into this "Problem" I try to create a Singelton Base-Class, which will create an instance of itself if the instance is accessed. Since I want to create an Instance of <T> inside my generic Base, I need to supply a new() contraint to <T>. This "forces" me to create a public constructor, since that what new() means. I think the scope of new should not be "public" but "protected". Protected would allow me to hide the constructor from the outside world, but it would still allow the creation of the class inside the baseclass. Since I am not able to do this, a direct creation of my Bas ...Show All
Visual Studio Team System Branching bound projects and solutions does not work
Hello, While testing branching capabilities in TFS, I come to realize that for bound projects and solutions, branching does not work as expected. I hope I am wrong, and if you see any mistake with the following scenario, please tell me. Start of with a solution that has two projects c:\root\solutions\solution.sln c:\root\projects\projectA.csproj c:\root\projects\projectB.csproj Add the root directory to version control in TFS $/TeamProject/Mainline/solutions/solution.sln $/TeamProject/Mainline/projects/projectA.csproj $/TeamProject/Mainline/projects/projectB.csproj Make sure your mapping in the workspace is like so $/TeamProject/Mainline -> c:\root\ Open solution in VS 200 ...Show All
SQL Server Using a cube to generate reports
Hi, I am trying to join a cube with reporting services 2005 so i created a report template but could not figure how to join the cube and the report template made. I am hoping the readers could provide some info or some link where the procedure is explained. Thanks, Somu In the data source, in BI-DEV studio and your reporting services project, you create a connection to your OLAP/Analysis Services cube, by choosing OLEDB for OLAP 8(SSAS 2000) or 9 (SSAS2005). You will have to point to the server and the database that hold the cube. HTH Thomas Ivarsson ...Show All
