Bei's BitsDesign, Art, Programming | ![]() |
QuicksearchCategoriesSyndicate This BlogBlog Administration |
Saturday, July 4. 2009Visually Interesting Ceilings
Every morning when you wake up, usually the first or second thing you see is the ceiling. Most of us don't pay any attention to it all because more than often, it's usually quite plain. Most of the time it's plain white ceiling and at most you may have some visual interest in the form of a ceiling fan. Why start your day off with such boring design? Check these crazy ceilings out featured on deputy dog.
![]() link Most of these belong to giant cathedrals or office buildings, but what's stopping us from doing something creative with our won residential spaces? Moreover, what about hospital beds? Imagine how boring it is just to stare into plain white all day when your sick! Saturday, July 4. 2009Oops Awards Many people say that there's a difference between art and design. Design is suppose to serve a purpose... but sometimes designers get carried away and design things where form is definitely over any semblance of function. Cool to look at, but definitely fitting the definition of "ugly" these designs definitely stand above the rest in their own right. Check out the nominees for 2009's Oops Awards: the award from bad product design.Link My personal favorite is the Cozy Furniture Collection,designed by Hannes Grebin. Sunday, June 28. 2009The ThugSaturday, June 27. 2009Free Maya Tutorials
For the last month, I've been working on an online video series that is aimed at teaching Maya. I want it to focus on good fundamental techniques as well as ease of understanding. I would also like to include chapters about fundamentals of 3d graphics. I often find that many 3d artists lack a solid understanding of what's going on under the hood of computer graphics. With this additional information artists can take their art further faster.
You can find it here: http://beiontheweb.com/maya.html Friday, June 19. 2009Little Wheel by OneClickDog.comFound also on Newgrounds Sunday, June 14. 2009First LoveTuesday, June 9. 2009Programmatically generated functions in Actionscript 3
Many people know and use object oriented languages like C++ or Java. However, functional languages like SML and Lisp are just plain cool. Unfortunately, functional programming is a little hard to wrap your head around. Many of today's great scripting languages supports both object oriented programming and functional programming.
Actionscript is no different. It include one of the most useful programming features: function objects. This is used extensively in the callback functions of event handling. When you use a addEventListener, you pass in a function. Another really useful functional programming feature is the ability to have a function generate another function. Just like a function returning an integer or a float, you can have a function return another function. This is really useful when you need a bunch of similar functions. Having a single function that generates other functions is far easier to maintain and modify. Check this AS3 example out: To use this example, you can either download the (.fla) or, since everything is generated procedurally in this example, you can simply copy and paste the code into frame 1 of a new Flash AS3 file. In this example, we generate button event handler functions with the function buttonEventGenerator. It takes in an integer i and generates a new function that appends text to txtArea with i in the text. Now go fourth and save yourself some typing and generate some functions with functions. PS. In case your wondering, yes you can write functions that generate functions that generate other functions.
Programmatically generated functions ... Posted by Bei Yang
in Programming at
02:03 | Comments (0)
Trackbacks (0)
Sunday, June 7. 2009wxPython with Flash Actionscript 3
As programmer, I always try to avoid to using something just because it's what I know. I'm always trying to avoid the "If you have a hammer, everything looks like a nail" problem. I always try to use the best tool for the job. In the long run, it's almost always easier. Of course, you can't always do this. Sometimes in programming, the tools just don't plan talk to each other easily. Fortunately, my two favorite tools do and it's relatively easily and clean!
I'm talking about Python and Flash/Actionscript. Both tools are based on the "batteries included" mantra but were intended for different purposes. Flash is great for multi-media related stuff. Video, sound, animations, font management, and all user interface components are built right in. On top of that, it's got a visual editor that's easy to use. There's a lot that can be said about "what you see is what you get." Python, on the other hand, is a great multi-purpose programming language. It's got built-in everything! Sockets, serial communications, zip file manipulation, xml parsing, file management, threads, just to name a few, are all included and far easier to use than their C/C++ counterparts. So how to get them to talk to each other nicely? Fortunately, python has the ability to create ActiveX objects through wxPython and Adobe (formerly Macromedia) has provided some nice hooks into flash that we can access. Before the examples, there are few caveats.
Without further ado, here's the example. First, the example actionscript for flash: As you can see for the example above, we are simply using the "ExternalInterface" class. Basically, to get data out of flash, just use ExternalInterface.call() and design a receiver function on the python side to receive the data. Conversely, to receive data within flash, we use the ExternalInterface.addCallback() to expose an actionscript function to python. Next the example code for python: This is a bit more complicated. If you use wxPython already, it's pretty straightfoward. If you don't, learn a bit about wxPyhon. It's a great user interface toolkit for flash.
wxPython with Flash Actionscript 3 Posted by Bei Yang
in Programming at
18:19 | Comments (2)
Trackbacks (0)
Monday, May 25. 2009The Fleet
Really simple 45min sketch. Topic is from CGTalk's daily sketch forum. "The Fleet". Throw back to Homeworld the game here...
Tuesday, May 19. 2009
« previous page
(Page 1 of 1, totaling 10 entries)
next page »
|
Powered by s9y