Monthly Archives: September 2011

Offset Surface with Lofts

So you have a Surface and you want to create some Thickness.

This script, allows you to select a surface (either with Trim Edges or without) and create an offset with Loft.

$selectedSur = `ls -sl`;
$offsetSur = `offsetSurface -ch on -m 0 -d 1 $selectedSur` ;
string $surEdges[] = `ls ($selectedSur[0] +".edge[*]")`;
string $offsurEdges[] = `ls ($offsetSur[0] +".edge[*]")`;
int $i = 0;
for ($i = 0;$i loft -ch 1 -u 1 -c 0 -ar 1 -d 3 -ss 1 -rn 0 -po 0 -rsn true $surEdges[$i] $offsurEdges[$i];
}

if (0 == size($surEdges)){
$minU = `getAttr($selectedSur[0]+".minValueU")`;
$maxU = `getAttr($selectedSur[0]+".maxValueU")`;

$minV = `getAttr($selectedSur[0]+".minValueV")`;
$maxV = `getAttr($selectedSur[0]+".maxValueV")`;
//check Seam
if (getAttr(($selectedSur[0]+".formU")) != 2){
loft -ch 1 -u 1 -c 0 -ar 1 -d 3 -ss 1 -rn 0 -po 0 -rsn true ($offsetSur[0]+ ".u[" + $minU +"]") ($selectedSur[0]+".u[" + $minU +"]");
loft -ch 1 -u 1 -c 0 -ar 1 -d 3 -ss 1 -rn 0 -po 0 -rsn true ($offsetSur[0]+ ".u[" + $maxU +"]") ($selectedSur[0]+".u[" + $maxU +"]");
}

if (getAttr(($selectedSur[0]+".formV")) != 2){
loft -ch 1 -u 1 -c 0 -ar 1 -d 3 -ss 1 -rn 0 -po 0 -rsn true ($offsetSur[0]+ ".v[" + $minV +"]") ($selectedSur[0]+".v[" + $minV +"]");
loft -ch 1 -u 1 -c 0 -ar 1 -d 3 -ss 1 -rn 0 -po 0 -rsn true ($offsetSur[0]+ ".v[" + $maxV +"]") ($selectedSur[0]+".v[" + $maxV +"]");
}

}

 

Historic Speed Modelling

Free Stuff: Classic Command and Conquer

A guide to download and install the classic CnC Tiberian Dawn, Tiberian Sun as well as Red Alert can be found at: http://www.cncworld.org/index.php?page=features/tutorials/index

Fun additional stuff for Red Alert can be downloaded at:

http://ra.afraid.org/html/downloads/campaigns.html

 

Getting Red Alert to run on Windows 7 with correct colors:

  1. Go to http://hifi.iki.fi/cnc-ddraw/#download
  2. Copy the .dll file into the Red Alert Directory

Smoothing a Poly Cylinder

Beim erstellen des Polygon Zylinders sollte die Anzahl der Subdivision Axis durch 4 teilbar sein. Dann kann man sehr leicht den oberen und unteren Deckel in Quads umwandeln indem man jede zweite Edge löscht.

Mit dem Objekt selektiert drückt man 3 um den Smooth Mesh Preview zu erhalten. Die Kanten sind sehr rund.

Man kann das Crease Tool, Bevel oder Insert Edge Loop Tool verwenden um eine schärfere Kante zu erhalten:

Crease Tool:

  1. Man selektiert die Kante.
  2. Proxy > Crease Tool
  3.  Durch bewegung der Maus mit gedrückter MMB  lässt sich der Schärfegrad einstellen.

Vorteile: Keine zusätzlichen Polygone werden erzeugt

Nachteile: Nicht alle Renderengines unterstützen diese Eigenschaft und das Ergebnis ist mittelmäßig wenn man keine extrem scharfe Kante benötigt.

Bevel:

  1. Man selektiert die Kante.
  2. Edit Mesh > Bevel
  3. Durch verändern des Offset Wertes lässt sich der Schärfegrad einstellen.

Vorteile: Sehr exaktes Verfahren

Nachteile: Fügt unnötig viele Polygone hinzu

Insert Edge Loop Tool:

  1. Edit Mesh > Insert Edge Loop Tool
  2. Man klickt an die entsprechende Stelle um die Abrundung genauer zu definieren.
  3. Durch selektieren des Edge Loops und dem Edit Mesh > Slide Edge Tool lässt sich der Schärfegrad einstellen.

Vorteile: Fügt nur wenige Polygone hinzu.

Nachteile: Ist kein exaktes Verfahren.

Vergleich:

Von Links nach Rechts: Crease Tool (value 1.0), Bevel (Offset 0.1), Insert Edge Loop Tool:

 

How to make Newton’s Cradle

  1. Create 5 touching Nurbs spheres (apparently with Poly spheres the dynamics-simulation screws up)
  2. Convert the 5 spheres to active Rigid Bodies (Bounciness 1, Static Friction 0, Dynamic Friction, 0)
  3. Add a Gravity Field to the Spheres
  4. For the first sphere add an “Initial Impulse” of 10 in the direction of the other spheres
  5. Create for each sphere two nail constraints
  6. Create the frame (CV-Curve with Extrude)
  7. Create the cables for the balls and parent them to their spheres