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 » Scripting Helpers
Home Search
 

GUI Translations from 3D to 2D

Previous Thread :: Next Thread 
Jlobblet is not online. Jlobblet
Joined: 05 Sep 2010
Total Posts: 587
23 Dec 2012 01:40 PM
I'm working with a GUI on a screen, to place over a player in the 3D workspace onto the 2D PlayerGui, using the algorithm:

xs = O.Z/(O.Z*fx)

Where xs is the X co-ord on the screen, O.X is the X position of the object relative to the camera (and the same with O.Z, respectively) and I was wondering if anyone knows the factor (fx) for the X and Y before I start brute-forcing through to develop a pattern?

The main problem I've had so far is the GUI is not positioned accordingly, despite testing multiple factors. I wouldn't be suprised if I need to change the factor while the camera moves.

If you do know thanks in advance

~if not ok then return end
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
23 Dec 2012 02:58 PM
Why not use a billboard GUI?


print('Hello World!')
Report Abuse
Jlobblet is not online. Jlobblet
Joined: 05 Sep 2010
Total Posts: 587
23 Dec 2012 03:16 PM
I want it only to be available to one person(via the PlayerGui); the work for the actual positioning is done, I just need to get an algorithm for the factors.

~if not ok then return end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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