Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  


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 2 [3] 4 5 ... 10
 on: March 15, 2019, 11:01:01 pm 
Started by NickE - Last post by Steve
Raxx: Check out build 1357 which has new tokens for QUESTION_TOKEN and ATSIGN_TOKEN.

 on: March 15, 2019, 05:58:57 am 
Started by NickE - Last post by Raxx

Can we get a "?" token (currently returns an error token), and can I request an enhancement to Error Token such that scanner.strval is populated with the string equivalent of whatever it is that it comes across as an Error Token?

 on: March 14, 2019, 10:34:39 pm 
Started by Steve - Last post by NickE
Yea!  You rock, Steve! This solves many of the problems with rendering script-driven physics simulations.  I used to have to start an object script, manually switch to scene mode and start rendering, then remove all the duplicate frames from the scene rendering as the object script ran in the background with strategic delays to give the renderer time to finish the frame before the object script incremented.

Ideally, the scene controller parameters "frame" or "time" would be available to object scripts from scene mode, but this is a huge step forward.

Thank you, Steve!

 on: March 14, 2019, 04:37:54 pm 
Started by Steve - Last post by Steve
Oops! You're right - Perspective and Stereo views crash when using arc-rotate. I'll fix it :(

#101-028 - Arc-Rotate Crashes in Perspective and Stereo Crash views.

 on: March 14, 2019, 11:31:07 am 
Started by Steve - Last post by nemyax
Classic arc rotate is broken in perspective view.

 on: March 14, 2019, 12:08:58 am 
Started by Steve - Last post by Raxx
I don't really (read: never) deal with image processing via code. I expect for starters, something like:

new data types:
byte: unsigned 8-bit integer (0-255)
struct pixel {
 byte r, g, b, a;

image $img;
$img.New(width, height) or $img = Image(width, height) - Width/height can only be set during this stage. Construction creates blank and transparent pixels (zeroes across the rgba channels)

$img.width (read only)
$img.height (read only)
$img.pixels[] (get/set array values, but protected array size). Array length is width*height

Manipulation aside from $img.pixels[]:
$img.GetPixel(x, y) - user-friendly means of getting pixels by its x and y coordinates in the image.
$img.SetPixel(x, y, pixel) - user friendly means of setting the pixel

Maybe also tie this class into textures as well, as it expands capability to create procedural and possibly (scratches head) animated textures? For example, $tex.SetTexture($img) uses an Image object for its image information rather than a file.

 on: March 13, 2019, 10:57:08 pm 
Started by Steve - Last post by Steve
That's a thought. What kind of functions did you have in mind? Compositing?

 on: March 13, 2019, 10:48:23 pm 
Started by Steve - Last post by Raxx
Very cool, I always like to see ASL enhancements. Are there any plans on extending the image class to include the ability to create images from scratch, and functions for reading and manipulating pixels?

 on: March 13, 2019, 10:04:42 pm 
Started by Blick Fang - Last post by Blick Fang
Thank you, Steve!  8)

 on: March 13, 2019, 09:47:45 pm 
Started by Steve - Last post by Steve
In the latest development build 1356 you can save rendered images in BMP, JPG and PNG format.

class image {
    int WriteBMP(string fName); // All functions return 1 if OK, 0 if failed
    int WriteJPG(string fName [ , int quality = 95 ] ); // 0 = lowest, 100 = highest
    int WritePNG(string fName [, int IncludeAlpha = 0 ] );

image GetImage(int image_id); // Returns NULL if no such image.

I've attached a sample script.

Pages: 1 2 [3] 4 5 ... 10