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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 11 12 13 14 15 … 18 Next »
render.toScreen() on an Emitter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
render.toScreen() on an Emitter
16-09-2015, 04:06 AM,
#1
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
render.toScreen() on an Emitter
Just wondering if i'm doing something wrong or if SF Emitters don't utilize render.toScreen()

tried it but it seemed to stick at 0,0
2nd try ended up returning nil

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
16-09-2015, 10:54 AM,
#2
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: render.toScreen() on an Emitter
I tried that myself multiple times. This only works on HUDs. It would be cool if it would work on emitters or screens though.

[Image: banner_sgmgnlsa1.png]
Stargate Modding Group
Find
Reply
16-09-2015, 01:23 PM,
#3
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: render.toScreen() on an Emitter
it does work on EGP emiiters since they're essentially fixed 3D2D cams on a plane relative to the emitter, the code could potentially be used to fix it

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
16-09-2015, 01:49 PM,
#4
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: render.toScreen() on an Emitter
I like this. Would be a great addition with lots of potential

[Image: banner_sgmgnlsa1.png]
Stargate Modding Group
Find
Reply
16-09-2015, 05:37 PM,
#5
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: render.toScreen() on an Emitter
This kind of thing is doing a bit too much for the user I think.

All you need to do is line-plane intersection with the parameters you pass to start3D2D used to define your plane, and the player's view direction as the line. This can be accomplished in Starfall quite easily with what's already available.
Find
Reply
16-09-2015, 11:07 PM,
#6
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: render.toScreen() on an Emitter
Did not think of that, thanks

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
17-09-2015, 06:15 PM,
#7
Garbius Offline
That guy
*****
Posts: 10
Threads: 0
Joined: Oct 2013
RE: render.toScreen() on an Emitter
T-17: That touch code I gave you has an applied line-plane intersection calculation that can be repurposed for this.
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.