Jump to content

object_preview How to draw effect on DX drawing ?!


darhal

Recommended Posts

If you see in chatbox: obj prev: MRT in shaders not supported... If so, then use non MRT option (the last flag set to false) - lots of mta players (knowing the fact that most of them use laptops with intel GFX from before 2009 on it) can't support that. This resource might be useful to prerender images of objects/weapons/vehicles by developer and saved to an image file. The functions for that are already there.

Link to comment

Thx Ren_712 for those players which their Graphics Card Support MRT it works fine (The ped is on the DX)

But for me and the rest that their graphics card dont support MRT it will not work unless I change or upgrade it ? (I know that my graphics card dont support MRT but did that mean it will not work (Ped on the DX) ?)

Link to comment
  • Moderators

bool exports.object_preview:createObjectPreview(element object, float rotX rotY, rotZ, projPosX, projPosY, projSizeX, projSizeY [, bool isRelative = false, postGUI = false, [color=#FF0000]isSecRT = true][/color]) 

Set to true...

Link to comment
  • 1 month later...
Thx Ren_712 for those players which their Graphics Card Support MRT it works fine (The ped is on the DX)

But for me and the rest that their graphics card dont support MRT it will not work unless I change or upgrade it ? (I know that my graphics card dont support MRT but did that mean it will not work (Ped on the DX) ?)

If the graphics card does not support MRT in shaders then i'd suggest using the nonMRT option. createPreview(...,false) instead of default 'true'. I have released a new version - for those that have issues with weapons - that might solve the problem. setPositionOffsets and setRotationOffsets might fix the object not fitting the projection box.

Link to comment
  • 2 weeks later...
  • 2 months later...
  • 2 weeks later...

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...