Sign in to follow this  
  • entries
    9
  • comments
    12
  • views
    24173

DXSAS Controls Library

Sign in to follow this  

655 views

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.
Sign in to follow this  


1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now