Current stable version: 0.1.1

View topic - [The Lost Bytes] sudo rm -Rf /

[The Lost Bytes] sudo rm -Rf /

Only for showing your progresses and for art related questions. Not for asking about usage.

[The Lost Bytes] sudo rm -Rf /

Post Sat Jun 07, 2008 8:18 am

Hi there,

"sudo rm -Rf /" is a mistake I did when learning how using shell commands on my ubuntu box. So I thought it could be a nice title for my work.
This command simply ask your linux box to remove recursively all files located in your file systems directory.
So I would have to produce something that could talk about bytes being processed for deletion.
Everything (modelling, positionning, yafaray materials) except camera position : made with python scripting.
It's actually a WIP as the script needs a bit more works.

.edit (08/06/11) :
here are previous rendering tests using some earlier versions of the script :

Image

Image

Image

Bonus :
Here is a past version of my script (this one doesn't assigns yafaray materials), it has a BUG and it computes something like the last rendered picture. Will post the final script when job is finished.


Code: Select all
from Blender import *
import math, random, sys

radius = 100.0

height = .033
size = .033
max_alt = .02
print
offset = 0.0
loops = 50
maxangle = 4.0


scene = Scene.GetCurrent()

editmode = Window.EditMode()
if editmode : Window.EditMode(0)
material_on = Material.New("On")
material_off = Material.New("Off")
coords = []
faces = []
sys.exit()
for l in range(loops) :
   erase = False
   if random.random()<.5 :
         erase = not erase
   fragments = int(maxangle/(math.atan((size/2)/(radius+height))*180/math.pi*2))
   divide = maxangle / fragments
   radius_increment = height/fragments
   for i in range(fragments) :
      if random.random()<.1 :
         radius += radius_increment
         offset += max_alt/fragments
         continue
      if random.random()<.01 :
         erase = not erase
      coords = []
      angleA = ((i * divide) + (divide / 75)) / 180 * math.pi
      angleB = (((i+1) * divide) - (divide / 75)) / 180 * math.pi
      altitude = max_alt
      if erase : altitude = random.random()*max_alt
      for i in range(2) :
         coords.append([])
         coords[0+(i*4)].append(math.cos(angleA)*radius)
         coords[0+(i*4)].append(math.sin(angleA)*radius)
         coords[0+(i*4)].append(i*altitude+offset)
         coords.append([])
         coords[1+(i*4)].append(math.cos(angleA)*(radius+height))
         coords[1+(i*4)].append(math.sin(angleA)*(radius+height))
         coords[1+(i*4)].append(i*altitude+offset)
         coords.append([])
         coords[2+(i*4)].append(math.cos(angleB)*(radius+height+radius_increment))
         coords[2+(i*4)].append(math.sin(angleB)*(radius+height+radius_increment))
         coords[2+(i*4)].append(i*altitude+offset)
         coords.append([])
         coords[3+(i*4)].append(math.cos(angleB)*(radius+radius_increment))
         coords[3+(i*4)].append(math.sin(angleB)*(radius+radius_increment))
         coords[3+(i*4)].append(i*altitude+offset)
      faces = [[3,2,1,0],[4,5,6,7],[0,1,5,4],[1,2,6,5],[2,3,7,6],[3,0,4,7]]
      mesh = Mesh.New("fragment_mesh")
      mesh.verts.extend(coords)
      mesh.faces.extend(faces)
      mesh.vertexColors = 1
      mesh.faces[0].col[0].r = 255
      mesh.faces[0].col[1].g = 255
      mesh.faces[0].col[2].b = 255
      object = scene.objects.new(mesh, "fragment")
      object.setMaterials([material_on])
      if erase : object.setMaterials([material_off])
      object.colbits = (1<<0)
      radius += radius_increment
      offset += max_alt/fragments


And the last WIP render :

Image

.umxprime
Last edited by umxprime on Wed Jun 11, 2008 9:19 am, edited 1 time in total.
umxprime
 
Posts: 20
Joined: Fri May 30, 2008 11:04 pm

Re: [The Lost Bytes] sudo rm -Rf /

Post Sat Jun 07, 2008 3:17 pm

umxprime wrote:Everything (modelling, positionning, yafaray materials) except camera position : made with python scripting.


:shock:
very...digitally pure and conceptual indeed.
Cheers.

Pentium4 3.0 HT, 4 GB ram, Windows XP 32bit.
Blender 2.46, YafaRay 2.0.2
palawat
 
Posts: 55
Joined: Wed Jan 09, 2008 4:21 am
Location: Bangkok, TH

Post Sat Jun 07, 2008 9:05 pm

Nicely done! I like the raw feel of it, and the whole thing reminds me of Tron. :)
Kifa
 
Posts: 30
Joined: Sat Jun 07, 2008 3:24 pm
Location: Lublin, Poland

Post Wed Jun 11, 2008 9:20 am

thx for ur feedback.
just updated the thread ;)
umxprime
 
Posts: 20
Joined: Fri May 30, 2008 11:04 pm

Post Thu Jun 12, 2008 12:03 am

Woah, I've been thinking of something similar to the first render you posted, but dropped the idea after sketching it up... The piece of code looks as simple and complicated to me a the same time. :o Well, never had enough brains to write anything that worked... :wink: Great job!
Kifa
 
Posts: 30
Joined: Sat Jun 07, 2008 3:24 pm
Location: Lublin, Poland

Post Mon Jun 30, 2008 5:52 pm

job finished, so will post it in finished project

edit : my work is there
http://www.yafray.org/forum/viewtopic.php?p=8374#8374
umxprime
 
Posts: 20
Joined: Fri May 30, 2008 11:04 pm


Return to Works in Progress

Who is online

Users browsing this forum: No registered users and 0 guests