Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssObject Preview (object_preview)

Category:script
Author(s):Ren712
Downloads:5043
Rate:You need to be logged in to vote
Rating:4.2 (20 Votes)
Description:
Resource: Object Preview v0.7.0
Author: Ren712

This resource lets you create an object that will be drawn on the screen
provided size and position - just like when drawing an image. This way it is easy to
create object preview on GUI (supports drawing in a separate render target).
Works with peds, world objects and vehicles.

The resource itself adds exported clientside functions
Wiki: https://wiki.multitheftauto.com/wiki/Resource:Object_preview
Example resources: (for MRT and non MRT effect)
https://www.dropbox.com/s/p32z7mjr5o6wajj/object_preview_test.zip?dl=0
https://www.dropbox.com/s/t7d4bfjxrb8epdl/object_preview_t..T.zip?dl=0
Note:
Some older graphics cards do not support MRT in shaders.
If You are planning on using this resource on a public server then
consider creating a non MRT effect - then an object will be drawn in the same
render target as the world is. Ofcourse no renderTarget related functions will be supported.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
0.7.0 2022-01-07 00:06:31 -added color filter (added global setColorFilter function)
-disabled light effect for ped
-added proper slicing to avoid fog related issues
-added setVisible and isVisible functions
-fixed saveRTToFile improper image size
-setElementPosition has warp flag set to false
-added setAttached function (and an optional flag to createObjectPreview) to manage preview of attached object to another viewed object
-added createTextureReplace, setTextureReplaceTexture, destroyTextureReplace exported functions
Download
0.6.9 2020-05-16 23:22:07 -attempt to fix some drawing issues Download
0.6.8 2018-05-08 23:25:57 -alpha fix Download
0.6.7 2016-05-20 20:32:48 -reverted to 0.5.8 due to issues remaining Download
0.6.6 2016-05-20 19:16:07 -based on 0.6.2 method (possible fix) Download
0.6.5 2016-05-09 23:50:53 -reverted to 0.5.8 due to current issues. Download
0.6.4 2016-05-09 23:21:49 -fixed a typo Download
0.6.3 2016-05-09 23:03:24 -possible fix for bug introduced in 0.6.0 Download
0.6.2 2016-04-08 11:57:39 -Fixed effects not rendering for some graphics cards. Thanks go to sam@ke for the bugfix. Download
0.6.1 2016-03-25 02:53:58 -sent some depth related calculations from vertex to pixel shader. Download
0.6.0 2016-03-18 16:41:49 -the MRT effects are using zBuffer separate from main scene -fixes possible near camera zFighting for MRT effects Download
0.5.8 2016-02-02 12:22:15 -rewritten ped and object preview effects (possible fix for some users) Download
0.5.7 2016-02-01 18:35:47 - minimum distance from camera is now 1 unit - added variable sProjZMult - camera matrix is now set with 2 (up and forward)vectors - changed distance spread values (different for ped, object and vehicle) - deleted some unnecessary render states from shaders Download
0.5.6 2015-10-30 22:36:25 -Changed variables defining objects. -Defined some render states - Possible fix for non visible weapons Download
0.5.5 2015-09-03 07:35:47 -Possible fix for some GFX not rendering the object. Download
0.5.4 2015-08-22 21:37:58 -a single renderTarget is created for all MRT objects now
-removed position-normal bias from MRT objects
-fixed: can't apply elementRotationOffsets
-added error messages for exported functions
Download
0.5.3 2015-08-01 20:14:01 -Possible fix for some GFX not rendering an object Download
0.5.2 2015-08-01 09:09:10 -added some debug output. If the GFX doesn't support MRT in shaders then the effect will not fallback to non MRT solution (explanation in debug window). Download
0.5.1 2015-07-30 10:04:41 -fixed effect not showing for peds or small objects (changed default zDistanceSpread) Download
0.5.0 2015-07-29 21:05:17 First public release Download