Short PV for the song"sakura".

http://clock-music.net/sakura/

In this animation,I used node-base displacement map.

base model

and hightmap…

…makes texture displace.

node map

script

from Blender import Node

import mathclass eSetUp(Node.Scripted):

def

init(self, sockets):

disp = Node.Socket(‘dispXY’, val = [1.0]*3)

normal = Node.Socket(‘NORMAL’, val = [1.0]*3)

sockets.input = [normal]

sockets.output = [normal,disp]def

call(self):

ocol = list(self.input.normal)

ocol2 = list(self.input.normal)

ocol2[0] = ocol[0] * math.cos(-self.s.surfaceViewVector[0]) - ocol[2] * math.sin(-self.s.surfaceViewVector[0])

ocol2[1] = ocol[1]

ocol2[2] = ocol[0] * math.sin(-self.s.surfaceViewVector[0]) + ocol[2] * math.cos(-self.s.surfaceViewVector[0])

ocol[0] = ocol2[0]

ocol[1] = ocol2[1] * math.cos(self.s.surfaceViewVector[1]) + ocol2[2] * math.sin(self.s.surfaceViewVector[1])

ocol[2] = ocol2[2] * math.cos(self.s.surfaceViewVector[1]) - ocol2[1] * math.sin(self.s.surfaceViewVector[1])

self.output.normal = ocol`tenten = list(self.s.tangent) tenkak = math.atan2(-tenten[1],tenten[0]) ocol2[0] = ocol[0] * math.cos(tenkak) - ocol[1] * math.sin(tenkak) ocol2[1] = ocol[0] * math.sin(tenkak) + ocol[1] * math.cos(tenkak) self.output.dispXY = ocol2`

node= eSetUp

I used this for buildings,soil and the cherry blossoms.