generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Using ScreenPointToRay

Previous Thread :: Next Thread 
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:14 PM
########################################################################################################################################################################################################################################################################################################################################################################################################################################################
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:15 PM
OMFG

http://
paste
bin
.
com
/
iKs
kJ9
SY


Kill me D:
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
24 Aug 2016 11:21 PM
You don't need to use ScreenPointToRay for that. Use some trigonometry.


local sizeY = 2*math.tan(math.rad(Camera.FieldOfView/2))*distance
local sizeX = sizeY*(ViewportSize.X/ViewportSize.Y)
part.Size = Vector3.new(sizeX, sizeY, 0)
part.CFrame = Camera.CFrame * CFrame.new(0,0,-distance)



Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
24 Aug 2016 11:24 PM
Nevermind, I thought you were trying to do something else.

Someone else have fun deciphering what he's trying to do.


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:24 PM
but that wont make it relative to the distance it is from the camera, would it?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:25 PM
im trying to project a background part onto a wall

and i want it to follow the camera around so that I can change the decal of the background and put things on top of it without having to stretch the image
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:26 PM
so basically, the camera will always face a wall, and i want a background part with the background image to follow where the camera moves
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:29 PM
@thedailyblarg Is English not your first language??
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:37 PM
if english was yours you would understand what I am saying

I want a part

to follow the camera

while projecting itself onto the nearest wall

that the camera is facing

because i want it to

show a perfectly sized background image

that can be layered over with 3d objects
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:40 PM
I'm not trying to insult you, it was just a question but you still haven't answered.
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:42 PM
yes
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:43 PM
Oh then do you have Asperger's or something?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:47 PM
are you mentally ill or are you normally this dumb
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:48 PM
Jeez it was just a question. I have nothing against you or your Asperger's. I have a cousin with Asperger's too. I know how you feel.
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:48 PM
and i know dogs with a higher IQ than you
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
24 Aug 2016 11:49 PM
"and i know dogs with a higher IQ than you"
same goes to you
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:49 PM
You're a furry, right?
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
24 Aug 2016 11:50 PM
do any of you idiots even comprehend what im trying to do

if not then go troll some other idiot on the forums

i dont have time to deal with your bull
Report Abuse
Convergy is not online. Convergy
Joined: 25 Nov 2011
Total Posts: 183
24 Aug 2016 11:50 PM
Sorry I wasn't asking if FluxCapaictor was a furry, I mean the guy wearing a dog head and a furry as a steam profile image.
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
24 Aug 2016 11:57 PM
I'm not smart enough to decipher 100 number signs followed by each other, and I know your question will be dumb like always
Report Abuse
pidgey is not online. pidgey
Joined: 16 Jan 2008
Total Posts: 2739
25 Aug 2016 01:18 AM
lol same flux


https://www.roblox.com/My/Groups.aspx?gid=2893266 | pidgey is my name posting low quality answers is my game https://www.roblox.com/money-item?id=13127780
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
25 Aug 2016 06:10 PM
i gave a pastebin link are you blind
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image