lynda.com

Less serious

April 27th, 2010 by windmaomao

sub_render_sign
(this render is inspired by an old post of mine )

Did anyone tell you being too serious isn’t a good thing ? More or less, it reflects you probably has narrow understanding and respect for the nature. Daoist says the three type of things that you can get most serious about are money, power and self. However, he states none of them are important to you, and he even states that paying too much attention to them are actually harmful to you.

Natural is at its own harmony, forces that are too strong tends to destroy things instead of grow with them. In singing, powerful vocal doesn’t come with strong push of sound, instead it’s build with comfortable breath flow that is only required for that pitch :) Same thing should be with everyday’s life. Thoughts and actions can be just effortless while the impact could be profound.

While thinking about profound effect, you don’t have to put too much thoughts and paying too much attention on them. They have their own harmony, once you find them, you’ll be there. The search is effortless if you know where to look for. And while you are under tension, most likely you’ll look in the wrong direction. With angry and agitate thoughts, hardly you can go anywhere afterwards.

An easy approach is to look down on things, none of them are as important as you being alive and breathing. Money, power and yourself won’t give you life and air. They are only one type of million things in this universe. So think about more about the raw motivation of life, ex. to see, to feel. You can achieve them any time you want, with any people around. Most of important, you do them effortless as you learning how to walk. Nobody asks you to walk perfect while most of us turn out to be very good walker :)

Fang

Reblog this post [with Zemanta]
VN:F [1.6.4_902]
Rating: 8.0/10 (1 vote cast)
VN:F [1.6.4_902]
Rating: 0 (from 0 votes)

Build an OpenGL GUI application in Mac OSX

April 2nd, 2010 by windmaomao

I had a school project that I need to build a visualization application to plot some scientific dataset in 3D on my snow leopard. While I had some experience in terms of plotting in Windows, building a 3D application in Macintosh environment is fairly new to me. So I kinda spent couple of weeks researching and experimenting couple of components that are needed to proceed .

Canvas

Basically, you need to setup a screen canvas to draw 3D objects, which can be achieved by using OpenGL API . The library takes care of setting up the graphic hardware, creation of objects, and projection them to 2D screen pixel on the canvas, all sorts of basic functionalities in 3D world. Normally this process is fixed, but a shader language (normally comes with OpenGL) can let you adjust how you represent object and how to draw them into pixels at run time through some scripts. This really adds the overall flexibility, and effects can achieved very easily by writing some shader and plug into the pipeline.
To see how apple supports OpenGL and shader, you can check out GLSLShowpiece application from apple reference library ( it comes with a executable file). You can test your shader easily using OpenGL shader builder (in XCode folder) where you can test all sorts of functionality of shader without writing any code.

Engine

To make 3D rendering job a bit easier, I’d also like to have a backbone engine that deals with scene loading, objects/material management, camera handling in a black box, so I can concentrate on the application logic. Here’s a list of engines/libraries that I came across, some are more favoring game, and some are to the visualization (the difference between game and visualization lies in where their interests first originates, IMO). To name a few,
1) NSOpenGLView control in Mac XCode
2) Ogre 3D, game engine, open source
3) Unity 3D, game engine, commercial
4) OpenScenGraph, open source, visualization
5) VTK, open source, scientific visualization

First of all, NSOpenGLView is a native control developed by Apple to have openGL embedded in a native view, which is very nice, and you can find couple of ready to built demos from Online Reference Library, OpenGL section.

While NSOpenGLView is a good place to start, the design is pretty basic at this moment. So I checked some game engine, ex. Ogre 3D. It got very decent resource management, scene construction and utilities that you’ll find handy in 3D space. To be able to use it as a native view in XCode, you need to direct the rendering output to NSView as described in this post and more examples can be found here here, ex. mouse control, etc.
ogre_nsview_color

unity icon
I mentioned Unity 3D here because I’ve used it for another of my project before. It’s a commercial game engine, very robust, cross platformed, and objects can be controlled through script language. Personally I like it a lot except the fact that it lacks the native GUI controls on OSX. And for this project, it could be very time consuming.

OpenSceneGraph and VTK are two visualization packages that are available to the open source community. Though I didn’t get chance to test them, from what I read from introduction, they contains lot of visualization processing libraries that will come handy if your data needs to be manipulated before plotting.

All in all, for this project, I chose Ogre. And this post will be keep updated as the project unfolds.

Fang

Reblog this post [with Zemanta]
VN:F [1.6.4_902]
Rating: 0.0/10 (0 votes cast)
VN:F [1.6.4_902]
Rating: 0 (from 0 votes)

C#, a new scripting language ?

June 13th, 2009 by windmaomao

Honestly I ain’t a fan for C#, it’s a new language, and can do a lot of fun things. But anyway at work I have to stick with Fortran and matlab, and at home I use c++ and python sometimes. Besides, I am a mac person now, thought there’s no way in the world I’ll be in using C#.

But, I guess I’m wrong :)

It seems C sharp is pretty popular among some game and web design or wherever these two meets. In writing a small game project, I’m extremely happy to use an internal scripting language extendable and powerful and easy to use as C#.

So I went ahead, download the simple C# bundle for my favorite text editor Textmate, and start programming on it. As for a standalone C sharp on mac, you can check out mono on OSX.

And here you go, life is good, isn’t it? :)

VN:F [1.6.4_902]
Rating: 0.0/10 (0 votes cast)
VN:F [1.6.4_902]
Rating: 0 (from 0 votes)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn

Battleship game demo, a fresh start :)

June 11th, 2009 by windmaomao

YouTube Preview Image

I’m trying to remodel a chinese game that I played at college, the movie shows a early stage demo. Couple of friends of mine are invited to join me including, (animation modeling)Hamed/Anne, (Audio effect)me/Henrique, (storyline and art)Ping/Yiming; all sorts of help and talents are welcomed. Just drop me an email, it’ll be fun and intense :) Hope to see you.

VN:F [1.6.4_902]
Rating: 0.0/10 (0 votes cast)
VN:F [1.6.4_902]
Rating: 0 (from 0 votes)
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn