Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Pages: 1 ... 7 8 [9] 10
 81 
 on: May 06, 2020, 04:47:30 pm 
Started by Steve - Last post by Steve
Updated post that outputs .WAV sound in .AVI output: build 1380.

.AVI output now includes the soundtrack, with a couple of caveats:

1) The first sound is output.
2) Subsequent sounds that have the same sample rate, precision (8 or 16 bits), and number of channels (i.e. mono or stereo) are also included.

 82 
 on: May 06, 2020, 04:35:45 pm 
Started by Trevor - Last post by Steve
In Anim8or polygons use a single material. You can't assign different materials to the vertices.

 83 
 on: May 06, 2020, 01:38:07 pm 
Started by Trevor - Last post by Trevor
Thanks, I wasn't sure where to post, its ASL but its related to current dev so I chose the later:)

Ive noticed that tridata doesn't seem to keep triangle RGB separate, i.e. I had one triangle which was green, but the tridata only had one of the verticies use that material with the other 2 using other materials.
Is there a pattern here? or is it random?

Trev

 84 
 on: May 06, 2020, 09:58:57 am 
Started by Tof - Last post by Steve
Looks delicious!

 85 
 on: May 06, 2020, 09:57:05 am 
Started by Trevor - Last post by Steve
Trevor, I split this into a separate topic to make it more visible.

 86 
 on: May 05, 2020, 09:46:24 pm 
Started by Trevor - Last post by Trevor
ASL Bugs and Feature requests as of Build 1379

Nested If statements cannot return to caller, an8 hangs, turns white, titlebar states (Not Responding) and console stops output.
Code: [Select]
// Return True if Vertex Exists, Save NewID Mapping to $gVtxIDMap
int $VertexExists(point3 $xyz, string $uv, point3 $rgb, int $a)
{
int $i, $r;

for ($i = 0; $i < $gXYZs.size; $i++)
{
$DebugPrint(PrintToString("Compare to %d", $i));
// cant do && "Illegal Type arg"
if (($xyz.x == $gXYZs[$i].x) && ($xyz.y == $gXYZs[$i].y) && ($xyz.z == $gXYZs[$i].z))
{
if ($uv == $gSTs[$i])
{
if (($rgb.x == $gRGBs[$i].x) && ($rgb.y == $gRGBs[$i].y) && ($rgb.z == $gRGBs[$i].z))
{
if ($a == $gAs[$i])
{
$gVtxIDMap[$gVtxIDMap.size - 1] = $i;
//return true;
$r = 1; //BUG cannot return from here, this makes script wasteful
}
}
}
}
}
return $r;
}

Attributes cannot return NULL...
workaround: Use a global Attribute and use Push/Size = 0
Code: [Select]
//return $gCurObject.GetAttribute($i);
$gLookupAttributeUcase.push($gCurObject.GetAttribute($i));
return;
}
}
//return NULL;
$gLookupAttributeUcase.size = 0;
}


As Documented already Recursion is not supported, however it would be good to support for parsing trees.
Code: [Select]
void $ParseChildren(shape $Shape)
{
...
$DebugPrint("Parsing Children " + $Shape.name);

if ($Shape.GetKind() == SHAPE_KIND_GROUP)
{
//Recursion Not Supported
$ConsolePrint("Groups are not supported\n");
//$ParseChildren($Shape);
}
...
}


I also put together some functions for people to use but hope for native support for them instead.
Code: [Select]
// Returns Index to start of $Contains if within $Base.
// Returns False if $Base does not contain $Contains
int $StringContains(string $Base, string $Contains)
{
int $i;
string $Comparitor;
for ($i = 0; $i < ($Base.length - $Contains.length); $i++)
{
$Comparitor = $Base.SubString($i, ($i + $Contains.length));
if ($Comparitor == $Contains)
{
return  $i + 1;
}
}
return 0;
}

// Split String $Base anywhere $Split occurs
// Returns Array (via $gSplit) of Strings
int $StringSplit(string $Base, string $Split)
{
int $r, $Start, $End;
while ($StringContains($Base.SubString($Start, $Base.length), $Split))
{
$r++;
$End = $StringContains($Base, $Split);
$gSplit.push($Base.SubString($Start, $End - 1));
$Start = $End + $Split.length;
}
return $r;
}

// Returns String as UPPER CASE
string $StringToUpper(string $str)
{
int $i, $t;
string $r;
for ($i = 0; $i < $str.length; $i++)
{
$r = $r + "a";
$t = $str.GetChar($i);
if ($t >= 97 && $t <= 122)
{
$t = $t - 32;
}
$r.SetChar($i, $t);
}
return $r;
}

// Looks up Attribute by Name (Case-insensitive)
void $LookupAttributeUcase(string $str)
{
int $i;
attribute $temp;
string $ucase;
$ucase = $StringToUpper($str);

for ($i = 0; $i < $gCurObject.GetNumAttributes(); $i++)
{
$temp = $gCurObject.GetAttribute($i);
if ($temp.GetName() == $ucase)
{
//return $gCurObject.GetAttribute($i);
$gLookupAttributeUcase.push($gCurObject.GetAttribute($i));
return;
}
}
//return NULL;
$gLookupAttributeUcase.size = 0;
}


I also took the documentation and put it in a h file for use in VS.
I shifted the comments round so it works with Intellisense and word completion as you type.

Which reminds me, any chance of ignoring #include "a8s.h" and then including other script files?
Also #if(0) #endif would be good to block certain code blocks from functioning

Many Thanks
Trev

 87 
 on: May 05, 2020, 06:08:54 pm 
Started by dode1 - Last post by dode1
@Tof My flames are low level small radius clouds made in Terragen. The terrain and flame clouds and sky are a background image from a Terragen render.

I used to use particle instances with Terranim8or before I think. Didn't there used to be a star populator for a hemisphere target long ago?
I do particle systems in Blender quite often for populations or now many special effects.

My little starships seem to average just under 400KB or so. The large item in my file is my moon with the 2K NASA image. :)

 88 
 on: May 05, 2020, 04:45:10 pm 
Started by Tof - Last post by Tof
It's time for a glass of rosť. After many tests I arrive roughly at the expected result.
But I realize that I am missing a table on which to put my glass, I will make one one of these days.

 89 
 on: May 05, 2020, 04:39:40 pm 
Started by dode1 - Last post by Tof
Hello Dode1!
Very nice terrain and flames. 8)
Are the flames made with particle?
How many faces do you have there???

 90 
 on: May 05, 2020, 04:30:17 pm 
Started by Tof - Last post by Tof
Thank for all your answers.
ENSONIQ5 & Johnar, Enjoy your real life and make the best of it, the time will certainly come for you to find time again for Anim8or or for other things that you miss today!

Pages: 1 ... 7 8 [9] 10