directx

OpenGL still better than Direct3D for non-games? [closed]

半世苍凉 提交于 2019-12-02 20:27:20
The standard model has been that OpenGL is for professional apps (CAD) and Direct3D is for games. With the debacle of openGL 3.0, is openGl still the natural choice for technical 3D apps (cad/GIS)? Are there scenegraph libraries for Direct3D? (Of course Direct3D is windows only.) D3D makes you pay the Microsoft "strategy tax." That is, D3D serves two masters. One is giving you features and performance. The other is to ensure lock-in to other MS products and the Windows platform generally. This has some consequences for you: A D3D app won't run on anything but Windows (including Xbox). Maybe

Copy Texture to Texture

巧了我就是萌 提交于 2019-12-02 20:02:54
问题 I've done 2 programs to use Shared Resources, running on SlimDX & DirectX10. One program will display the shared texture on a 3D mesh. The 2nd program will load an image as texture. So far I need to pass the shared handled everytime the texture is update from a new image. Now, is there a way that I can initialize a fixed size shared texture (Texture2D), then everytime when I load a new image, all I need to do is load it as texture, then copy it to the existing texture. This way the shared

How to add a DirectX reference in Visual Studio 2010 [closed]

亡梦爱人 提交于 2019-12-02 19:47:06
How can I add a DirectX reference to my C# project in Visual Studio 2010? Thanks. ChrisN Go to the solution explorer Click references Click add reference Click Browse Browse to: C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\ Select your directX package. DirectX is for unmanaged code - C++. To use it from C# you need to find a wrapper library for it. The two best right now are SlimDX and SharpDX . Grab the binaries from the sites and just add a reference to them. Dmitriy There is one way i have find. First you need to install DXSDK (i have June2010 and SDK for Windows 7). Go to "

DirectX or OpenGL [closed]

▼魔方 西西 提交于 2019-12-02 19:40:34
If you were writing the next 3d graphics intensive application in C# (like a 3d modelling and animation software), which one would be a better choice? If we consider C# as platform independent, then OpenGL seems tempting, but what about the performance, etc? Since the used language is C#, the performance is pretty crucial to consider. Edit: You can also consider SlimDX and TAO, OpenTK, csGL, etc too. Performance in managed code, with respect to the graphics subsystem, is not bad. SlimDX pays a slightly penalty over completely native code on each call into DirectX, but it is by no means severe.

Fast multi-window rendering

ぐ巨炮叔叔 提交于 2019-12-02 19:33:25
I've been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven't found a single library that works well on multi-windowed rendering setups. The requirement is to be able to run the program on 12+ monitor setups (financial charting) without latencies on a fast computer. Each window needs to update multiple times every second. While doing this CPU needs to do lots of intensive and time critical tasks so some of the burden has to be shifted to GPUs. That's where hardware rendering steps in, in another words DirectX or OpenGL. I have tried GDI

Where can I find some in-depth DirectX 11 tutorials? [closed]

半城伤御伤魂 提交于 2019-12-02 19:16:27
So far the only tutorials I've been able to find are on directx11tutorials.com , which are essentially inferred from the existing samples. Does anyone know where to find other tutorials, or better yet open source projects using DirectX 11? (Extra points for project code using DirectX 11 :) ) I think there are still no DX11 tutorials / books. If you want to study DirectX in-depth, you could grab some DX10 book and also examine DX11 SDK and MSDN . There is nothing really new in DirectX 11 (in application architecture / code building principles) , so you could examine new API features and (if you

Why Direct3D application performs better in full screen mode?

天大地大妈咪最大 提交于 2019-12-02 18:07:14
The performance of a Direct3D application seems to be significantly better in full screen mode compared to windowed mode. What are the technical reasons behind this? I guess it has something to do with the fact that a full screen application can gain exclusive control for the display. But why the application cannot gain exclusive control for part of the screen (i.e. window) and have the same performance benefits? Here are the cliff notes on how things work underneath. Monitor screen always needs to be associated with so-called primary surface to be able to display anything, i.e. videocard can

E_INVALIDARG: An invalid parameter was passed to the returning function

我的未来我决定 提交于 2019-12-02 17:57:59
问题 I'm trying to make simple SlimDX example to test some performance vs GDI and unfortunately I got stuck on the very beginning. I've created simple Console Application in VS2010 and added this code to programs main method: // 0. STEP SlimDX.Direct3D10.Device device = new SlimDX.Direct3D10.Device(DriverType.Hardware, DeviceCreationFlags.BgraSupport); SlimDX.Direct2D.Factory factory = new SlimDX.Direct2D.Factory(); // 1. STEP Texture2DDescription textureDesc = new Texture2DDescription();

Where can I learn DirectX programming? [closed]

主宰稳场 提交于 2019-12-02 17:35:30
I want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were very complicated and hard to understand. I have spent 3 days on a tutorial, and I have read everything, but I still can't even make an program that initializes DirectX. I think its very hard to learn that way. Can anyone recommend a good tutorial/book? The best resource I know of for learning DirectX is Frank Luna's book . It does assume you know C++. If you can get up to the chapter on the rendering pipeline and understand it, you're probably ready for DirectX. As for

Game Development in Delphi

纵然是瞬间 提交于 2019-12-02 16:49:40
I would like to have a go at making some simple games for personal/learning purposes. By simple games I mean games like platform, maze, arcade games for example. I would also one day like to create a platform game with a simple editor to allow others to edit and design their own game levels. I am not sure if Delphi is the way to go though, I don't see or hear many people writing games in Delphi, but Delphi is the only language I understand on an intermediate level. If Delphi is acceptable to create simple games as I mentioned, am I right in thinking that I would require some libraries that