Blend Modes for draw_from and getPixel() function

Ideas for Game Editor evolution.

Blend Modes for draw_from and getPixel() function

Postby fauldran » Tue May 29, 2007 6:41 pm

Blend Modes
It would be cool if you could draw_from and specify a blend mode like multiply or overlay. (Like with layers in Photoshop)

This could be used to create some nice 2D lighting effects and other effects.

getPixel() - This may have already been mentioned...
It would allow for greatly enhanced AI systems and other effects if it were possible to get the pixel color value of an actor or at a screen coord. The ability to choose which would be awesome.

getPixel(<taget actor>, <x coord>, <y coord>)

or smoething like that...
Fauldran
Image
fauldran
 
Posts: 43
Joined: Tue Dec 20, 2005 10:52 am
Score: 0 Give a positive score

Postby Sgt. Sparky » Tue May 29, 2007 7:35 pm

I really want a getpixel function. :D
to overlap just make more than one canvas actor. :D
(when you draw it is clearing pixel data, photoshop may use the same thing only with GL brush ect. and structure stuff.)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby summer_goth » Wed Aug 01, 2007 8:47 am

What is the best way to emulate getPixel() so long?

I have a background image with complex areas where the filled region won't work. I want to be able to click on various parts of the image and then act accordingly.

The filled region isn't precise enough.

With getPixel() I can create a hotspot image with a couple of colours filled according to where one can click. As fauldran mentioned: getPixel(<taget actor>, <x coord>, <y coord>) or something like that would be ideal.

Another way is to cut the image up into various actors. However this makes things complicated and since I am creating a Pocket PC game I am worried about performance.

What is the best way to currently do this? (eh sorry to ask it here. If necessary I will open a new thread somewhere else that's more appropriate) I just thought I'd do it here because getPixel() is mentioned here.
User avatar
summer_goth
 
Posts: 153
Joined: Fri Jun 22, 2007 8:07 am
Location: South Africa
Score: 5 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest