-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU Shader Module for viewport drawing #1098
Comments
Hi, out of curiosity: how did this work back then? How was it possible to run Kha without opening another window? How did the (fast) communication between the processes work? I found some old code but it's not really clear how it worked. It also used the Thanks :) |
Yo, it was a special build of Blender with Krom embedded in it. |
Hi, is this something that could be considering again now that blender have a lts version or does is not related to it ? What about synching viewport editing with krom ?? Cheers. |
Thanks for the explanation! That sounds very complicated and explains why the viewport preview was removed. Do you have any idea if there might be ways of implementing this without the need to maintain a custom Blender version? A while ago I thought about using a memory mapped file (if krom would support that) to send the drawn image to Blender but that would probably be still too slow and doesn't solve the other problems (input rerouting, no sound etc.). |
The only other way I found out involved pulling pixels out of gpu which is not fast. But in regards to syncing viewport editing, there is an options for that at |
Ok, I'm poking around with the original idea to see if it's actually doable with the api's current state. So far I've managed to tick off the "checklist" rendering to a texture to use it as input for another shader.: But I can't seem to find a way to bind multiple targets to the |
Use GPU shader module to draw game preview in Blender viewport.
GPU Shader Module API:
https://docs.blender.org/api/blender2.8/gpu.html
The text was updated successfully, but these errors were encountered: