Skip navigation

Tag Archives: 3ds

Let’s talk about optimization!!

This post give me the idea to start a thread on CgSociety’s forum to talk about optimization please join us HERE.

I want to show you a little tool created for an automatic optimization in production (Used on 4 productions) linked with an XML database.

This tool is exactly used like a sonar it detect all object viewed by the camera on a single frame, on a frame range or active segment. All those object are detected compared to a databased by production, that mean if you have specific objects you want to be ignored the script will automatically used those informations to make comparison with viewed object.

They are too steps in comparison a first one on detection that mean when detecting object it will ignore specified objects, class, Id … a second detection when choosing to hide/unhide objects outside view this detection is running at the complete end of script.

I have choose to put all objects outside view inside hidden Layer that an operator can check our not. If you want to separate objects inside another layer for any objects outside view you can add this filter inside the database for example: particles emitters if you putt them in same layers you can delete them and that will modify all particles if using same pflow for all similar objects.

Of course this tool isn’t good usable for objects that reflect his environment like Kaeloo (production Cube and Blue Spirit Studio). In this production characters reflect a reflection Sphere, clouds and sky that’s why those object are by default ignored by the Blue Sonar.

Blue Sonar parameters:

1-Choice between scanning:

2-Stationary camera (single frame)

3-Active Segment

If you choose 2 or 3 you can specify Every « n » frames to scan.

All those scanning option have a common Offset value to include a little bit more than the camera FOV for a maximum 90 degrees of FOV that mean if you camera is a 45 degree of FOV you have access to a maximum offset of 45 degree.

The camera view before blue sonar.

The camera view before blue sonar.

What's around the camera view before blue sonar.

What's around the camera view before blue sonar.

Scene's Layers before blue sonar.

Scene's Layers before blue sonar.

The camera view after blue sonar.

The camera view after blue sonar.

The camera view after blue sonar demonstrate that nothing change between the before and after view.

Around the camera view after blue sonar.

Around the camera view after blue sonar.

Around the camera view after blue sonar let you see what disappear after using Blue sonar.

Scene's layers after blue sonar.

Scene's layers after blue sonar.

You can see too layers created at the bottom list they are automatically hidden. The first one can be deleted if you in camera view if nothing disappear and the second one is used to stored all emitters outside camera view that you do not have to delete.

Final image

Final image

The problem is using this tool for all the timeline lenght take too long to be done when you are waiting in front of your computer that’s why i used the script heart as simple maxscript to use inside the Paul neal’s « batchItMax » this script have a single offset value 15 degrees. With this workflow we can optimize automatically 140 shots in one night it’s a big time saving.

This is my first concrete post and we will start with a big part how to connect flash with 3dsMax using simple action script.

-History:

I’ve started this integration based on Jo Plaete search in connection between Softimage XSI and Adobe Flash. I have done different interface in autodesk Softimage that i will show you later.

As a global TD at Blue Spirit Studio i was looking to make Animations UI for different series. The first One was for Kaeloo (series by Cube Creative and Blue Spirit Studio concept and direction by Rémi Chapotot). For this series we (Sebastien Albert and Me) made an interface in maxscript of which we were not completely satisfied by this one, we tried many techniques like DotNet, object based setup like joystick directly in scene. After all test it was clear flash UI was the good technology and during this search process i was looking at home how connect flash and 3dsMax and make it communicate in both direction and found solutions that i bring at Blue Spirit Studio. This technology is actually used on one series named « Les Petites Poules » adapted from the comics of Christian Jolibois, Christian Heinrich / Marine Locatelli, Patrick Régnard produced by Blue Spirit Studio directed by Jean-Luc François and will be used on coming series and movies with any improvements.

I will explain this concept by many steps and this post is the first one:

-Why an home made Animation UI?!

-All the characters in the company i’m working in are made around biped. If  you work with biped you have to use the motion tools for biped but this UI is very slow and poor that why using an different UI can be a big Plus.

– It’s a good tool for long production laps, like series where animators have to makes Seconds and seconds animation by day.

-Why using a flash UI in 3dsMax?!

-Easy UI creation: You can easily create your own look, design using vectorial components.

-Large community for Flash and ActionScript.

-Fast and powerful Language as ActionScript 3.0 that is an object oriented programming language allowing for more control and code re-usability when building complex Flash applications.

– Easy animated UI.

-Easy way to access to web’s 2.0 concept and most interesting access to Enteprise 2.0 (concept explain here). This concept is my goal because i really think CG company s are good places to apply this concept.

-Small flash tools can be integrate in a maxscript UI like DotNet tools.

-When working with flash and 3dsMax can be a problem:

-Actually there’s no flash player supporting 64bit that can be a problem in any cases.

-If you have text inside swf and have to edit it by default it’s impossible because 3dsMax accelerators are on and block other interactions i made a workaround for that too.

-I do not found how to pass directly more than one variable from 3dsMax to Flash and from Flash to 3dsMax but i found an workaround that i will explain later.

-It’s complicated to work on two software in same times but if you used to work with classes it can be easier using simple code editor like notepad ++ with class you can debug and change code in you UI directly in you code editor.