render.RenderView with RenderScene (some problems)

Using the code:
[lua]
hook.Add(“RenderScene”, “fullbright”, function(origin, angles, fov)
render.SuppressEngineLighting(true);
render.RenderView{
origin = origin;
angles = angles;
fov = fov;
x = 0;
y = 0;
w = ScrW();
h = ScrH();
};
render.SuppressEngineLighting(false);
return true;
end)
[/lua]

it messes up the fullbright effect on entities randomnly (depending on angles)

http://puu.sh/8Fw8g.jpg

http://puu.sh/8Fw7C.jpg

Bumping since people didn’t respond and I posted this at a slow time yesterday.

When you suppress engine lighting, you need to do it yourself.

Here are some functions to look into:
render.SetColorModulation
render.SetBlend
render.PushFlashlightMode
render.PopFlashlightMode
render.ResetModelLighting
render.ComputeDynamicLighting
render.SetLightingOrigin
render.SetAmbientLight

bumping again, and @Acecool, could you explain more?

also, here is my current code.
[lua]
hook.Add(“RenderScene”, “fullbright”, function(origin, angles, fov)
render.SuppressEngineLighting(true);
render.SetLightingMode(2);
–render.PushFlashlightMode(true);
render.RenderView{
origin = origin;
angles = angles;
fov = fov;
x = 0;
y = 0;
w = ScrW();
h = ScrH();
drawhud = false;
dopostprocess = true;
drawmonitors = true;
drawviewmodel = true;
};
–render.PopFlashlightMode();
render.SetLightingMode(0);
render.SuppressEngineLighting(false);
render.RenderHUD(0, 0, ScrW(), ScrH());
return true;
end)
[/lua]

pls help ;;-;;

I don’t know if it will help you and I don’t know when it will help, but try wrapping the code in cam.Start2D() and cam.End2D(), it helped me sometime when rendered 2d shit just were all weird.

Didn’t help

pls halp ;-;

bump

I’ll try to work on a quick tutorial after I finish up a few things; or I’ll paste a few things. Feel free to add me in the mean-time.