Rick Posted January 9, 2010 Share Posted January 9, 2010 Do we have access to the buffers used in the framework? If so how do we access them? Quote Link to comment Share on other sites More sharing options...
Canardia Posted January 9, 2010 Share Posted January 9, 2010 There will be a callback function, which probably provides access to the framework buffers. I don't think Josh wants us to render post-effects more often than necessary, so we should get access the latest processed buffers and add our own stuff on top of them. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Author Share Posted January 9, 2010 So, currently no there isn't or there is a callback function and the name escapes you of what it is? It confuses me as to why things get hidden from us. Shouldn't we be able to decide how to use things? Even something like the framework, everything should be exposed to us to use and abuse if we wish. I can't understand why it wouldn't be. Quote Link to comment Share on other sites More sharing options...
Canardia Posted January 9, 2010 Share Posted January 9, 2010 No, nothing is hidden from us. It's just the first version of Framework, and Josh agreed that it needs some additional functions to be able to be customized for every need. In BlitzMax you have the full source code to Framework, but also then it's not very wise to modify it, since it will get overwritten by updates. So the only viable solution is to provide callback functions at the important steps inside Framework. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Author Share Posted January 9, 2010 That doesn't help much for the people using lua. Which is the forum that I posted this in. I do agree that trying to edit the framework is not a wise decision. Lumooja, have you tried taking screenshots in the editor via the backbuffer yet? I see in another post in C/C++ you mentioned how to do it. I took that and put in a script and I get that damn exception error when it runs. Any ideas? if KeyHit(KEY_SPACE) == 1 then SaveBuffer( GetColorBuffer(BackBuffer(),0), "Rick", 99 ); end Ideally this all revolves around me wanting to eventually see the depth buffer and what it looks like. I have a hard time imagining how it looks and what the shaders are "seeing" in it. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Author Share Posted January 9, 2010 Seems the GetColorBuffer(BackBuffer(), 0) produces a nil value. Quote Link to comment Share on other sites More sharing options...
TylerH Posted January 9, 2010 Share Posted January 9, 2010 The depth-buffer when drawn as an image on screen will appear as a 0.0-1.0 black to white buffer, that is either black at 0 (closest) and white at 1 (farthest), or inverted. Some render pathways will invert it because of the absoluteness you gain closer to 0, making 0 = farthest, as to avoid depth fighting issues between distant objects. Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Author Share Posted January 9, 2010 Yeah, I'm a visual person and would just like to see it for one of my scenes. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2010 Share Posted January 9, 2010 It confuses me as to why things get hidden from us Because C++ programmers want to be able to call framework commands with Lua. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted January 9, 2010 Author Share Posted January 9, 2010 Which you can expose to lua. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.