Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Feedback Suggestions and improvements v
« Previous 1 … 17 18 19 20 21 … 36 Next »
render.enableScissorRect()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
render.enableScissorRect()
19-10-2018, 11:55 AM,
#1
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
render.enableScissorRect()
I tried using the render.enableScissorRect() on a starfall emitter and I came up with a strange bug meaning the rect was depending of my angle of view ,like if the rectangle was attached to my camera, I guess its a bug cause it should in theory just cut what's beyond the coords but local to the emitter

Here is a part of my code that should help you notice the bug :


render.start3D2D(ents.self():toWorld(Vector(0,0,2)),ents.self():toWorld(Angle(0,90,0)), 0.032)
emitter.setDrawEverywhere(false)
render.clear()
render.enableScissorRect(-824,-512,824,512)
render.setColor(250,250,250,50)
render.drawRect(-824,-512,1648,1024)
render.end3D2D()
end)

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
19-10-2018, 04:41 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: render.enableScissorRect()
They're not supposed to be used in 3D2D cameras, they only work in screens, render targets and HUDs (i.e. 2D contexts). I've changed the function to error when used in 3D2D.
Find
Reply
19-10-2018, 11:11 PM,
#3
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: render.enableScissorRect()
(19-10-2018, 04:41 PM)Person8880 Wrote: They're not supposed to be used in 3D2D cameras

Aww too bad, couldnt there be a way to do a 3D2D equivalent of that function ? Sad

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.