DXSAS Controls Library

posted in MJP's Last Stand
Published November 12, 2008
Advertisement
Already posted this in the XNA CC forums, but I figured "why not post it here too?"

Hey everyone. While working on a ModelViewer tool for my current project, I developed a handful of WinForms controls for editing the shader parameters of my material effects. I ended up making them use the DXSAS 1.0 UI Annotation (as documented here) so that I wouldn't have to change the existing annotations I'd added for XSI ModTool, and also so that they'd be somewhat useful outside of this one project.

Anyway I'd planned on making some sort of sample or article on this topic using the code I developed, but at the moment I've just got so much to do and I don't think I'll have time to get around to it. I decided I'd share the code here, in case anyone might find it useful to just plug into their project or to serve as a base for something else. I figure that if any of you guys are like me, you'd rather be optimizing shader code than spending time messing around with TextBox's :P. So if anyone's interested, I've uploaded the code here. It's just the classes themeselves, no library project or sample project or anything like that. You should be able to just add them to any project that has the XNA Framework assemblies referenced, it doesn't depend upon anything aside from that (and WinForms, obviously).

If you want to see what they look like, there's a picture of my ModelViewer below. That's them in the panel on the right-hand side, right below the combo boxes for picking the MeshPart and the Effect. From the top to the bottom you've got a Slider, ColorPicker, Slider, Numeric, FilePicker, and ListPicker. As you can see they're nothing fancy at all, but they get the job done.




If you have any questions, feel free to ask here or email me at the address listed in the ReadMe.txt inside the zip.
Previous Entry HDR Rendering Sample
0 likes 1 comments

Comments

Trapper Zoid
Jeeeeps Innnn Spaaaaaaace!!!!

Your model viewer looks great, but I can't help be curious as to that background.
November 12, 2008 05:45 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement