pin Table


(hdd) #1

hi all,
this is my first image made with blender…
with a SSS* script and a duplivert.
rendered with AmbientOcclusion.

c&c are welcome …

http://www.lorenzoangeli.net/down/BIglore.jpg

L
*Stupid Simple Script :wink:

p.S
sorry for my english…


(andrewprice) #2

HOLY CRAP!!
First image you say??

I take you have used other 3d programs before??
Whats your render time?
What does the script do?
Any chance of it being released?
How many objects in that scene?

Amazing work. Keep it up!! :smiley:


(hackyou) #3

mmm, so so :stuck_out_tongue:


(hdd) #4

thanks RedByte!

This is my first work on Blender ,but not with other 3d software (I work with Maya)
The render Time is a little bit High …1H for 1600*1200 image
the script simply read the luminance of an image and create a grid of vertex…
by hand I have to created a Cube , parent with grid and make the istance,
but i need to automate it… (soon a post to complete it)

here the script …but it’s incomplete for now…

L.


"""
create the Pin Table.... only Vertex...(for now.)

"""

import Blender
from Blender import *
from Blender import Image

STEP = 1

LUM_DEMULT=20

CLAMP=0

#apro l'immagine e la converto in BN
pic = Image.Load("d:/test.jpg")
#recupero le dimensioni dell'immagine	
size = pic.getSize()

x= size[0]
y= size[1]

#funzione di conversione da RGB a L
def RGB2L(RGB):
    R2L = 0.3*RGB[0]
    G2L = 0.57*RGB[1]
    B2L = 0.11*RGB[2]
    L =R2L+G2L+B2L
    return L

me=NMesh.GetRaw()

#ciclo all'interno dei pixel dell'immagine 
for u in range (0,x,STEP):
    for w in range (0,y,STEP):
        #recupero l'RGB
        rgb = pic.getPixelF(u,w)
        L=RGB2L(rgb)*LUM_DEMULT
        v=NMesh.Vert(float(u-(x/2)),float(w-(y/2)),float(L))
        if L >= CLAMP:
            me.verts.append(v)
	
NMesh.PutRaw(me,"Plane",1)
Blender.Redraw()


(jarkkopoika) #5

Hey thats nice!

i guess your SSS have nothing to do with sub surface scattering? got confused :smiley:

But really cool, Maybe i put it to my desktop.


(BeBraw) #6

Macroverse … :smiley: Very unique.

Outstanding first blend. Keep up good work.


(Villitz) #7

it looks cool, but its a bit empty. it needs something more… more color, some other objects maybe? i dunno, just something more :smiley:


(nehpets) #8

well, i understand how you made it. but you need to correct the colors a bit on your reference image…that will get rid of a lot of those spikes and irregularities.


(fallen_angel) #9

ei nice works
:smiley:


(hdd) #10

Wow Guys !
a lot of replies !!!

thanks to all for c&c

next step :

finish this script to make aviable to all… :wink:

L.


(SamAdam) #11

cool. i was looking at this kind of thing in maya. Could you make the script for for animations? I think that would look so cool.


(Khnum) #12

I assume you use a gray scale image as your ref for height. Would it be possible to use a color image with the same script as a second pass to assign color to the individual cubes equal to pixels in the image so you could get a photo if you looked top down but when angled you’d see what you have now?

I really like it, very cool!!! 8)


(hdd) #13

well, i understand how you made it. but you need to correct the colors a bit on your reference image…that will get rid of a lot of those spikes and irregularities.

mhh…it’s right i need to clamp some value…or resize them

cool. i was looking at this kind of thing in maya.

here a turorial (italian) to do it.
http://renderglobal.org/forum/showthread.php?t=8666

Could you make the script for for animations?

i need to study a little the API… who knows…

I assume you use a gray scale image as your ref for height. Would it be possible to use a color image with the same script as a second pass to assign color to the individual cubes equal to pixels in the image so you could get a photo if you looked top down but when angled you’d see what you have now?

i’ts an rgb image, converted to luminance with the RGB2L() funcion in the script.

for the color pass I’don’t know if it’s possible with the duplivert…(it’s a kind of istance…i mean) i can investigate

and thanks to all !

L.

some mel for maya on my site… someone interested ? :slight_smile:
www.3dexp.com/_lorenzo

p.S
sorry for my poor english…


(rexprime) #14

reminds me of the NINE INCH NAIL video for “only”. i wonder how long it took.