8 posts tagged

houdini

 79   1 mon   animation   houdini

What language to use in Panama.

Sometimes I feel like writing or talking on social media. But deciding which language to use is tricky. Russian guys don’t know Spanish. Many Panamanians do not speak English fluently and certainly do not know Russian.
Everything I watch and read is in English. But I rarely speak it. All my notes are also in English.
After ten years in the tropics, I began to forget some Russian words. Whether it is worth remembering – I do not know. Better to learn to speak correct Spanish. I speak often as a dockman with zero benevolence. My woman suggested at the beginning of conversations with new people to mention that I am Russian and frankness is not considered rudeness in our country.

In the video suggested by YouTube, a guy makes a dialog icon in five minutes in Sketch:

I liked the thumbnail and I made it in 3D.
At the same time, I practiced gluing panoramas with a high dynamic range. They are used for lighting most scenes in 3D. Just before the start of the quarantine, I took a few photos in the office. Unfortunately, the only program that glues them well (PTGui 12) costs $300. The demo works without restrictions, but it fills everything with watermarks. In Photoshop, however, they can be erased even in 32 bits. I guess it’s ok for just a fun project.
I also figured out a little bit more about the differences in normals between points and primitives in houdini.

Sometimes I need to get vector graphics from illustrator and extrude it in houdini.

Constant problem is that some parts can be flipped and will extrude in different direction. It’s happening because direction of paths when they were made in illustrator is different.

So I thought that I can add Attribute Expression node, set it to points, attribute to normal, set VEXpression from dropdown to Constant Value and write 0, 1, 0 in Contact Value to get normals pointing up. But it will not change the primitives normals. Because primitive normals are not actually an attribute. They are derived information that is calculated based upon the vertices that make up the primitive. As such, they cannot be modified. You can still use PolyExtrude, set it to point normal and extrusion mode to Existing. But you will end up with geo where some primitives normals will look “out” and others will look “in”. I don’t know if there is an easy fix for that.

So after you bringing you paths from illustrator you need first to separate primitives that are flipped. You can do this by using simple group node. Use only “keep by normals”, set the direction to 0,-1,0 and lower the spread angle. There is also Labs Split Primitives by Normal node that does exactly this but with less clicks.
Then use a reverse node. It WILL reverse vertex order in the primitives.

Also takes are amazing. You can create different version of scene and in render node save an image with take name like this:
$HIP/render/r01/bubbles.static.s5.`chsop(“take”)`.$F2.tif
So `chsop(“take”)` part is responsible for take name. And in my case the output names will be:
bubbles.static.s5.blue_bubbles.01.tif
bubbles.static.s5.orange_bubbles.01.tif

 153   3 mon   3dmodeling   houdini   redshift

Ya no tengo apetito

3d modeled in Modo, assembled in Houdini, rendered with Redshift and post in Nuke.

 94   6 mon   3d   animation   houdini   modo   nuke

Gif creation from sequence of images or mp4

When I need to create gifs I ususally use After Effects and plugin GifGun.
But sometimes it doesn’t play nice with colors. They have an “experimental engine” inside as an option but that result in huge size gifs.
Some people use Ezgif. But it has some limitations and you need to upload to web.

So this weekend I tried ImageMagick.
It also installs FFMPEG. So you use it first to convert videos or image sequeces to gif first. And then compress it with ImageMagick. There is no GUI on Windows so you use Command Prompt (it’s like Terminal on Mac).

First you change your current location to the directory where you files are with. Just type cd, drag and drop directory in the “terminal” and hit enter.

I rendered 720x1280px image sequece in houdini with names like this:
CAM_top.0001.tif,
CAM_top.0002.tif,
...
CAM_top.0072.tif

So to convert it to 24 fps gif with half-resolution and custom color pattern (for better colors representation) I used this line:

ffmpeg -r 24 -i CAM_top.%04d.tif -filter_complex “[0:v] scale=360:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse” output_360px.gif

And then compressed it with ImageMagick with this:

magick convert output_360px.gif -fuzz 1% -layers Optimize output_360px_fuzz1.gif

fuzz1 – controls the amount of compresion. For example in some other tests fuzz5 gave ok results and smaller files size.
Here is another example of creating gif from mp4 – with rescaling, changing fps and single pattern generation. Split just means that we split this video into 2 and one use for pattern generation and other for convetion to gif after that:

ffmpeg -i video_source.mp4 -filter_complex “[0:v] fps=12,scale=540:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse” output_name.gif

Creating gif from mp4 – with rescaling, changing fps. Pattern generated for every frame – this helps if there are lots of color variations in gif but will increase the size:

ffmpeg -i video_source.mp4 -filter_complex “[0:v] fps=12,scale=w=540:h=-1,split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1” output_name.gif

Here is single camera view (6 MB):

And here is 15 seconds version with lots of motion (21 MB):

 269   8 mon   animation   houdini   windows

Starting with Houdini

I’ve been using Houdini on and off for a couple of years. And some concepts are difficult to grasp. Especially if you coming from another 3d application.
There is short course that I can now recommend to anyone who want to start having fun with Houdini:
Houdini Made Easy 01 – The Core Essentials from Hipflask. It’s completely free.
They also have 50% off until April 30th, 2020 on 2 other courses. I finished them and can’t recommend enough. One of the best teachers and flow of presenting information.
Random short animation:

 238   2020   houdini
 149   2019   3d   houdini   redshift

Globe of Panama

Some experiments that I made figuring out the best way to pass geo from Houdini to Modo to render with V-Ray:

 100   2019   houdini   modo   vray

Heart in a cage

I’m in love with SideFx Houdini. It’s the most fun and liberating app for 3d that I’ve ever seen. It’s procedural, node-based and the developers are moving to the future (looking at you, Modo, with sad eyes). Around a month ago I also bite the bullet and bought Redshift rendering engine.
There are tons of tutorials for 3d artist of every level. But this one gives a really strong foundation of poly-modeling:
Vehicle Modeling in Houdini 16.5

I made a short animation:

And here is how it was made:

There is still a lot to learn. For example, I don’t know how to get motion blur to work when the amount of geometry is changing from frame to frame. I guess I need to calculate velocity on birth and pass it to final geo but don’t know how exactly to do that.

 159   2019   3d   houdini   redshift