Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Overlaying two images to make a new one?

Author
Message
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 25th Sep 2007 01:59
I put together a very simple function to overlay two images (the top image uses transparency to see the one underneath) and get a new one from it.

The problem is not HOW to do it, but how to make it USEABLE!

Here is the code I have so far:



As you can see, the new image is rather large. It'd be easy to just accept any two values for the size of the new image, but in my specific case, I need it to be 800x600 (A camera)

This function WORKS, and works WELL, but is very slow

I blame the "get image" command, but consequently I'm not sure how else to do this without that command. Does anyone have any better ideas for this?


The one and only,
~PlystirE~
aluseus GOD
18
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 30th Sep 2007 05:32
memblocks. OK

Your signature has been deleted by a moderator because this joke is getting old.
Zergei
20
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 30th Sep 2007 05:51
How about if you use 3d plains ?

Further on my stuff at...
TurboSquid.com
The3dStudio.com
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Oct 2007 08:47
Quote: "How about if you use 3d plains ?"


Well, i wanted to overlay two images, so taht I could use the resulting image as a texture for a 3d plain.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!
Mortus
18
Years of Service
User Offline
Joined: 14th Dec 2006
Location: Illinois
Posted: 14th Oct 2007 19:17
I don't use "set current bitmap" but the "get image" command works best with 5 perameters;

Get image Image Number, Left, Top, Right, Bottom, 1
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Oct 2007 08:16
Mortus, the point of this post is to find a way to do what I wanted withOUT using the "get image" command, as it runs very slowly if you try to use it every single loop in an active program.

The function already works and does what it's supposed to do, but as stated, it runs slow.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

Login to post a reply

Server time is: 2025-05-14 13:23:54
Your offset time is: 2025-05-14 13:23:54