How do i convert 2d frame to 3d parts

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Im trying to convert a 2d drawing frames into a 3d part, like bringing the object that you draw to life

  2. What is the issue? Include screenshots / videos if possible!
    didnt know how to do it

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i didnt find this kind of topic in the devforum

any help would be appreciated

I’m not sure if you are drawing polygons but for a rectangle, there’s a function that will give you a ray based on a 2d point on the player’s camera screen. You would then get 4 3d points that are playerCameraPosition + rays[cornerIdx]*minDistance and then you’d get the other 4 points through playerCameraPosition + rays[cornerIdx]*(minDistance+partThickness)

once you have all 8 corners you’d just create a part and set the cframe to be

CFrame.new(avgCornerPositions, playerCameraPosition)

and the size is self explanatory

could you show me the example code? (3000chars)

There is no such thing as an example code you have to be an engineer and figure out how to implement it now. I told you how the theory works.

1 Like