Showing posts with label ribs. Show all posts
Showing posts with label ribs. Show all posts

Monday, November 18, 2013

Painting geometry and MEL scripts (Poplate)

I just added a new post to my other blog, Last Light Film Blog, where I talk a little about a MEL script I made a few quarters ago which was designed to allow me to randomly place as many different geometry files on a surface while controlling various aspects such as collision detection and scaling.  Long story short, my script had too many bugs to use in my forest scene for my senior film, so i decided to use another tool I recently discovered called the Paint Geometry tool.  No this tool doesn't let you paint on geometry (there are plenty of other ways to do that already, I prefer Z Brush or Mudbox myself).  Rather, this tool allows you to literally paint geometry on the surface of any geo you want.  So you could paint 3D bears on a sphere, grass on a plane, or in my case, a forest of pine trees on a mountain.

I decided to use this tool but there are a few issues with it I still need to work out.  First of all, it allows penetrating geometry, which may not be a problem in my case since the trees are all far away, but I will have to spend the time to see if it is noticeable and fix it if it is.  It also only allows one geometry to be painted on, which means I had to repeat the process with a different geo to get some variety.  Luckily it also supports randomizing scale and rotation, and even translation, but it does each axis by itself.  This means I could potentially have a flat tree, which is not desirable.

So while I am still using this tool for now and have made adjustments to make sure it looks good, I have decided to still look into fixing my existing script, "Populate".  Populate will allow me to chose how many trees I want (or how dense I want it), how close together they are (for collision detection), select from as many ma and mb files as I want (and eventually obj, fbx, and alembic), and allow me to not only have random rotation on one or more axis, but also control random scaling in one of 3 ways, uniform scaling, diameter vs height (x+z vs y), or each axis separately.  I don't have to time right now to fix this... it is finals week, but during the winter break I want to take another look at this code and get a final fully functional version out there and then share it on here for anyone to use.

I will provide more documentation on Populate when I get the chance to refine it.  It does have some specific requirements for the importing geometry, and I would LOVE to have it use rib archives or even instances of an object instead of just geometry, to fit the user's needs.  For now, enjoy a screenshot from the opening shot of my final film (not lit or textured yet).


Thursday, October 17, 2013

Snow globes

Just in time for Christmas.... oh wait, isn't there another Holiday or 2 between now and then?  Ah who cares about those holidays, we all know the only holiday that counts is the one where people spend the most money.  At least that's what stores seem to think.  Honestly I love Halloween and Thanksgiving, but for my latest project in my Renderman class (VSFX 319), we had to model snow globes.  While one girl in class actually did do a Halloween themed snow globe, I couldn't help but equate snow globe with Christmas.  So I decided to model Santa's Workshop.

The assignment was specifically to learn IBL (Image Based Lighting), which is a way of taking a very specific image (HDRI) of an environment and putting it in a scene, allowing the computer to calculate the lighting of the scene based on the values in the image.  It's kind of like taking an environment and putting it into your scene.  Sounds magical, but it is really not going to look right.  Imagine taking motion capture data and just leaving the raw data on the character and displaying that in a movie... it doesn't look good, trust me.  Animators need to adjust and tweak and fix the raw data into something that looks good and suitable for the character.  Just like that, I have to take this IBL and tweak it, add lights, adjust values, etc. to make the lighting look realistic like the object belongs in the scene.

We also had to use a specific Global Illumination technique, and actually got to play with 2 methods of it.  One uses Point Clouds to calculate illumination and occlusion, while the other uses ray tracing.  The point cloud based method is faster, stores the data to speed up processing later on, and developed by Pixar, but prone to inaccuracies.  The raytracing method is longer, but more accurate.  I used a hybrid technique where I raytraced, and then stored the data to speed up the processing.  It took about an hour and a bit to render these, but it was surprising to see some students with render times ranging from 20 minutes to over 4 hours!

I haven't quite dialed in the lighting all the way yet, and I am still working on the camera focal length (so expect more updates on this one later), but for now, I am relatively pleased with the results of my work, but I'm not going to leave it there.  For now, though, enjoy these three images.  Ho ho ho.




Wednesday, October 2, 2013

Teapots and Ribs. Yum!

This quarter I have been taking a Renderman class.  Well, it is technically PR Renderman (Photo Real Renderman), which is really just a production ready and incredibly powerful rendering tool.  It is used by a lot of large studios, and developed by (surprise) Pixar.

Right now, we are programming in scene description files, known as "ribs", which is like coding a scene by hand, geometry, lights and all.  It is actually rather challenging, but fun when you get used to it.  But it is slow, not fast at all, but knowing how the codes work is really useful.

Our latest assignment was to make a scene with a teapot, and some of the student's works were spectacular!  And yes, these were all HAND CODED (although we did get to use Cutter to help).  I decided to use this year's Renderman Walking Teapot toy I got from SIGGRAPH 2013 as reference, but the shapes were too complicated for me to figure out in the short time we had.  So I used it as inspiration, and made it my own.

The concept I had for this piece was to make it look like a toy tea set, since I used a toy as inspiration.  There is more I would like to do to this, but for right now, I am rather happy with what I have.  Feel free to leave feedback or comments!