1 registered members (AbrahamR),
717
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: frame buffer access
[Re: Excessus]
#113667
02/24/07 14:02
02/24/07 14:02
|
Joined: Oct 2003
Posts: 4,131
Matt_Aufderheide
Expert
|
Expert
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.
|
|
|
Re: frame buffer access
[Re: Matt_Aufderheide]
#113670
02/24/07 14:53
02/24/07 14:53
|
Joined: Feb 2007
Posts: 15
gettarobox
OP
Newbie
|
OP
Newbie
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
Excessus
Expert
|
Expert
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|