.WhiteBlue Posted July 3, 2018 Share Posted July 3, 2018 (edited) Hi. I have a problem with post gui in the object preview. The object is behind the background and should be in front of the background. My code: local ped = createPed(getElementModel(localPlayer), 0, 0, 0) setElementInterior(ped, getElementInterior(localPlayer)) setElementDimension(ped, getElementDimension(localPlayer)) exports['object_preview']:createObjectPreview(ped, 0, 0, 180, 0.5, 0.5, 0.5, 0.5, true, true, false) Postgui I have disabled in my rendering. I tried to change the render priority but no effect. Help me. Please ! Edited July 3, 2018 by .WhiteBlue Link to comment
JeViCo Posted July 4, 2018 Share Posted July 4, 2018 (edited) On 23.04.2018 at 01:15, Ren_712 said: the nonMRT effect transforms view and projection matrix to render the resized object/vehicle/ped close to the near clipping plane. So the vehicle is drawn on the screen when "GTA draws world'. the MRT effect draws the vehicle to a renderTarget that can be drawn dxDrawImage (onClientRender). Example: https://nightly.multitheftauto.com/files/shaders/shader_multi_rt_test.zip original topic Edited July 4, 2018 by Juuve Link to comment
.WhiteBlue Posted July 4, 2018 Author Share Posted July 4, 2018 I do not understand this topic. Could you explain to me what to do? Link to comment
JeViCo Posted July 5, 2018 Share Posted July 5, 2018 17 hours ago, .WhiteBlue said: I do not understand this topic. Could you explain to me what to do? You should use createObjectPreview + postGUI and dxDrawImage + onClientRender. Try to change this exports['object_preview']:createObjectPreview(ped, 0, 0, 180, 0.5, 0.5, 0.5, 0.5, true, true, false) to this exports['object_preview']:createObjectPreview(ped, 0, 0, 180, 0.5, 0.5, 0.5, 0.5, true, true) I don't know why but it works: Link to comment
.WhiteBlue Posted July 5, 2018 Author Share Posted July 5, 2018 5 hours ago, Juuve said: You should use createObjectPreview + postGUI and dxDrawImage + onClientRender. Try to change this exports['object_preview']:createObjectPreview(ped, 0, 0, 180, 0.5, 0.5, 0.5, 0.5, true, true, false) to this exports['object_preview']:createObjectPreview(ped, 0, 0, 180, 0.5, 0.5, 0.5, 0.5, true, true) I don't know why but it works: I just have to create this pedo using the export you provided? Link to comment
JeViCo Posted July 5, 2018 Share Posted July 5, 2018 Just now, .WhiteBlue said: I just have to create this pedo using the export you provided? Yes. I removed false and that solved a problem (for me) Link to comment
.WhiteBlue Posted July 5, 2018 Author Share Posted July 5, 2018 After removing false, dashboard rectangle is not visible. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now