Chiaroscuro wrote:==> SLG Live! mode
Dade wrote:on the air next week: real time material editing
They're not related, but that callback is triggered by any viewport update. Notice that I'm also hooked in via SLG options panel redraws (since they're not in the viewport, not part of the callback) and I'm also hooked in to some user input and timer events via the operator itself if needed. For materials I'll simply hook in on mat panel redraws as well.agremlin wrote:May be you know more events except 'POST_PIXEL'. For example: if you need update texture or color on object.
I was surprised how smooth it was in Blender considering plugin is not optimized, but I guess that depends entirely on if your CPU has any free threads (hyper-threading might be helping as well). But it's a good point. I was actually debating this while coding: is total real-time necessary? Perhaps I should offer a simple operator that does a refresh on demand instead? Using Python I can't really know when a user has "finished" moving the camera (no callbacks from Blender); however, I can base updates on my own timer as well just to reduce the frequency of them (I'm thinking out loud here). Thanks for the feedback though, it's a good point.pxl666 wrote:nice feeling indeed - one comment ->> when u move the camera - wouldnt it be better if slg refreshes camera position AFTER u move it in viewport? it allows for smoother moves within blender window...
Right, we'll most likely make that happen for materials and lights.pxl666 wrote:damn...i cant imagine how will it feel when u'll able to adjust ALL settings from within blender...matts , lights etc...better than octane for many of us!
Chiaroscuro wrote:I can base updates on my own timer as well just to reduce the frequency of them (I'm thinking out loud here). Thanks for the feedback though, it's a good point.
Just keep in mind that changing the scene itself, things like object transforms, actual mesh, UV map (and maybe even textures?) via SLG Live will not be possible. For that we'll just need to re-render, like normal.
Users browsing this forum: No registered users and 3 guests