3ds Max | Tutorials

A few notes about code optimization

47 votes

The base idea of this topic is to say to all coders - always to research, because this is the only way to get rid of any myths. Each myth may hinder your future development and may leave a wrong impression in us for the MaxScript language at all.

 

Be gamma correct!

41 votes

gamma corrected color checker

Gamma correction is one of those buzz words that are really easy in
terms of theory and math but confusing in how they are applied in
practice. As a consequence, it is largely ignored by many graphics
practicioners. This illustrated 10 page article is my attempt at
clarifying gamma correction in the context of 3D CGI by answering most
of the typical questions: "What is gamma? Why do we have it? When should I perform gamma correction? And what happens if I just ignore it?"

dotNet links

37 votes

A collection of links to dotNet + MAXScript information available. If you find a useful post, add it in the comments and this post will be updated to include it.

Get list of all subfolders

1 vote

-- How to get list of all sub folders in special path --

function GetAllSubDirs_fn MyDirectory =
(
temp = #();
s = 1;
folders = getDirectories (MyDirectory + "/*");
t = folders.count;
while s < t do
(
for i = s to t do (temp = getDirectories (folders[i]+"*");
for j = 1 to temp.count do folders[folders.count+1] = temp[j] );
s = t;
t = folders.count;
)
sort folders
return folders;
)
-- call the function whit a folder path --

GetAllSubDirs_fn("D:")

How to "Relax" while preserving the volume...

2 votes

It's just a small tip :

We often use the standard "relax tool" or "relax modifier"  that always shrinks the objects...

How to create a realtime feather system with ParticleFlow

54 votes

this is a very optimized solution to drive the behavior of particles by the deformation of a surface without to use script or complex rigs, this system can be useful not only to animate but just to model objects that have a large number of elements like tiles on a roof or to drive fractured objects to follow a deforming surface and so on, if you like this please let me know so I will produce more tutorials about the various implementations of this system

How To Rig A Crank-Connecting Rod System

0 votes

A = Angle Of Rotation
B = Rod Size
R = Crank Radius

CHANGE THE VALUES BETWEEN "..."

A = "X"_Rotation*180/pi
B = "30"
R = "10"
(B+R)-sqrt(B*B-R*R*sin(A)*sin(A))-R*cos(A)

MAXScript Coding Standards

37 votes

This document should be used as a source of input when developing your own, or your company’s, coding standards for MAXScript. There are many ways to format code, this style being just one of near infinite choices.

Maxscript for beginners #1

20 votes

Quick tutorial covering some basics of maxscript, generating and controlling objects etc. Might be useful for people wanting to get their feet wet with scripting.

Maxscript tutorial: Read external text file

1 vote

As the titles says this tutorial is about reading an external txt file. My friend asked me how to read and external text file using maxscript. He wanted to create a tool that grab system directory paths from an external predefined text file. Check the full tutorial here....

Kindest Regards

Alaa Alnahlawi

Syndicate content