Hot answers tagged

2 votes

How to make the Steam overlay work with WPF?

It's because WPF only refresh areas that need update. Thus, create something transparent refresh repeatedly cover the whole window when OnGameOverlayActivated fires....
user avatar
2 votes

Game loop architecture using WPF(MVVM) and C#

With WPF, the UI ( or render I guess ) thread is kind of special. It'll try and run every 60th of a second. All of your View->ViewModel bound property read/writes are sort of banked up and updated on ...
user avatar
  • 422
2 votes
Accepted

Going from WPF to Unity3D, how to implement the MVVM-pattern?

Unity - not unlike some other game engines - provides as the backbone of its architecture a scene-graph that unifies all aspects of the MVC / MVVM triad. Trying to work around such fundaments of the ...
user avatar
  • 29.1k
1 vote

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

I can't provide you with the code solution, but here's some formulas you might find useful to do it yourself: Calculate eyeball position: ...
user avatar
  • 1,404
1 vote
Accepted

Camera math: How to calculate the horizontal and vertical angle from the look at vector

If there is no roll in your FPS camera (typically, there is not in an FPS) then all you need to do to get a yaw angle (-π..π ) from the vector is the atan2() function. As suggested by DMGregory, the ...
user avatar
  • 3,679
1 vote

How to Convert DirectX Texture2D to a DXGI Surface for WPF Rendering?

Did you solve this? D3DImage only works with Direct3D 9Ex surface so it won't work with DXGI/Texture2D which are Direct3D 11... unless you arrange some very tricky DXGI surface sharing between 11 -> ...
user avatar
1 vote

Why my game is running slowly if it was launched from a wpf application?

Admittedly, this is an educated guess, so keep that in mind; WPF being the parent domain in this case means that all subprocesses like the XNA game are issued handles from that domain. I don't really ...
user avatar
  • 639
1 vote
Accepted

Display mesh in front of camera

I had to ask a friend that is good at 3D graphics this is what he did to make it right: ...
user avatar
  • 131
1 vote

Getting Image name given a canvas WPF

Since you're using WPF I expect you don't plan to use a lot of animation, so a better way to do this would be with a Grid: ...
user avatar
  • 3,775
1 vote
Accepted

Chess Game WPF MouseDown Event

I am guessing you are using System.Draw methods to draw the rectangles (I hope you are not drawing labels or something cause that would kill performance). I would make a mouse down event on the form, ...
user avatar
  • 1,287

Only top scored, non community-wiki answers of a minimum length are eligible