Austin Kottke's Code Site

Thoughts about Architecture – Java, C/C++, JS, Objective-C, Swift, Groovy, Grails, (RIP Flash)
Archive for January, 2010

January 31st, 2010

runtime mxml

1 Comment, as2, as3, flex, by austin.

Ok guys, for one I have to give kudos to flash builder 4 – I think it rocks! But the one thing which I think would just be the cream of the crop is runtime mxml! I actually ported 60% of the functionality of the flex ui component framework to as2 and now im considering doing an as3 version. I mean, I think that it would so useful to have runtime mxml, maybe no logic, but just the layout code, that’s all. Does anyone concur? Please follow and like us:0

January 24th, 2010

Crazy 3D C++ Open GL project

No Comments, 3d, C++, OpenGL, QT, by austin.

Hey guys, I’ve been working on a project for a few months to teach myself open gl and 3d mathematics and nvidia’s cg shader language. I think it came out ok, I learned a lot of technology about graphics, etc. It’s no where near the level of PS3 but it’s got some potential. Qt4 was used for the UI technology. Features: 1. Bump mapping, spherical mapping, multi-texturing2. Terrain generation3. Matrix pallette skinning4. Realtime lighting5. Explosions, collision detection6. MD2, POD model loading7. Shadows I posted some shots…. As a note, none of the models are mine, they are just used to demonstrate concepts. Two of the models are NVidia’s and Sony’s used in a book I found. I converted the models to a format I needed, POD. And used shaders to animate the models using matrix pallette skinning. This is purely used for educational purposes and not to be a commercial project at all. Please follow and like us:0

I tell you it’s been a while since I last posted, but one thing that I have been spending a lot of time is looking at web frameworks. I looked at wicket, web macro, jsp, velocity, and I have to say that the most awesome framework I can see is stripes. I was first reading a book on hibernate – harnessing hibernate and in the end of the chapter it mentions about Stripes. One of the things I can’t stand is the auto-wiring of Java bean objects and a web form. It’s not a big deal with flex because you have amf, but in a web site it’s a pain. So take stripes, I just take an entity bean and I can specify the bean on the page and stripes will auto-validate, and send errors if a field is not required. It’s pretty nice. See below: */ @ValidateNestedProperties({ @Validate(field=”firstName”, required=true, minlength=3, maxlength=50), @Validate(field=”lastName”, required=true, minlength=5, maxlength=50), @Validate(field=”email”, required=true, minlength=5, converter=EmailTypeConverter.class ), @Validate(field=”userName”, required=true, minlength=5 ), @Validate(field=”password”, required=true, minlength=8 ) }) @Validate(encrypted=true) public UserVO getUser() { return this.beanContext.getUser(); } Using annotations the validation occurs and its just a simple matter of inserting a field and binding directly: Doing this will automatically validate the field in java. Cool huh? Well that’s one of the major things I like about it. Besides flex, it’s pretty smoothe. I like wicket, but for some reason I just cant get over writing all my UI logic in java…. I feel like im doing swing again! Anyway, check out stripes – its…