Creating custom shader for Windows RT applications - windows-8

I am designing a 3D game for Windows RT devices using DirectX. I have imported a 3D object from Blender in .fbx format and now, looking for creating a shader file (.dgsl) for the object. As I am using Visual Studio 2012 Express for Windows 8, Shader Designer is not available in this version but still I need to create a custom shader (.dgsl). Is there any option available other than Visual Studio 2012 editions to create custom shaders for 3D objects?
Thanks in advance.

Related

Kinect depth data ONLY

Is there a way in linux (raspbian) to capture only the depth data stream from a kinect? I'm trying to reduce the amount of processing needed to capture Kinect information so I want to ship the data stream to another computer to assemble the data.
Note:
I have freenect installed but anything that requires opengl will not run on rasbian.
I have installed this example which captures the data stream with a b+w visual depth display.
librekinect is a Linux kernel module that lets you use the depth image like a standard webcam. It's known to work with the Raspberry Pi.
But if you want to use libfreenect for full video/depth/motor support, you'll need a more powerful board like the ODROID XU-3 Lite. By the way, libfreenect only requires opengl for some examples. The rest of the project compiles and runs fine without.

raw frames windows phone 8.1

I need to get raw frames from the Camera in YUV/YCbCr format on windows phone 8.1 (without Silverlight), I don't see any example on internet, is it possible using MediaCapture or CameraPreviewImageSource (Nokia SDK) ?
Thanks
The recommended way to process raw video frames on Windows Phone 8.1 is to write a custom MFT plug-in and then add it to the MediaCapture object via AddEffectAsync. The MFT acts as a DSP filter between the decoder and the XAML rich compositor.
You can choose the color space that you want to support in your MFT and Media Foundation will automatically insert color space converters for you. Keep in mind that the color spaces available on the Phone are limited. That said, NV12 is the standard color space for most video devices and is considered a 4:2:0 YUV color space.
While this sounds simple in theory it can be quite complex in practice. MFTs must be writing in C++ / MoCom. Writing an MFT does require rather deep knowledge of C++ and COM. I don't want to scare you away from giving it a try but it does have a learning curve.
Here is a sample for Windows Store that shows you how to create a MFT plug-in and add it to the MediaCapture object. Unfortunately for whatever reason this sample did not get converted to a Universal app. However, it should be easy to do the conversion. Since this is such a seminal sample I will request that we publish it as a universal app.
Media capture using capture device sample
I hope this helps,
James

green or white screen with processing + kinect

I am in win7 x64 Pro
Kinect xbox 360 is connected and samples (openNI and NITE) run well. When i use Processing 2.1, sketch with kinect run without error notification but there nothing on screen and he is gray or white... Yet all simple processing samples (without kinect) run well...What is wrong? I'm disappointed
intalled :
OpenNI-Win32-1.5.7-Dev.msi
NITE-Win32-1.5.2-Dev.msi
SensorKinect093-Bin-Win32-v5.1.2.1.msi
SimpleOpenNI 1.96
KinectSDK-v1.7
Ms Visual Studio 2012
Processing 2.1
I tried
OpenNIx64-1.5.7-Dev.msi
NiTE-Windows-x64-2.0.0
Sensor-Win64-5.1.6.6
but I have same problem
kinect run well (all samples from openNI and Nite) but whith Processing 2.1 (or 2.0.3 and 1.5.1) It still doesn't work : nothing on screen (gray or white) without notification error.
All simple processing samples (without kinect) run well...
Thank you for your help
I would recommend that you use the J4K (Java for Kinect) library in Processing. J4K is an open-source library and communicates with the native Microsoft Kinect SDK. You can download the j4k-processing.zip from here: j4k-processing.zip
There is a Green-Screen example in the examples folder (you need to unzip the j4k-processing.zip) called example5_basicAugmentedReality. This example shows you in the middle of a simple 3D virtual scene. In addition there are other examples for 2D interaction, reading the values of the accelerometer, etc.
Try to use SimpleOpenNI 0.27 on Processing 1.5.1
You can download SimpleOpenNI 0.27 from this link
if it didn't solve your problem. You should write more detail about your system that you use such as the version of SimpleopenNI, Kinect driver, etc

Window Phone augmented reality and shape recognition

I am a beginner in Windows Phone app development. My goal is to create a simple augmented reality application which will include shape recognition (ex. hand or face). Additionally I would like to draw 3D objects on screen and place them in reality. The question is what is the best way to start development? Especially which toolkits do You advise to use? My current idea is to detect motion using Motion Class built in WP-SDK and use EmguCV to dectect and recognise shapes. And which library should I use to draw shapes (Direct3d or XNA) ? Is it a good way to start? I am confused if EmguCV is available on Windows Phone platform at all?
Additional info:
- platform will be WP7.5 or WP8
i'm working also on windows phone project, it was about face recognition but because lack libraries that can used in other things i change my project.
but there is FACESDK that could help you for Face recognition.
http://research.microsoft.com/en-us/projects/facesdk/

How to determine if an application is using the GPU

I'm looking for a way to determine how to know whether an application is using the GPU with Objective-C. I want to be able to determine if any applications currently running on the system have work going on on the GPU (ie: a reason why the latest MacBook Pros would switch to the discrete graphics over the Intel HD graphics).
I've tried getting the information by crossing the list of active windows with the list of windows that have their backing location stored in video memory using Quartz Window Services, but all that does is return the Dock application and I have other applications open that I know are using the GPU (Photoshop CS5, Interface Builder), that and the Dock doesn't require the 330m.
The source code of this utility gfxCardStatus might help....