Michal Konecny's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Beginner shader question - I'm missing something obvious
Hello, all: I'm working on a simple space sim, and I'm trying to render a weapon shot using an HLSL shader. I haven't used a shader before, so I've read through a bunch of code samples, and picked up a couple of books, so I *think* I (kind of) understand what's going on with vertex and pixel shaders. The problem I'm having is that when I enable the vertex shader the mesh I'm rendering is drawn in black. If I disable the vertex shader (comment it out), the pixel shader outputs the color I expect. I've tried it with a mesh I created and with a mesh created via Mesh.Sphere with the same result. Here's the shader code (it's almost an exact copy of the simple pixel shader code from MDXInfo). As you can see, it's totally simple: uni ...Show All
Community Chat your computer is ready to compute
as many know when you don't have the latest CPU you'll have to wait when your computer is ready to compute. also many handicapped persons, which area doesn't matter, are waiting when their pc is ready to compute. all other persons watch the LED of their HD, when it goes out. and watch the mousepointer becomes to standstill. whatever, the case is, you'll have to WAIT..... why don't you make a neat little program that can be implemented in any MS OS, Vista included, that tells you by sound and vision: YOUR COMPUTER IS READY TO COMPUTE. the idea is seen on Startrek serials which were made by the fabulous Gene Roddenberry. the computer on board of the Enterprise told their crew members that "she" was "rea ...Show All
Visual Studio Any way to prevent language service "undo grouping" editing actions?
Hello, The different language services in Visual Studio try to group distinct input events into undo groups. For example, if you type a space somewhere, move around the file, go back right after the just inserted space, and type another one, they will be "grouped". That means that when you try to undo, both typed characters will be 'undone' at once. I would like to prevent this from happening (the issue is a bit more complex, because I open LinkedUndo's around each of the actions, but the language service still groups them and leaves me with "empty shell" LinkedUndo's after the fact). I tried to open and close a CompoundAction both on the View and on the Buffer, but the language service is still able to ignore this. Is ...Show All
Software Development for Windows Vista Custom Human Workflow Activity
I am in process of developing my own human workflow activity by extending Activity base class. But there is one scenario that I am unable to solve. Let us suppose we have 2 different human steps in a workflow process, say step A and step B. The workflow gets routed to human step B after completion of human step A. Depending on some business rules I should be able to reactivate step a. How can I achieve this The default activity automaton does not allow an activity to be brough back to Execution status when it is already closed. Thanks for all the help in advance. Bala This isn't nice but might work: put A, B and C in a while activity. A and B each carry a boolean flag. The flags are set to false in the beginning. A and B ...Show All
Visual Studio Team System How to solve errorlist question
Hello every!In my test project can checking but the error list display: 警告 8 CA0800 : FCRM : Type methd's 'aCheck' is contains numeric or illegal prifix, which should be modify 警告 9 CA0800 : FCRM : Type local's variable 'strTemps1' is contains numeric or illegal prifix, which should be modify C:\Documents and Settings\Administrator\桌面\ClassTest\ClassTest\Class1.cs 84 ClassTest 警告 10 CA0800 : FCRM : Type parameter's variable 'strWeh1' is contains numeric or illegal prifix,which should be modify C:\Documents and Settings\Administrator\桌面\ClassTest\ClassTest\Class1.cs 76 ClassTest 警告 11 CA0800 : FCRM : Type methd's 'gGetStringo' is contains num ...Show All
Visual Studio 2008 (Pre-release) Serialization error.
hi friends, I want to serialize a System.Windows.Documents.Paragraph object and pass it to another machine which will deserialize it. Can anyone guide me which appropriate Serialization technique to use to serialize the System.Windows.Documents.Paragraph object and deserialize it in such a way that no error is generated. I have try to serialize the Paragraph object created using the ObjectStateFormatter class(found in System.Web.UI) and ObjectStateFormatter was successfully able to serialize the paragraph object to string so I transferred the string using WCF on another machine but when I tried to deserialize the string I received an error that Serialized data is invalid. hi, Mr. Relyea, I have posted my query ...Show All
Visual Basic No Enough Storage Space is available
Almost every one hour, when I run the project , I get this error and i have close and open again. Any idea Regards Mani You've allocated too much memory. Flush the buffers, close connections, null variables, choose your datatypes wisely. Lastly, make sure only one instance of the application is running. Ctrl+Alt+Del Adamus ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I directly stop drawing a pixel?
Maybe it's a very essential question but... Which is the statement in the pixel shader to stop drawing a pixel Stopping it that way would have any negative effect Thanks Dont think theres a way to do this directly. The pixel shader is called for every pixel and always must return a value - which will be your color. You could always set the alpha in this when you dont want to render and enable alpha blending, although this could leave you with artifacts if your objects arent rendered fromt he back to the front. What is the result you are after (ie description of what your trying to ultimately achieve) N ...Show All
Visual Studio Express Editions Making a pop up?
Hey! I was wondering how I would make it where when lets say my button "Page2" clicked on form1 would open form2 and both windows would stay open. I am using VB expess 2005 , thank you! MarcD wrote: Dim frmNewForm as new Form2() frmNewForm.Show() also frmNewForm.Show(Me) or frmNewForm.ShowDialog() also frmNewForm.ShowDialog(Me) If you use the ShowDialog method the user has to close Form2 before being able to go back to form1 If you use the Show method then both forms can be seen and accessed at the same time. The code that passes "Me" (this assumes this code is executed inside of Form1 since Me refers to the class you are in) then means that i ...Show All
Windows Forms DataGridView - Replace column with my DateTimePickerColumn
Hi I have a database with one table containing: - id (int) - name (string) - date (DateTime) Now I fill a DataSet with the data in the database using OleDbDataAdapter . Then I connect the DataTable (inside the DataSet) to my DataGridView: - datagrid.DataSource = dataset.Tables[0]; I then created a DateTimePickerColumn (inherits from DataGridViewColumn ). (The control works fine) Now to my question. How do I replace the "date" column to be a DateTimePickerColumn Do I have to: 1. Hide the "date" column. 2. Add a new column (DateTimePickerColumn) 3. Implement code for copying data between 1. and 2. I want DataSet.Update() to work with DateTimePickerColumn . Anyone :) / K ...Show All
.NET Development error in publish
hello every body. i just have a problem. I worked on a site was done using frontpage " html & java script" and i began to develop it adding aspx pages using asp.net 2 and i finished these pages. It works fine when i run the site from visual studio.net 2005 so i decided to publish it " i have no experience in publishing sites " so i put them at the site directory using FTP but when i'm tring to open it i have this error. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A name was started with an invalid character. Error processi ...Show All
Smart Device Development Change in scenario TAPI CONN + Data Transfer
Hello EveryBody Sorry for some change in the scenario I want to establish a connection between two modem which are not connected by the internet but are connected by the telephone line i.e our PSTN line both are at remote location And after establishing connection i want to transfer some data like was some lines in a file. 1) communication can be done through tapi between 2 modem,but I wanted to know how is it possible to send the data after establishing a TAPI connection. is there anything possible to establish an FTP connection or Transfer some 100 line Thank you for the reply in advance Sarguna ...Show All
Visual C# Windows service controller
Hi, I am created a windows service. I install it with the acount property set to "localservice". i also created a gui that controls the service. I can start and stop it fine but the problem when executing a custom command i get and error "Cannot open SeekWare service on computer '.' " SeekWare is the service name. Someone told me that he fixed this problem by installing with the acount property set to "User" . But i want the service to run no mater which user is logged on. Thanks. A custom command must be in the range of 128-255. If you try to send outside that range I believe you'll get the error you specified. Michael Taylor - 12/1/06 ...Show All
Visual Studio Team System Can a Work Item Type be disabled?
I have a situation where work items were migrated from ClearQuest as a "Defect" work item type. I need to prevent new "defects" from being created since we are using the default work items (task, bug, etc) going forward, but I still need to see the old defects for historical purposes. Is there a way to remove the ability to create work items of a specifict type So when I right-click on "work items", and select "Add Work Item", it doesn't show up on the list One option is tweaking the Defect work item type such a way that the user shall not be able to save new work items. Have a new custom field and make it required. Don;t add it to the form. Hence users will not ge ...Show All
Visual C# Converting Visual C# to Visual Basic
Hello everyone! I am new here at the forums. I have a simple question. Does anyone know of a free accurate program that converts Visual C# coding to Visual Basic I tried using Google before posting, but I can't seem to find one. At least a free one... Thanks for the help! - Jason - Also note that the commercial converters will have free trial or demo versions. Although they'll have line limits on conversion, the conversions will be much more accurate. Overall, you'll save more time. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter, VB to C++ converter Clear VB: Cleans up VB.NET code C# Code Metrics ...Show All
