Thursday, February 18, 2010

How to svnsync on Windows?

One of the most powerful tool in subversion is the ability to transfer repository from one server to another.

That tool is called svnsync. There are some documentations around but not much tutorial.

Let's pretend that your project's source code is currently hosted at https://svn.old.com and wanted it to transfer at https://svn.new.com.

So, how do we migrate the source code? Simple. First, install Slik-Subversion from Slik-SVN.com. Now, follow the next procedure.
  1. Run a Command Prompt
  2. Type-in: svnsync initialize https://svn.new.com https://svn.old.com/trunk/
  3. Then type-in: svnsync synchronize --source-username mynewsvn_usr --source-password mynewsvn_pwd --sync-username myoldsvn_usr --sync-password myoldsvn_pwd https://svn.new.com
Viola! You are done!

Of course, you will have to edit the following to apply on your situation.
  1. mynewsvn_usr to your real username at your https://svn.new.com site
  2. mynewsvn_pwd to your real password at your https://svn.new.com site
  3. myoldsvn_usr to your real username at your https://svn.old.com site
  4. myoldsvn_pwd to your real password at your https://svn.old.com site
Not to mention, change:
  1. https://svn.old.com to your real old project repository
  2. https://svn.new.com to your real new project repository
Enjoy migrating!

Wednesday, February 17, 2010

Blender: Export 3D Model for Flash

I did a demo of my WIND library late January this year and I was having problem exporting the 3D model from Blender, properly.

The screen resolution of the laptop I'm using went to 640 by 480 upon attaching the LCD projector. I was having a hard time figuring the problem out. Until the demo ended, and I detached the LCD projector cable and *poof* -- I know what I've been missing.

Below is the screenshot of how to properly export 3D model for use of Papervision.
  • Make sure the model is exported in Triangles -- not Quads.
  • Obviously, export only the model -- not the whole scene.
  • Make sure the texture path is Relative to the Collada file path.
  • Then finally, to have a deformed model (aka posed model), toggle on Apply Modifiers.

The demo went okay until the exporting problem -- sheesh...