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

rssdr_image3DLight (dr_image3dlight)

Category:script
Author(s):Ren712
Downloads:327
Rate:You need to be logged in to vote
Rating:None (0)
Description:
Resource: dr_image3DLight v0.1.6
Author: Ren712

IMPORTANT:
This resource doesn't provide any entity/light sorting, exported functions,
entity limit. It provides classes that can be used in other resources.
Number keys 1 to 0 allow you to create selected entities for testing purposes.

Description:
This resource adds an ability to create simple light sources and more.
The purpose of this resource is to give an efficient alternative to
dynamic lighting resource and introduce deferred rendering
approach. Light (or any other effect) is produced after world is rendered
based on information (scene depth, world normals, texture color) generated before.

More detailed description is presented here:
https://gamedevelopment.tutsplus.com/articles/forward-rend..edev-12342

The outcome is drawn on transformed and tessellated image2material3D.
You can add virtually limitless number of lights.

Instead of image3DLightBasic this provides proper blending with world
texture color and interpolated normals passed by a separate rt_renderTarget
resource.

In order to work the effects
require shader model 3 GFX with readable depth buffer support.

Effects:
CImgLightDirectional - Creates a global directional light
CImgLightPoint - Creates a point light.
CImgLightPointNoNRM - Same as above but no normal shading
CImgLightSpot - Creates a spot light.
CImgLightSpotNoNRM - Same as above but no normal shading
CImgLightSpecular - Creates a specular light.
CImgLightDark - Creates an inverted color point light
CImgLightDarkNoNRM - Same as above but no normal shading
CImgTexture - Creates a 2D quad
CImgTextureNoDB - Creates a 2D quad (basic method)
CImgTextureProj - Creates a projected 2D texture
CImgTextureProj2 - Creates a projected 2D texture type2
CImgTextureProjNoDB - Creates a projected 2D texture (basic method)
CImgTextureProjNoNRM - Same as above but no normal shading
CImgTextureProjCone - Creates a projected 2D texture (perspective projection)
CImgTextureProjCone2 - Creates a projected 2D texture type2 (perspective projection)
CImgTextureProjConeNoDB - Creates a projected 2D texture (basic method)
CImgTextureProjConeNoNRM - Same as above but no normal shading
CImgTextureProjCube - Creates a projected cube texture
CImgTextureProjCubeNoNRM - Creates a projected cube texture

Requirements:
Shader model 3.0 GFX, readable depth buffer in PS access.

test.lua lets you create lights in front of the camera view.

Download latest version | Report

Version history

Version Publish Date Changes
0.1.6 2021-02-11 17:00:59 -fixed a typo Download
0.1.5 2021-02-09 23:07:45 -added light clearing option
-fixed a spotlight bug introduced in the last version
Download
0.1.4 2021-01-26 07:41:29 -changed depth bias for billboards Download
0.1.3 2020-04-20 22:22:56 -added off-screen light culling
-added projectedTexture2, projectedTextureCone2 effects
-fixed switching zEnable for lights
-cleaned up some needless lua code
-changed fading method a bit
Download
0.1.2 2020-02-19 17:44:07 -optimized effects a bit Download
0.1.1 2020-02-01 23:57:34 -added all the changes of image3DLightBasic (0.1.2) Download
0.1.0 2019-03-31 19:48:06 -readjusted the projective texture coordinates Download
0.0.9 2019-03-26 22:42:58 First public release Download