rssimage2material3D (image2material3d)
Category: | script |
---|---|
Author(s): | Ren712 |
Downloads: | 1014 |
Rate: | You need to be logged in to vote |
Rating: | 4.5 (10 Votes) |
Description:
Resource: Image2Material3D v0.3.1
Author: Ren712
The reason for this resource is to share some information regarding
transforming a simple dxImage into 3d world. The resource archive consists of
shaders and classes. They are placed in separate files so you just copy what you need.
So no exported functions - just c_resource_test lua file as an example.
The effects are visible on a pirateship spawning point in las venturas.
Requirements:
Most of the effects will work with just shader model 2.0 GFX. Except image4D_soft
which requires readable depth buffer access (also every _soft effect.
The ref effect might use depth texture to handle refraction leaking - but can
work without it.
image2Material3D is very experimental - if you see any issues - please notice me.
Mesage me on official mta forums (Ren_712) or an email address at the top of readme file. ...
(more)
Author: Ren712
The reason for this resource is to share some information regarding
transforming a simple dxImage into 3d world. The resource archive consists of
shaders and classes. They are placed in separate files so you just copy what you need.
So no exported functions - just c_resource_test lua file as an example.
The effects are visible on a pirateship spawning point in las venturas.
Requirements:
Most of the effects will work with just shader model 2.0 GFX. Except image4D_soft
which requires readable depth buffer access (also every _soft effect.
The ref effect might use depth texture to handle refraction leaking - but can
work without it.
image2Material3D is very experimental - if you see any issues - please notice me.
Mesage me on official mta forums (Ren_712) or an email address at the top of readme file. ...
(more)
Version history
Version | Publish Date | Changes | |
---|---|---|---|
0.3.1 | 2020-02-02 00:00:31 | -reconfigured image4D_mir | Download |
0.3.0 | 2020-01-11 21:34:16 | -fixed image4D_mir | Download |
0.2.8 | 2019-04-17 08:37:19 | -readjusted the projective texture coordinates -added image4D_sphere_grid, image4D_cone_grid | Download |
0.2.7 | 2019-03-07 22:44:51 | -added image4d_arrow | Download |
0.2.6 | 2019-03-04 22:32:19 | -added image4D_bezier3,image4D_cylinder_bezier3 | Download |
0.2.5 | 2019-02-17 00:21:54 | -added image4D_ring_ap, image4D_cylinder_ap, image4D_searchLightAltNoCorSoft -fixed some typos |
Download |
0.2.4 | 2018-03-25 22:55:04 | -added image4D_cylinder_bezier, image4D_frustumLight, image4D_searchLightAltNoCor -refraction changes acordingly to distance from surface (refraction effects and material3D_mir) -fixed typo in c_image4D_searchLight.lua, added setTesselationX method for image4D_bezier -added ability to modify texture uvs for image4D_bezier |
Download |
0.2.3 | 2017-10-29 22:54:50 | -added image4D_ring, image4D_cylinder, image4D_sphere_nrm_dis_rt -image4D_lightBall scale has 3 dimensions now | Download |
0.2.2 | 2017-10-22 22:26:28 | -tweaked image4D_searchLightAlt a bit | Download |
0.2.1 | 2017-10-22 22:11:25 | -added image4D_lightBall -better billboarding for image4D_bezier -image4D_searchLightAlt has proper normals now | Download |
0.2.0 | 2017-10-20 20:09:20 | -added image4D_searchLight, image4D_bezier, image4D_corona_nomat, image4D_corona_dark_nomat, image4D_searchLightAlt | Download |
0.1.9 | 2017-10-06 10:43:06 | -added image4D_line (fake line material) -switching to depthbuffer variant is now manual (set fDepth flag to true) -added setPostDepthBufferVariant -added some methods for Matrix class (for ZXY rotation handling) -added on screen description for every effect -added circle masking for material3D_mir |
Download |
0.1.8 | 2017-03-19 15:13:16 | -fixed a typo | Download |
0.1.7 | 2017-03-18 23:20:57 | -added material3D_mir | Download |
0.1.6 | 2017-03-14 23:47:55 | -added effect DB switching (if depth buffer has been used) to deal with zEnable issues, added DB variants for: material4D_blend, corona, nrm, nrm_dis, vertex, vertex_nrm, wave | Download |
0.1.5 | 2017-03-10 00:18:46 | -added image4D_ref_liquid -added fogEnable methods for ref classes |
Download |
0.1.4 | 2017-03-07 23:54:05 | -cleaned up some typos in lua files -optimized depth buffer shaders a bit -added fog effect for image4D_nrm_dis_ref -added image4D_ref_drop, image4D_DB, image4D_corona, image4D_corona_soft |
Download |
0.1.3 | 2017-01-05 21:04:42 | - using collectgarbage("setpause",100) to fix mta oop memory leaks | Download |
0.1.2 | 2016-10-04 22:45:12 | - fixed memory leak (include c_common.lua) | Download |
0.1.1 | 2016-03-27 20:31:17 | - applied billboard effect to c_image3D_sd_manual | Download |
0.1.0 | 2016-03-27 19:55:59 | - added vertex displacement effect image4D_vertex (requires Vertex Shader 3.0 support) - added image4D_vertex_nrm, as above but also generates vertex normals from normal map (requires Vertex Shader 3.0 support) - added depth tested effect image3D_sd_manual. Depth buffer is stored in separate render target (the effect requires MRT in shaders support) - added setCullMode method to set face culling - added setBillboard for image3D_manual and image3D - billboards don't need to be rotated to draw with face face cull mode - fixed some vector calculations in _nrm_ effects |
Download |
0.0.9 | 2016-02-01 15:12:55 | - effects using readable depthbuffer are rendered last. The effects using depthTesting are properly obscured by the world objects (Requires MTA 1.5.2) - image3D_manual uses camera position, forward and up vector to recreate viewMatrix - image4D_nrm_dis_ref has now a SM 2.0 variant |
Download |
0.0.8 | 2015-11-01 21:01:29 | -dxDrawImage4D_nrm_dis_ref (DB variant) requires shader model 3.0 to compile | Download |
0.0.7 | 2015-11-01 19:02:37 | -the refraction enabled effects are now working properly with or without anti aliasing (resigned from ZWriteEnable state and replaced with readable depthBuffer masking) | Download |
0.0.6 | 2015-11-01 18:18:52 | -image4D_ref_noCol.fx DB variant render states not properly set. | Download |
0.0.5 | 2015-09-08 20:04:26 | First public release | Download |