Questions in topic: "direct" The latest questions for the topic "direct" Porting DXSDK GPU Bitonic Sort to Unity Good night fellas, As an academic exercise to test the feasibility of Unity as a research platform, I'm in the process of porting over the GPGPU Smoothed Particle Hydrodynamics sample using DirectCompute from the DirectX SDK. In order to determine the contribution to the density and the forces exerted over a particle by it's neighbors, I have an spatial hash structure where neighbors list are stored in a vector. Each of the elements of the vector consists of a key-value tuple with the particle id and the computed hash for the particle's position. This part seems to work properly when comparing it by my CPU-generated results. However, in order to able to use the list and generate the offsets table that point to the beginning of each bucket, I need to sort the vector by the computed hash. Therefore I have ported the Bitonic Sort provided in the same SDK over to Unity, but I'm having troubles making it work. Seems like it's only sorting the values that are within the bitonic group size (currently 512 elements). As I'm not too experienced with the DX11 API, I might have screwed up translating the DX11 API calls but they seem OK to me. I've spent a bunch of hours struggling with it and I'm getting close to the point of desperation. So here's my cry for help: have any of you guys successfully ported the Bitonic sort, or has a ready-to-use implementation of a sorting algorithm for DirectCompute? Any help is welcome, as there doesn't seem to be many samples out there and even less properly documented. [The code I have for the GPU sorting is attached to the post.][1] It includes a simple test case MonoBehaviour, just create an empty scene and attach the test script to an empty gameobject. The results are written into the debug window. Thanks for the help! [1]: /storage/temp/ gpu sorting sort direct Tue, 23 Jul 2013 04:04:28 GMT HEGG Initializing an array of Vector3 in c sharp # Currently I&#39;m initializing an array of Vector3 in C# like so : Vector3[] positionArray = new Vector3[4]; positionArray[0] = new Vector3(0.0f,0.0f,0.0f); positionArray[1] = new Vector3(0.1f,0.1f,0.1f); positionArray[2] = new Vector3(0.2f,0.3f,0.4f); positionArray[3] = new Vector3(0.5f,0.5f,0.5f); I&#39;ve tried initializing the array using shorter methods, but all have failed. Heres an example of one that I tried : Vector3[] positionArray = new Vector3((0f,0f,0f),(1f,1f,1f)); And here is the error that Unity reports back : > A field or property &#96;UnityEngine.Vector3&#39; cannot be initialized with a collection object initializer because type &#96;UnityEngine.Vector3&#39; does not implement &#96;System.Collections.IEnumerable&#39; interface c# array vector3 initialize direct Sun, 23 Sep 2012 19:29:45 GMT maggot Editing PlayerPrefs directly in plist In Unity on OSX I am trying to edit the PlayerPrefs values in the unity.companyName.productName.plist, but every time I start the game they get overwritten with the old values. Is there a way to do this directly? access property overwrite plist direct Tue, 11 Oct 2011 22:42:42 GMT sandworm Button To Web Address I want to be able to press a button and have it got to a website on the internet. Any suggestions? Thanks for answering gui button network internet direct Tue, 20 Sep 2011 04:16:09 GMT Triqy