Adding bitmaps?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2007
Adding bitmaps?

Hey Guys,
Is it possible to bitmaps together?
Currently im reading in a row of 2 bitmaps, adding them together in a loop and setting that row into my new bitmap. However it takes about 30 seconds to add 2 x2048 textures.... and ill be doing this on about 100 objects, which would be about 50mins!

If theres no way inmaxscript ill just do it via c++ SDK.


  06 June 2007
Hello there,

I also had the very same question. I would be very happy if someone would post the answer.

Earn An Income From Your Art, Drawings, Paintings,
Even Your Photos - Get Paid To Draw | Get Paid To Draw Articles
  06 June 2007
Built-in MAXScript bitmaps methods are good but slow. Do you looked at .Net ? There's some interesting classes in GDI+.

Yes, in C++ it will be (very) much faster and not difficult to implement. You can create an Utility or a new MAXScript command to perform this operation.

Last edited by ypuech : 06 June 2007 at 08:47 AM.
  06 June 2007
I am not sure I understood exactly what you want to do.

Recently I tried something like this in maxscript.
In the end I used aftereffects to stich the bitmaps.

Rename them if they aren't already a numbered sequence.
Import the sequence into aftereffects and offset the sequence to have the images arranged like you want. Render it.

You can still use maxscript to rename the files to have the right order ...

Georg Duemlein
  06 June 2007
Compositing bitmaps in Maxscript is slow, I've written a couple of functions which scale and composite bitmaps but they are slow on the larger maps. You can try speeding things up a bit by converting your bitmaps to array's before working on the data in the loops, just make sure you increase your maxscript memory first

As ypuech says, if you're using max 9, investigate using the GDI+ classes in .net, they're about a million times faster.
  06 June 2007
The avguard extension has a function for this, I think it's called PasteBitmap. It lets you specify the source and destination regions/locations, so it should be able to do what you want.

  06 June 2007
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:54 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.