Jump to content
Hash, Inc. - Animation:Master

PopaR

*A:M User*
  • Posts

    40
  • Joined

  • Last visited

Posts posted by PopaR

  1. An import plugin should be able to convert all of a models assets or references to assets to something that AM understands. Likewise, an exporter should convert the AM references or assets into something that is understood by another program. The ideal should be the ability to convert a file to a mdl, then take that mdl anb convert it back and have the original program not see a difference.
    However, taking the development of a plugin in steps allows the chance to test the parts and allow others to test the parts. It also allows others to build upon a started but dropped project, or improve a part, without starting from scratch.
    Some exporters may need helper plugins to ensure that the assets of the mdl are correctly placed, or meet the standards of the target format. At some point, it may become possible to integrate the seperate helpers into the export process, at least as final checks, to make sure that it will perform as intended.

     

    Sorry, didn't mean for the tone, didn't notice until I reread it a few days later. And I hadn't noticed that Rodney had given some sample milestones.

  2. I think this is the last major concern for planet building: the habitability zone (AKA, the goldilocks zone). A good article, with a graph based on solar mass can be found here: http://science.howstuffworks.com/other-earth1.htm

     

    Generally, unless I was going to feature an eclipse, as long as the sun looks far away it is probably OK in most instances. In those instances where your distance does not give you the correct, or the desired results, some trickery can be used, like negative lights, changing out the type of light, etc.

  3. Mars and Earth are about 56,000,000km apart at thier closest. In scale that would be 190,000cm, or 1900m. (fudged the numbers to get rid of trailing 6s)

    For Earth & Venus, the distance is about 24,000,000km. In scale, that is 80,000cm, or 800m.

    In both cases, the closest passing distances were used, but they are often further away.

  4. Guess I may as well put my two down.
    A nif import/export

    Which will require at least one helper plug in

    and recently,
    A new bake texture. I get why the generated texture is flipped, and I think I know why most of the patch maps are rotated, but I will have to dig through the code to find a real solution.

  5. Yeah, I'll probably want to do that.

    Anyways...
    Just sat down and decided to figure out what the optimal planet size & scale were being targeted by the modifier.
    This is not hard, since it is designed to give you an Earth-like planet.
    The secret lies in Polar Distance. It is set for 22cm, so assuming the axial tilt is around 30 degrees, 1/4 the cicumference is 33cm, full circumference is 132, using the formula to find the circumference we get a radius of about 21cm.
    Now for scale, Earth has a radius of about 6371km, so the scale factor is roughly 300km to 1cm, or 30,000,000 to 1.
    A reasonable scale for dealing with planetary systems.

     

    For reference, one AU (average distance between Earth & Sun) is about 150,000,000,000km, so 1AU would be 500,000cm or 5000m at that scale

  6. So, how does one go about intelligently creating a planetary surface with the Planet modifier?

    The way I'm going to do it from now on is this:

     

    first, set Polar Distance to equal the radius, and set Ice and Snow to 5. all of these will get tweaked later.

     

    The actual basic land mass generation is governed by Feature Size and Seed. Looking a bit deeper into Feature Size, it is the rough size of a land mass when water is set to 50. which is why you get lots of little islands when you have a low value on a large model. so, if you have a model that is 10m (1000cm) in radius and you want 4 or 5 main land masses, you need to start with Feature Sizes around 1570 (2×1000×3.1417=6283.4, 6283.4÷4=1570.8). Note that when two features are generated too close to each other, they combine together. The Seed alters how the generator creates the features,its relationship to the terrain being generated probably requires a deep understanding of fractals and their generation. Seed does have a range limited from 0 to 16384 inclusive. So, get your rough Feature Size to where you want it, then play with the seeds until you find an arraingement of landmasses you like. don't worry too much about mountains and such, we'll adjust them shortly.

     

    Next we play with Frequency, Amplitude, and Octaves. I gave the impression that I don't understand these things, but I do, at least when it comes to RF waves. Freqency is the distance between peeks or between troughs, or a complete cycle of the wave. Amplitude is how high above & how low under 0 the wave goes. Octaves are used in music and each octave is twice the value of the octave before it and half of the octave after it. So, the more octaves you have, the more variability in frequency you should get. So, according to the current thoughts on planet formation and aging, a young or geologically active planet should have tall jagged mountains, so high values should be used. An old or geologically inactive planet should have soft weathered mountains that aren't very high, so use low values. You can use Bump Strength to further tweak how strong or weak the terrain is. Offset will shift the average height generated up or down, with 50 being centered. This has a few uses, but its effects are similar to altering the water level. Any changes beyond this need to be done on baked texture maps.

     

    Now for final tweaks: Polar Distance, Water, Ice, Snow, Depth Noise, and Water Depth. I start with the water, the value shifts the water level up and down, and there are a number of other calculations going on that adjust moisture related features, such as snowcaps and vegetation. Sins I am working ob water, I adjust its appearance. Depth Noise and Water Depth add the appearance of shallow and deep water. A little science here: light from the sun strikes the ocean, part of this light is reflected off, but some of it penetrates and reflects off of things that are underwater, such as the seabed, some of this light gets trapped while some of it makes its way back to the surface and is effectively emitted. But, the light can only penetrate so far before it looses all of its energy, there are two zones that receive light, the sunlight zone (surface to 200m), and the twilight zone (200m to 1000m), light does not penetrate any further. So, any water deeper then 200m is not going to reflect much light back, and anything deeper then 1km is not going to reflect any. It can be argued that if the ocean was pure water, with nothing in suspension or solution, that light could penetrate further, which is why we can adjust these settings. Water Depth sets where light has nothing to reflect from (on earth, this would be a little past the 200m mark). Depth Noise is how clearly the seabed is reflected out (the composition of the water causes light to scatter, which is why the depth adds noise).

    On to the other side of water. I like to start with the Polar Distance, and I start with the planets axial tilt, this is in relationship to the planets orbital plane (assuming a simple system with one, maybe two suns). The main cause is the axial tilt, but even a planet with no tilt will have icecaps (if it has enough moisture), distance from a source of external heat (light) can do this (you can think of Europa as being one giant icecap). Since planets with a tilt also have seasonal shifts, we are looking for the average, which is easy: it is the Axial Tilt. Getting to what we need is a bit more work: ((90-Axial Tilt)÷90)×((Radius×PI)÷2). What we are doing is finding out how far the edge of the icecap is from the equator, as a percent (we could convert to rads, or use trig, but why), next we need to know how far it is from equator to pole, since its 1/4 the circumference (2×PI×r), we need the circumference divided by 4, finally, multiplying them together gives us the distance. If your planet is closer to its sun, you should increase the distance, and decrease it if its further. Ice and snow I adjust to suit my taste.

    If you are going to show seasonal progression, create a north and south hemisphere and set each to have the material, and make all of the values match. This will be your spring and fall/autumn settings, When a hemisphere is in winter, the Polar Distance should be decreased slightly, and the Ice & Snow adjusted to suit deep winter snowfall & freeze, for summer the opposite should be done. And the hemispheres should be set as opposites (summer in north its winter in south; winter in north its summer in south).

     

    The only two settings I have not covered are Mottle Size and Mottle Magnitude. These determine the size and strength of vegetation coverage. I generally leave them as is & do any changes on the baked maps.

  7. Forgot, there are settings in the material shortcut that can be edited to rotate the material.

     

    So, here is what happened with a model that is 4 patches high and 8 around

     

    The map file is eight units across, like before, but the first patch is not the top. heck, the entire first column is flipped vertically in relation to the model. And I was wrong, there may be four strips that were generated running around the model, but the seperation has been moved into the equatrial patches.

     

    So, the function assumes a n-s orientation, and it is best to work with that, even with the flipped & rotated sections.

  8. Playing with the Planet material combiner, here is some info: (Looks like I will have to isolate some of these to see what they really do)

    Feature Size is how large the features are.

    This is not keyed to how large the model or patches are, so a "physically" large model will need larger values to get actual land masses and not a whole mess of tiny islands. The number of patches has no bearing on the calculations, in fact my station renders the same surface with 64 patches as it did with hundreds.

    Polar Distance is what the ice caps cover. It is the distance from the equator in cm, a value of 0 turns this off.

    It appears to be along the surface, not the y-axis. It really should have been an angular measure, as the icecap would depend on how the planet rotates in relation to its orbit; a percentage would heve worked too. As a reference, if you set your PD = to the planets radius you get about a 31 degree coverage.

    Water primarily affects the elevation of the water. Not sure whether it is a percentage of the amplitude, but it is easiest to treat it as such.

    The best range seems to fall between 20 and 80; below 20 is barren and over 80 is waterworld. This does affect vegetation and snowcap generation.

    Bump Strength is surface roughness, as a percent, as is standard in AM

    Ice is a percentage of coverage to the equator. It has 2 big effects, adding ice to snowcaps and ice to icecaps. A value of 0 turns it off.

    Frequency Factor is similar to roughness, it appears to be the underlying surface that is modified by roughness, amplitude, and octaves.

    Amplitude Factor is a percentage. Appears to act like roughness or frequency factor.

    Octaves alters the waves generated by Frequency and Amplitude

    Noise Factor adds chaos to some of the other generators, it is most noticable in Polar Distance and Ice.

    Seed is used to generate the terrain and allows the terrain to be generated in the same way with a certain selection of settings.

    Offset is a percent, looks like it shifts the median up and down, affecting terrain generation.

    Mottle Size affects how fine or coarse the generated color map is

    Higher numbers mean larger clumps means coarser, lower is opposite

    Mottle Magnitude ?? it is a percentage

    Depth Noise another percentage, uses the terrain that is underwater to affect the shading of the water.

    Max Depth caps the values for water depth?

    Snow the last percentage. Affects snow coverage, works in conjunction with Polar Distance and Ice to provide coverage

     

    The material does not generate a displacement map, and in most cases I would agree that it would be overkill, and I may just go with bump maps after I block my shots.

    Wish it had a seasonal adjustment, thought that was what snow was going to do, but no. A seasonal would shift the north and south hemispheres in opposition, with the middle being spring/fall, one end would have summer in the north and winter in the south, the oppositer end would swap the seasons. This can be done manually, actually, if you seperate your north and south hemispheres and apply a copy of the materials to each, you can shift your snow/ice coverage and move your icecap towards the equator.

     

    Now to bake it.

  9. Changing bump did not create a bump map, so I have moved on to the other option, figuring out the exported maps. This is what I have found out about maps created by the Bake Surface function.

     

    The surface being baked is a partial sphere with the Planet material applied.

    The model was created with the N-S poles aligned to the Y-axis.

    The surface is 4 patches high, forming 4 rings; each ring has 16 patches for a total of 64 patches.

    The maps created is an array of maps in an 8×8 pattern.

    For reference, the top row is 1 and the bottom is 8. Each row is numbered from left to right from 1 to 8.

    The maps in rows 1, 3, 5, and 7 are in one hemisphere and those in 2, 4, 6, and 8 are in the other.

    The maps in 1-1, 3-1, 5-1, and 7-1 are in the -x, -z quad, with a spline along the x-axis (z=0). The next set (2) are counter-clockwise when looking from above, and proceeds around the model. When set 8 is reached, it continues in rows 2, 4, 6, and 8.

    The maps in 1-1, 3-1, 5-1, and 7-1 are flipped horizontally while the remainder of the maps have been flipped horizontally and rotated 90 degrees clockwise.

    The function exports the following maps: ambiance intensity, bump, color, reflectivity, specular intensity, specular size, and transparency.

     

    Next I will try this on a "planet" that has its poles aligned to the z-axis, as the x-z plane is the plane AM flattens models in, and see what happens.

  10. Opened up the sdk, now all I need is an "Animation: Master in a Nutshell" book and I'm set.

     

    Thought I'd lucked out, found a few old webpages that I'd copied from Yves' site in 2011 that gave the syntax and calls. Unfortunately, I only have a few pages. So it looks like I'll be doing it the hard way.

  11. Still working on assets

    Trying to get the "that's not a moon" space station done. Figured out why trying to bake the texture was crashing AM, too many patches, and it was baking all of the materials. So even though I hid the cloud layer and other parts, it was still baking those surfaces. Created a new model & copied part of the model over to test, got a good bake, but it didn't bake displacement, and the image files are not edit friendly.

    So, next step is to remodel the surface. I really don't need the density anymore. I was using the splines to check placement of surface details I had added. Just some simple lathing, but I have to make sure everything lines up.

    I think I will try to ramp up the "bump" value and see if that gives me a decent bump map.

  12. The normals issue can be vexxing one, I've set my default to not show backfacing patchs. But I still have to manually go through the model to check it, and sometimes they seem to flip for no reason. In fact, one of my mouse buttons is set for F(flip normals)/Shift+P(select patch).

     

    There is a refind normals function when you right click in the modeling window, but it goes away when you select a patch. It seems to me that you could use a selected patch to find the correct front face.

     

    Back to the emitter idea.

    some issues to address:

    Placing the emitter - if it is a temporary object created by the plugin, it has to be persistant until activated to allow for correct placement (switching through at least two views, and being moved repeatedly), and possible multiple uses.

     

    Keying the emitter(s) - the emitter may need to be keyed to an object, otherwise nested or complex objects may be affected. Take a head as the example, often the eyes and interior of the mouth are seperate objects with some normals that face into the head. These patches may be exposed to the emitter, flipping some of the normals incorrectly.

     

    Holes - holes in the model could expose exterior parts of the same model to the emitter, flipping them incorrectly (you hid the mouth and eyes, but now the emitter hits the eyebrows and nose)

     

    I'm not saying it is not something to think about, just that there are potential problem areas that need to be worked out

  13. The meshes used by poser are obj, just browse through the meshes folders and import. You will not have any of the features, but yo'd loose that anyways. If the mesh has a template you can use that to resurface the model. I was considering using a pose slider to allow me to change the texture maps. You do have to watch out for the huge amount of patches that may be imported, which can slow you down until you trim most of them away.

    This is better then running an export from poser, as poser seems to add splines when exporting to obj (or 3ds), not a problem for those two programs but it will throw an error in AM.

    Figures are a problem, as most of their figures are just tweaking the sliders or changing the textures, in this case I would export only the part of the model I wanted, like the head, minus eyes and insides of mouth; I'd pull both from my morgue (still working on a mouth I can live with)

  14. Figured out what causes the wash-out, and how to get some of the options. Here's the text portion of the tutorial, with the changes needed to make it in v17. The property that was causing the wash-out is in bold text.

     

     

    Explosions in Animation: Master '98 Converted to 2013 (v17)

     

    This tutorial describes how to combine the Lens Flare and Particle effects available in Animation:Master '98 to create an interesting and often seen deep space "explosion" and shockwave effect.

     

    Begin by selecting "New" from the Project drop down menu to create a new project. Right click the Project name and select "Save As" from the available menu. Name the project "Explosion" and click OK to save.

     

    The first step is to model a cylinder that will be used as the leading edge of the shockwave, as well as a particle emitter. Click the New button and select Model from the list of available options. Click OK.

     

    With the Rulers visible and Units set to cm (centimeters), add a vertical spline that is 2cm high beginning one centimeter above the X axis marker and ending one centimeter beneath it. This spline should be added at approximately 100cm along the X axis.

    Point 1 at (100, 1,0), point 2 at (100,-1,0)

     

    Press CTRL+P to open the Options panel, and click the Modeling tab. Enter "48" into the Lathe Cross Sections field and click OK. Click on either of the two points on the spline that was just created and press the "L" key to lathe a thin cylinder shape.

     

    Press the F6 key to enter Bones mode, and from a right side view, add a bone to the model as shown in figure 1. Assign all of the points that make up the cylinder to the newly added bone by clicking the bone, then grouping all of the points.

     

    Press the F5 key to change back to Modeling mode. Click the "Model1" item in the Project Workspace, and set the following properties:

    Diffuse Color: 25, 25, 150 (RGB)

    Ambiance value: 100

    Glow: ON

     

    The next step is to add a light to the model that will be used as a flare to create the flash from the explosion. Right click the "Model1" item in the Objects section of the Project Workspace and select "New", "Light" from the available menus. This creates a hierarchical light as part of the model. By default, the light is added at 0,0,0, which is perfect for this example. Name this light "Explosion Flare".

     

    To specify the light as a lens flare, click on the Attributes tab of the Properties Panel, and place a check in the Lens Flare checkbox. The Flare is custom, described tab by tab below (If it is not mentioned, it is assumed to be the default values).

     

    Options>>Lens Flare: ON (this will bring up all of the lens flare options)

    Intensity: 10 (Default, this is what causes the wash-out)

    Fade When Leaving View: OFF

    Fade When Behind Objects: OFF

    Fade When Aiming Away: OFF

     

    Glows>> Camcorder (I’ll explain why below, this may change to custom when you start changing values, don’t worry about it)

    Glow 1>>

    Color: 255, 130, 130 (RGB)

    X Scale 150

    Y Scale 150

    Spectrum Count: 1

    /Glow 1

     

    Glow 2 >>

    Color: 255, 87, 87 (RGB)

    X Scale 100

    Y Scale 100

    Intensity: 100

    Spectrum Count: 2

    /Glow 2

    /Glows

     

    Beams>> Camcorder

    Beam 1 >>

    Color: Default

    Intensity 50

    Spectrum 30

    Spectrum Count: 1

    Count 8

    Zones 1

    Zone Coverage 100

    Softness 8

    Random Length: OFF (Default)

    Random Distribution: OFF (Default)

    Length 30

    Octaves 0

    Oct. Len 75

    /Beam 1

     

    Beam 2 >>

    Intensity 80

    Spectrum 0

    Spectrum Count: 2

    Count 16

    Zones 1

    Zone Coverage 100

    Softness 8

    Random Length: OFF (Default)

    Random Distribution: OFF (Default)

    Length 10

    Octaves 0

    Oct. Len 75

    /Beam 2

    /Beams

     

    Reflections>> None

    /Lens Flare

     

    Explanation: I chose “Camcorder” because it has 2 Glow and 2 Flare elements, Other selections can be made, and may provide more desirable results for the event you want to depict. Note that once you start changing values, the selection will change to “Custom”

     

    The next step is to create the particle system that forms the trailing edge of the shockwave.

    Click the New button and select Material from the list of available items.

    Click the OK button.

    Expand the material tree by clicking the plus (+) to the left of the "Material1" item in the Project Workspace.

    Right click the Attribute node of the material and select "Change Type to", "Particle System", "Streaks".

     

    Click the Attribute node, and on the Color tab of the Properties Panel, set the color to 0, 0, 150 RGB. An attribute channel will appear beneath the material attribute, which is used to change the material over time. For this example, the particles will start out very blue, and fade the longer they stay on screen. Click the plus (+) to the left of the Attribute Channel to expand it, and double click the Diffuse Blue channel item to open the channel for editing.

     

    Blue Channel

    Frame Value

    7 160

    30 10

     

    The graph should look similar to figure 2. Close the Channel window after you have set the Diffuse Blue channel as described.

     

    To add a little variation to the particles, changes will be made to the Transparency value over time. Double click the Transparency Channel Item beneath the Attribute Channel of the Material. Set up the Transparency channel as follows:

    Frame Value

    0 0

    5 46

    17 56

    24 87

    30 100

     

     

    This results in a channel similar to the one shown in figure 3.

     

    Click the Streak Emitter node, and make changes to the properties as described below.

     

    STREAK EMITTER

    Force: 0X, 1Y, 0Z

    Preroll 30 (If you are set to 30fps, it will change to 1 sec, if your fps is lower it will change to 1 sec & some frames))

    Life Expectancy 60 (similar to preroll, at 30 fps, this will change to 2 sec)

    Rate of Emission 8500

    Initial Velocity 35cm

    Viscosity 0

    Object Collisions: OFF

    Particle Collisions: OFF

    Tail Duration 3 (0:00:03)

    Thickness 2cm (0.002m)

    Additive Color ON

     

    Drag the "Material1" item from the Materials folder, and drop it on the "Model1" item in the Objects folder. This will apply the streak material to the model.

     

    The next step is to create the action for the explosion. Right click the Actions folder and select "New Action" from the list of available items. An action window will open that contains the model. Click on "Bone1" in the Action window, and on the Scale tab of the Properties Panel, enter 0, 100, 0 into the X, Y, and Z Scale fields, respectively. With "Bone1" still selected, enter 120 into the Current Frame field on the Frame toolbar. On the Scale tab of the Properties Panel, enter 450, 100, 450 into the X, Y, and Z Scale fields, respectively. The model will now expand slowly from nothing on frame 0 to very large on frame 120, trailing particles behind it as it goes. Step through the frames and examine the action if you'd like. When you're ready to continue, enter 0 into the Current Frame field on the Properties Panel.

     

    Next, it's time to animate the lens flare to create the explosion itself. Click on the hierarchical light in the Action window (it may be a little difficult to get it just right -- watch the Project Workspace for the "Explosion Flare" channel to appear). Click the "Explosion Flare" channel to select it, then click the General tab of the Properties Panel. Select the Intensity channel item at the bottom of the list of Available Items.

     

    The Intensity of the flare varies over time. Make the following entries into the Intensity field.

    Frame Value

    0 0

    18 0

    19 75

    20 120

    21 140

    22 150

    25 110

    30 50

    80 0

     

     

    Double clicking the Intensity Channel Item in the Action folder will result in a visible graph that looks like figure 3.

     

    Originally by Jeff Paries

    http://www.digitalproducer.com/pages/explosions_in__animationmaster_.htm

     

    This is where you will find the images, project files, & mpeg for the 87 version.

     

    Once I finish the final render I'll post & add the link.

  15. Corel does this with their programs, they use the registry to point the explorer shell handlers to some shell extensions. The nice thing about doing it this way is that anything based on the explorer shell inherits this functionality, which means that the existing open/save dialogs would gain this ability. It does require some different registry entries for file handling, but it does not require rewriting the base program. It does require a thumbnail to be saved, which AM provides for.

     

    I found the dlls corel uses here:

    Program Files>> Common Files>> Corel>> Shared>> Shell Extension

    there are 2 dlls: ShellExtEN.dll & ShellXP.dll

     

    I think under win standards you'd change Corel to Hash & add the needed dlls, then make some registry changes.

     

    Another nice thing, this could be made available as a separate install until the next major update.

     

    The capability to create icons still exist, it's only used in the file properties as "preview" and if you add it to your library it would be visible there (but only there). In a model window, right click, on the context menu it's just above the views option and is grouped with add to library.

  16. that clip was done under v12, I accidentally overwrote my choreography.

    But I'm using perspex as the material for the 'glass', the clear sections are modeled with an inner and outer surface. I've also turned off radiosity (though I was getting a similar effect with it turned on)

    The rest of the model uses the ipod material, so that may be influencing it a bit.

     

    Just changed the ipod colors to red & did a quick render and that did not affect the shading in the clear sections, so it's one of the attributes in the perspex material doing it

     

    I have a v12 model of it here:

    http://nanoether.deviantart.com/

     

    I just discovered one of the doors isn't acting as it's supposed to, so I'll be fixing and updating the file sometime this week

  17. I've been running an RPG off and on, but I wanted to give it a little more punch. I've had AM for a while but haven't really had a project this involved. It will be a series of shorts showing events that have happened in the game and covering some out of game background.

    The setting is an alternate present sci-fi, so it has some unique points at its core but it also borrows heavily from current culture.

    My first animation is going to be a med bay, depicting the start of the game. I've nearly finished one of the props, and I'm working on rigging a character right now. mostly for the experience since I'll have a few characters that won't be able to use a standard rig.

     

    Here's a demo of the Critical Care Module:

     

    can't seem to get the tags to work, here's a direct link:

     

    I need to animate the lights in the module and add a nanite gel to the interior, then I need to create an exit action.

×
×
  • Create New...