Questions tagged [.net]

.NET is a framework for software development based on the CLR ("Common Language Runtime") standard.

Filter by
Sorted by
Tagged with
0
votes
2answers
127 views

Can I use System.Windows.Rect in Unity?

I need to work with a Rect that has Left, Top, Bottom, Right. Unity's Rect has x, y, width and height instead. Also, Unity's Rect doesn't accept ...
6
votes
2answers
9k views

What is the simplest way to render video into memory (for drawing to a texture) in .NET?

In my project I would like to be able to play back video on surfaces in the world. I intend to do this by having the video frames rendered to a block of memory, then use this to update a texture each ...
0
votes
2answers
356 views

Loading content into an Winforms/XNA Editor's content project

So i am bulding a game editor/engine basically for teh lulz but i have encountered a problem i cannot seem to fix, i cannot load any new content through the Winforms UI during runtime. I tried using ...
0
votes
1answer
59 views

High-performance update of a bitmap grid

I need to visualize a fast paced process in .NET in 2D. I am planning to use writeable bitmap 800x40px. The idea is like this - there are objects which are represented by very basic colours and sizes ...
0
votes
1answer
41 views

Will a game made with .Net Desktop Development, be able to run on Windows' desktops?

I am new to making games (I have experience only with pygame), and I want to start creating with C#. I've found out that Monogame is a very good engine. On my way of setting up, in the part where I ...
0
votes
1answer
244 views

What is an acceptable GC frequency for a SlimDX/Windows/.NET game?

I understand that the Windows GC is much better than the Xbox/WP7 GC, being that it's generational and multithreaded -- so I don't need to worry quite as much about avoiding memory allocation. SlimDX ...
0
votes
1answer
64 views

Working with websockets in Unity: Cannot convert lambda expression to type 'IObserver<ReconnectionInfo>' because it is not a delegate type

I'm a bit stuck on a delegate error in Unity. The code works fine if I'm in a c# console app however Unity is giving me the error: Cannot convert lambda expression to type 'IObserver' because it is ...
2
votes
1answer
2k views

How do I use SharpDX with the .NET Core framework?

I started a project to build a game engine. As a result of circumstance, I won't have the luxury of building the engine in C++, so I'm going to have to settle for C# with the .NET Core. Given that ...
1
vote
1answer
79 views

Coverting byte[] from stereo to mono produces crackling in OpenAL

I'm trying to convert a Stereo byte[] to mono byte[] Here is my code : ...
-1
votes
1answer
862 views

Is there a way to invert collision detection in unity?

I'm trying to make a drag and drop tool to make maps in my game (dungeon crawl). I would like to use colliders to define geometry, just invert the case so that collisions are good, not colliding is ...
0
votes
1answer
74 views

Creating Compute Shaders throws E_INVALIDARG exception in SharpDX

I've recently been working on a small helper for creating and using compute shaders in C# along with Monogame/XNA. My end goal is simply to have compute shaders working in C#. My main issue is as such:...
3
votes
0answers
140 views

How to effectively/properly use IntPtr in ImGui.NET

How should I go about using methods that take an IntPtr in the .NET Dear ImGui wrapper, ImGui.NET? For example, ...
2
votes
0answers
100 views

C# UDP Multiplayer Networking - issue with choppiness and consistency

I know I've done this incorrectly, but I don't know what the right way is. Right now I have two clients that connect to a server. Each tick the players send a packet of information containing their ...
0
votes
0answers
71 views

How to create an instance of Windows Firewall interface object in Unity

I am trying to make the game add itself into the Firewall rule. I already referenced NetFwTypeLib.dll into the project. It led me to this line of code here: ...
1
vote
1answer
435 views

OpenGL 3 and the Radeon HD 4850x2

A while ago, I picked up a copy of the OpenGL SuperBible fifth edition and slowly and painfully started teaching myself OpenGL the 3.3 way, after having been used to the 1.0 way from school way back ...
0
votes
1answer
87 views

How should I load/change/activate scenes?

Scenes are confusing the hell out of me and I'm pretty sure they should be simple to understand. When the game loads, only the current scene has a buildIndex != -1. In order give it a 'real' build ...
-1
votes
1answer
35 views

Public MonoBehavior string fields empty

This is bizarre enough that it has to be me being an idiot. I have a MonoBehaviour with some public fields and public methods: ...
0
votes
2answers
624 views

Unity - Scripting Runtime Version Option Missing

I have been trying to open and run my couple-months old project in Unity3D, and I'm getting about 500 errors. So idecided to reinstall Unity. On the tutorial for the project, it tells us to make sure ...
3
votes
3answers
682 views

Synchronizing object states over .NET sockets

What I want to achieve is synchronize the state of a list of objects between two applications using sockets. All my attempts, but failed. One of my methods was to send each object each update to the ...
0
votes
1answer
54 views

How to calculate more precisely the position of the pupil in function of the eye ball and a direction?

I have a game in which I have an eye in a head that should always move towards a piece of food (or another piece of food). The head is moved by the player. The food has a fixed position (for some ...
0
votes
0answers
37 views

Approach in implementing the web browser game

Im Phil and try to figoure out the best approach for my app. I was searching Stack for my question but I didnt find a completely answer. Assumptions: It will be multiple user who can see in real time ...
7
votes
4answers
7k views

Are there .NET bindings for Autodesk's FBX SDK?

I'm writing a tool in C# that needs to open FBX files (and the XNA content pipeline isn't a suitable solution). I note that Autodesk only provides it's FBX SDK as a C++ class library. Before I write ...
1
vote
1answer
343 views

How can I fix my project after upgrading to Unity 2019 / .NET 4.x?

My Unity version was about a year out of date. After upgrading it to Unity 2019.1.5f1 through the Unity Hub, my project started throwing hundreds of errors. The most prominent one seemed to be: ...
5
votes
1answer
394 views

System.Net.Http.dll and Unity 2018.2.1, 2.2, 2.3 are conflicting, assembly reference keeps being deleted in VS 2017, any suggestions?

I'm looking for some suggestions on how to fix a strange bug i've been getting with System.net.http.dll. For the record, builds work fine as i have the mcs.rsp file in the /Assets/ folder with "-r:...
1
vote
1answer
93 views

Visual Studio can't handle my unity scripts

I have created a new project in Unity 2018.3.4f1 with Visual Studio Community 2017. I can't edit scripts properly in Visual Studio because of a bunch of errors related to .net framework. How can I fix ...
1
vote
1answer
2k views

How do I compile a namespace to a .DLL in Unity?

I'm developing a core library that I will use in my other games. I've only heard of using Unity .DLLs recently, and have spent some time putting my core scripts into a namespace. If I understand .DLLs ...
1
vote
1answer
71 views

Unity - job system compatibility for end user?

I'm thinking about using Job system. But it requires .Net 4.x (also look like .Net 4.x will be default for Unity in 2019). It is a little hassle for me cause I'm using Visual Studio 2015, I have to ...
0
votes
2answers
2k views

How can I guarantee a solvable Fifteen Puzzle shuffle?

I am making a 15 Puzzle game in C# that allows the user to enter a custom row and column value up to a maximum of a 10 x 10 puzzle. I am having problems with the shuffle method. I want to make it so ...
0
votes
1answer
23 views

Disabling, overriding or hooking a VS warning to Unity's Vector's ToString()?

I've just spent 2 hours debugging a misbehaviour because ToString() truncates to 1 digit by default. I want to disable the parameterless version so I won't use it by accident and I will always have ...
1
vote
1answer
291 views

Things to keep in mind after upgrading from .NET 3.5 to .NET 4.6 on Unity3D

I have recently updated my forked project from .NET 3.5 to .NET 4.6, and for some reason (even though Unity3D advises that there isn't any problem) my project doesn't load things correctly: By ...
1
vote
1answer
778 views

Multi-threaded MMO Server with complex inter-dependencies.

I am working on a Mobile MMO and I am using .NET to build a MMO Server. My current application architecture is as follows. Clients are accepted using Async Calls (BeginAccept/EndAccept). Data ...
6
votes
7answers
6k views

Can I develop Linux + Windows games using C#, .NET and OpenGL?

I want to learn to develop 3D and 2D graphics with either OpenGL or DirectX. I chose OpenGL as it's being used in webGL and works cross-platform. I already know .NET well, and the C# language just ...
3
votes
0answers
319 views

SFML.NET DLLNotFoundException with dll.config files in project

I am trying to run SFML.NET on arch linux and I have two dll.config files in my project called sfmlnet-graphics-2.dll.config and sfmlnet-window-2.dll.config. sfmlnet-graphics-2.dll.config: ...
0
votes
1answer
4k views

Linq with Unity - Select One from Many

I'm using Linq to select the objects closest to the player that have the usable tag thusly: ...
1
vote
1answer
719 views

How do I set up an SFML .NET dll reference in Visual Studio Code

How do I set up SFML .NET library dll files as references in Visual studio code using dotnet core SDK? I want to ditch visual studio as it's large and clunky and am wondering how to add "third party" ....
0
votes
1answer
690 views

How to display full website in Unity WebGL?

I want to display the complete website within the WebGL in Unity. I have tried Awesomium plugin but it doesn't work in WebGL. Please tell me is there any way to display the webpage. Thank you.
1
vote
0answers
230 views

Directory.EnumerateFiles hangs with disk pegged to 100%

I am having an issue that occurs seemingly at random with the following block of code. ...
-1
votes
1answer
926 views

How to use JWT in unity

Is it possible to use JWT in my unity games? I've read here that JWT needs .NET version 3.5+ and in Unity 5.4.1f1 the .NET version is "2.0.50727.1433". Is this information correct or incorrect? If ...
-1
votes
3answers
460 views

Suitable programming language [closed]

Which in your opinion is the programming language of choice for game development? Any special mention for .NET developers?
1
vote
0answers
83 views

How to import a NET .dll newer than 2.0 into Unity?

I'm trying to build one of the simple EventBus libraries from Github and import them into ...
8
votes
2answers
9k views

Direct2d off-screen rendering and hardware acceleration

I'm trying to use direct2d to render images off-screen using WindowsAPICodePack. This is easily achieved using WicBitmapRenderTarget but sadly it's not hardware accelerated. So I'm trying this route: ...
0
votes
1answer
997 views

Developing Kinect game for Xbox360? [duplicate]

Possible Duplicate: Can you access Kinect motion sensing from XNA? bunch of questions: Is it possible for me to create a Kinect application using XNA and deploy it to Xbox360 platform? What ...
2
votes
3answers
1k views

How to integrate game logic in game engines

Recently I'm working on a 2d game engine example in .Net with C#. My main problem is that I can't figure out how I should include the game logic within the game. Currently I have a base engine which ...
1
vote
1answer
459 views

OpenGL scissor odd behaviour

I am currently developing a GUI app using OpenGL with OpenTK as interface in C#. The viewport is set to the entire window space (0,0,width,height) and an ortho transformation is applied like this: <...
3
votes
3answers
8k views

Game engine like Unity 3D that allow me to use .NET code [closed]

I've been looking at Unity 3D for developing a 3D PC game and I really like the scene editor and how it simplifies the process of constructing 3D scenes, managing assets, animations, transitions etc. ...
1
vote
2answers
1k views

Handling keyboard input in SDL2

I'm using SDL2 with .NET bindings. Keyboard handling is encapsulated in static class, and keyboard handling code part looks like this: ...
0
votes
1answer
115 views

Validate single player game packet on a server

I am building a game in Unity and store data on a .NET server. I was wonder what the best approach to validating the game data before posting the scores to the .NET server. The game is somewhat ...
0
votes
1answer
139 views

Time per turn in a .NET turn-based game?

I am developing the server for a browser game, it uses an ASP.NET API for authentication, login and character creation and a websocket for the rest of the game (Microsoft.Web.WebSockets). While on ...
-1
votes
1answer
195 views

XNA draw a rectangle 3D perpendicular to camera

I need some ideas how to implement the Draw method. Need to draw a rectangle (actually a million of them, all same texture) that is in 3D, starts at point ...
0
votes
1answer
365 views

.NET WCF as backend server for iPhone games

I'm planning to develop an iPhone game. Is it possible to use .NET WCF as a backend? The server would be windows 2008 and MS-SQL database.