Jump to content

Object preview post gui problem


Recommended Posts

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 by .WhiteBlue
Link to comment
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 by Juuve
Link to comment
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:

screenshot_2.jpg

Link to comment
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:

screenshot_2.jpg

I just have to create this pedo using the export you provided?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...