How to make DrawTexture ignore the Depth of Field option?
-
I'm drawing a bitmap on the viewport using DrawTexture but, if the Depth of Field option is turned on and depending on the camera settings, the bitmap is drawn out of focus.
Is there a way to make DrawTexture always draw the bitmap without any blurring, no matter if the Depth of Field option is on or off?
Thank you very much in advance for any reply. -
Hello @rui_mac
First, for your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here.
I've marked this thread as a question so when you considered it as solved, please change the state
Regarding your question,
The DrawTexture is drawing a polygon so you have to specify where in space your points are. You can retrieves the camera
FocusDistance
and draw the polygon there. Of course this will probably draw your polygon behind other objects and I guess it's not what you want. (let me know)If you want to "draw" some information i would suggest to create a VideoPostPlugin using c++
Cheers,
Manuel -
I didn't realized this would qualify as a new functionality. Sorry.
In fact, I don't want it to be drawn behind other objects.
It is supposed to show as a floating layer on top of everything else. -
@rui_mac said in How to make DrawTexture ignore the Depth of Field option?:
I didn't realized this would qualify as a new functionality. Sorry.
The linked thread is talking about the new functionality of the forum, Mark a thread as "Ask a question".
This allow us to find quickly the unresolved questions. (in case we missed something)You need to switch to c++ and write your own VideoPostPlugin to draw at the end of the render.
Cheers,
Manuel -
Well, since this is a plugin that I had already coded in python, I don't think I will be converting it to C++.
But in the future I know now that I will need to start a project that requires this type of control, in C++.Tell me... Manuel Magalhรฃes... are you portuguese?
-
My parent were, but I'm French. My Portuguese is really bad.
-
I had to ask, since your name is so "portuguese"
-
hi,
without any further feedback, this thread will be considered as solve tomorrow.
Cheers
Manuel