Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
frame buffer access #113663
02/24/07 03:54
02/24/07 03:54
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
i was just wondering if GS allows you to access the frame buffer.

Re: frame buffer access [Re: gettarobox] #113664
02/24/07 04:50
02/24/07 04:50
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Yes with a plugin, but you need C++ for that. Else you can copy the framebuffer to a bitmap or paint into it but not direct access it.

Re: frame buffer access [Re: Spirit] #113665
02/24/07 06:00
02/24/07 06:00
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
cool. is that like bmap_for_screen (bmap, var factor, var offset);
so is it possible to do post processing type stuff then? i'm thinking real time brightness adjustment.

Re: frame buffer access [Re: gettarobox] #113666
02/24/07 10:44
02/24/07 10:44
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Yes, normally you would render the view into a bitmap (view.bmap, pro feature) and use that bitmap as a skin for a view entity that has a post processing shader applied.

If don't have pro, you have to use an external language for this.

Re: frame buffer access [Re: Excessus] #113667
02/24/07 14:02
02/24/07 14:02
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:

Yes, normally you would render the view into a bitmap




Thats a horrible way to do he wants.

Think about it, why render the same scene twice? Using Pro to render the scene to a bitmap is bad method that doubles rendering time.

unfortunately, the bmap_for_screen function is currently too slow (at least it was last time i checked) to be used in realtime every frame, so you are stuck.. unless you make a simple dll.


Sphere Engine--the premier A6 graphics plugin.
Re: frame buffer access [Re: Matt_Aufderheide] #113668
02/24/07 14:29
02/24/07 14:29
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
It's been a long time since I've messed with postprocessing in A6, but I thought this was common practice, and don't see why this would lead to double rendering. Are you sure about that? Doesn't it just copy the framebuffer to the bitmap after rendering? Or is it that you cannot just render the view entity without also rendering the scene a second time?

Re: frame buffer access [Re: Excessus] #113669
02/24/07 14:37
02/24/07 14:37
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Actually I'm not sure how A6 handles this command if you just try grab the camera.bitmap.. maybe it just copies the curretn backbuffer.. i dont really know.


Sphere Engine--the premier A6 graphics plugin.
Re: frame buffer access [Re: Matt_Aufderheide] #113670
02/24/07 14:53
02/24/07 14:53
Joined: Feb 2007
Posts: 15
G
gettarobox Offline OP
Newbie
gettarobox  Offline OP
Newbie
G

Joined: Feb 2007
Posts: 15
being able to render to texture seems like one of those things a game engine must have nowadays. it'a fairly simple way to make things go from meh to wow with all the post stuff it enables you to do.

this is a bit off topic but: how about if i wanted to have the sun send out traces to determine where shadows would be casted and then write the shadows to the blue channel of the multiterrain mtl with a lineardodge type calculation? hope this makes sense. i figure if it could do this once at the begining of runtime it would be a great way to make shadows on terrains if it is possible.

Last edited by gettarobox; 02/24/07 15:31.
Re: frame buffer access [Re: gettarobox] #113671
02/24/07 17:16
02/24/07 17:16
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
You'd have to do some testing to see if the method I described indeed renders the scene twice. If it does, you'll have to write a small plugin as Matt suggested.

Such a shadowmapping script has been written and it can be found on the wiki (link at the top/botom of this page). Here it is: link.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1