Thursday, January 6, 2011

Segment 3D model in blender to get a separate OBJ goup


1) Laso select desired faces in edit mode - CTL+LMS drag (use vertex/edge/face selection as needed - buttons at the right end). First select roughly and unlselect (CTR+Shift+LMS drag) to refine the selection. Edge mode helps here.

2) Split by pressing 'p' (split P mesh/vertex/split)

3) Select the part in object mode (tab) and give object and data block name in Link and Materials window.

4) Select all and export as obj (Say export blender objects as OBJ groups using the buttons at the bottom)


Tuesday, November 30, 2010

Emacs as an IDE

Wednesday, April 7, 2010

Fast rendering 2D projections of 3D model data

The renderer performs a high speed rendering of a Autodesk 3DS model, using OpenGL offscreen rendering. The rendered image could be pixel intensities, surface normal values or other attributes.

Given a 3DS model like this:

For a given rotation, shift and scale, a 2D projection like this is rendered. Intensity values are returned/stored in memory for further processing.

Alternatively, other attributes like surface normal components could also be rendered instead of the color intensities.

For example x, y, z components of the model surface normals have been rendered in the 3 images below.

Tuesday, March 16, 2010

shell script to rename all UPPERCASE files to lowercase

for f in *; do
g=`expr "xxx$f" : 'xxx\(.*\)' | tr '[A-Z]' '[a-z]'`
mv "$f" "$g"

Tuesday, March 9, 2010

Notes on compiling mex file without gcc version warning

Changed as (Matlab2009b/bim/ is changed use mex -setup to select that conf as the default after the changes)

# StorageVersion: 1.0
# CkeyName: GNU C
# CkeyManufacturer: GNU
# CkeyLanguage: C
# CkeyVersion:


#Srimal: we allow // style comments due to opencv .h files

Friday, March 5, 2010

Run mex functions using opencv 2.0 code with MATLAB R2009b

We get this error:

??? Invalid MEX-file '/home/srimal/svnworking/renderer/mexLossC/mexLossC.mexglx':
/home/srimal/MatlabR2009b/bin/glnx86/../../sys/os/glnx86/ version `GLIBCXX_3.4.11' not found (required by


ln -s /usr/lib/ ~/MatlabR2009b/sys/os/glnx86/