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.

Dark GDK / Camera effects.

Author
Message
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 6th Jan 2011 18:00
Hi!

Im using DarkGDK and I have a question.
I want to try out some effects,
I have 2 cameras:
1 - is our main camera
2 - i want to highlight it and blur

Then I want to mixed them up, It will looks little like cosy bloom.
How to do it?
If someone be so kind and make a c++ example ?

P.S. I don't bought any DarkShader or smth.
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2011 20:25
Have you tried to use .fx? "Evolved" has fx shaders for almost everything.
http://www.evolved-software.com/shaders/postprocessing
Take a look at the "Bloom". This should get you started.

The fastest code is the code never written.
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 6th Jan 2011 21:53
But i want to apply some effect into Camera by 1 function. Is this possible?
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Jan 2011 22:07
I'm not sure what you want.

http://www.evolved-software.com/shaders/Bloom/Bloom_.PNG
Is this not what you want to do? Look closely at it....

The fastest code is the code never written.
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 6th Jan 2011 23:37
I just wan't to know how to load effect into camera... just for future experiments.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 7th Jan 2011 01:56
The only other method I can think of for what you're asking is to render the camera to a bitmap first. After that you can do any post effect on the bitmap yourself directly. Lock the buffer for direct manipulation for any of your functions. Just paste it to the screen then. The built in functions GDK has can be used on the bitmap too.

Warning! May contain Nuts!
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 7th Jan 2011 02:35
perhapse you could give a more detailed description of what you are trying to accomplish.

The fastest code is the code never written.
Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 7th Jan 2011 11:20
For example, i want to make some effect into camera, like everything is monochromatic (black/white) or Hue saturation to Red.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 7th Jan 2011 16:47
There's a few people who have posted similar things on the forums. One I remember recently was making a night vision effect. What you're after is probably easier to render to a bitmap then do what ever effect you want to the bitmap. A mono effect is easy to play around with first. Once you're done just copy it to the screen then.

Warning! May contain Nuts!
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 7th Jan 2011 21:32 Edited at: 7th Jan 2011 21:34
I'm no expert in this department but it seems you want a function like:
setImageBW(int imageID); //black and white
Then you might make an image from the screen, use the function and draw the new image to screen?

The reason you probably wont find a funtion like this is that it would probably be really slow, while shaders do this sort of thing really fast. So as people are advising above, look into evolved's shaders as he has done alot of hard work in this department and kindly shared with everyone. You will need to learn the basics behind using shaders etc

Someone please step in and tell me if I'm completely wrong, thanks.

Szymat
14
Years of Service
User Offline
Joined: 17th Oct 2010
Location:
Posted: 7th Jan 2011 21:58
But theres no DarkGDK tutorials ;/
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 8th Jan 2011 13:13
I have made one some time ago:

http://forum.thegamecreators.com/?m=forum_view&t=179079&b=1

Scroll down to see...

I am not the master in shaders, i just began writing some...

Here is a screen of a tone made by the shader in my engine...



Login to post a reply

Server time is: 2024-11-19 14:49:47
Your offset time is: 2024-11-19 14:49:47