[QUOTE=Jinto;14745132]Enough people seem to want to be able to control the fog in the map instead of their own draw calls.[/QUOTE]
Huh? How were we meant to do it in our own draw calls?
If we were to set the fog, and then draw something in, say, a RenderScene hook, would the fog apply to the thing that was drawn?
Reason being, EnableWorldFog which is called before drawing the world resets the fog based on fog params. So setting the fog would affect only your immediate drawing.
[QUOTE=Jinto;14768326]Reason being, EnableWorldFog which is called before drawing the world resets the fog based on fog params. So setting the fog would affect only your immediate drawing.[/QUOTE]
Woa, what happened to your avatar?
And your rank?
Whats this mod even do? i read it i just dont get it.
[QUOTE=Lufthansa;14793247]Whats this mod even do? i read it i just dont get it.[/QUOTE]
It is for Lua scripters, it adds more functions, check the OP for the list.
[b]Edit :[/b]
Also, i heard that Garry is including this in GMod.
[QUOTE=kevkev;14799761]Also, i heard that Garry is including this in GMod.[/QUOTE]
This would be usefull. :D
does anyone know what folder to put this in?
[QUOTE=Halo 228;14936155]does anyone know what folder to put this in?[/QUOTE]
[url]http://www.facepunch.com/showpost.php?p=14329019&postcount=198[/url]
Learn to read the thread :/
This is an awesome Module. D: I may make the time to actually add all the information to the Wiki. :3
[QUOTE=ZeikJT;14329019]You need lua programming knowledge to be able to do much of anything with this.
Do you have any intention of coding? If you don't then turn around and leave this thread right now.
If on the other hand you do, then using this module is pretty darn simple.
1.) Put the gmcl_renderx.dll into your garrysmod/garrysmod/lua/includes/modules
2.) Whip up a new SEnt or STool or whatever you wish to use the render clipping with.
3.) Add this line to the clientside you will be coding in: require( "renderx" )
4.) Then you can use these two simple lines of code on an entity to 'cut' it in half:
[code]
Plane( entity:GetForward( ), entity:GetPos( ) )
entity:SetRenderClipPlaneEnabled( true )
entity:SetRenderClipPlane( p.Normal, p.Distance )[/code]
The Plane function comes with the render library as well if I'm not mistaken, it turns a direction vector and position vector input into plane data that the renderclipplane function can use.
If you are simply making an entity clip itself you can use some of the other functions to just affect the entity itself, the advantages are that you will be able to push and pop planes onto it.[/QUOTE]
thanks
How to Install? any please help!
[QUOTE=Thorope;15225912]How to Install? any please help![/QUOTE]
Place the .dll file in lua/includes/modules
Ya, Thank you... But what about the other files there isn't just the .dll file there are others. also just to check is it the Release or the Source i have to download i have been downloading the Release?
[QUOTE=Thorope;15345577]Ya, Thank you... But what about the other files there isn't just the .dll file there are others. also just to check is it the Release or the Source i have to download i have been downloading the Release?[/QUOTE]
All releases have to come with the full source, that's what the other folders and files are, the only one you need worry about is that .dll going into the proper folder. Feel free to delete the other files.
Is possible to render day and night with this? How? With a dark fog?
BTW I have this:
function ENT:Draw()
self.Entity:DrawModel()
self.Entity:SetRenderClipPlaneEnabled( true )
self.Entity:SetRenderClipPlane( Plane( self.Entity:GetForward( ), self.Entity:GetPos( ) ) )
end
on clientsided part of my sent and it doesn't cut it.
Small update for the portal gun guys.
[b]Updated/Added functions[/b]
[list]
[*]render.CreateRenderTargetTexture( name, w, h, size mode, format, [b]rt depth[/b] )
[*]render.DepthRange( near, far )
[/list]
[b]Material RT Depth:[/b]
[list]
[*]MATERIAL_RT_DEPTH_SHARED
[*]MATERIAL_RT_DEPTH_SEPARATE
[*]MATERIAL_RT_DEPTH_NONE
[*]MATERIAL_RT_DEPTH_ONLY
[/list]
You can now tell render targets you create if they should have their own depth buffer or not.
Download is in first post.
[b]Edit:[/b] Quick update. Added a global that is set when the module is loaded. HasRenderX, so you can do conditional checks if the client has renderx loaded or not.
Jinto can we get a global variable that stores the module's version too? HasRenderX is not much use if we can't tell which version they are using..
Does anyone else using BlackOp's portal gun have an issue after updating the renderx module? Where it doesnt render the portal "worlds"? and just has 2 blue rings instead?
[QUOTE=Colton Rappe;16742559]Does anyone else using BlackOp's portal gun have an issue after updating the renderx module? Where it doesnt render the portal "worlds"? and just has 2 blue rings instead?[/QUOTE]
This update is breaking to anything using render.CreateRenderTargetTexture, the addon must be updated, or continue using the old version of renderx.
[QUOTE=Jinto;16743743]This update is breaking to anything using render.CreateRenderTargetTexture, the addon must be updated, or continue using the old version of renderx.[/QUOTE]
Thanks, and for some people, could you release the old version of the module? Till the Portalgun Project addon is updated? I may or may not have it lying somewhere on my harddrive.
EDIT: ehh, so many people going nuts on me for asking for an old version, gosh damn, people <<
[QUOTE=Colton Rappe;16745086]Thanks, and for some people, could you release the old version of the module? Till the Portalgun Project addon is updated? I may or may not have it lying somewhere on my harddrive.[/QUOTE]
Just wait for god sake.
Well the portalgun mod was updated, so all is good now. Hope to see more of this module being used in the community soon.
Is it possible to draw a portal on something else than a model ?
It would be awesome if each command was explained, especially the stencil buffer, because I am intruiged by the possibilities of what I have seen.
Never mind
never mind
Double Toast.
I was amazed by this, and had a crack at it myself ( using the examples posted by other FP'ers ). Im pretty OK at lua.. just.. more of the gamemode's side of it, not Ents
This is my pathetic attempt ( failed, too )
[url]http://pastebin.com/db47f85d[/url]
Now, im not here to say "OMG OMG OMG, ITS NOT WORKING MAKE IT WORK 4 ME". Could someone give me a small pointer as to whats wrong? as far as i can see it should be working ( but i don't really how it works :P )..
Any help will be much appreciated, even if its just "that line is wrong" =)
..MGinshe..
[b]Edited:[/b]
Scrap all of that, i figured it out
Sorry, you need to Log In to post a reply to this thread.