Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: how to draw a tennis court  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

upscalebigtime

  • Newbie
  • *
  • Posts: 2
    • View Profile
how to draw a tennis court
« on: January 04, 2020, 07:30:07 pm »
Hello, I would like to draw a tennis court like the one attached to this post? How do I go about doing this? Is this something I can do in SFML or do I need a specialized software package? Is this a simple 2-d image?

I appreciate all the help!

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: how to draw a tennis court
« Reply #1 on: January 05, 2020, 01:08:54 am »
You could easily draw it with a 2D image (sprite) or plain colored shapes.

upscalebigtime

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: how to draw a tennis court
« Reply #2 on: January 05, 2020, 02:01:45 am »
Because the view is not top down but oblique , how can this be accomplished ?  Do I draw the tennis court with a top down perspective and then adjust via a camera ? I also see there is a one point perspective but not sure if there are drawing tools to aid with that. Thanks again!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: how to draw a tennis court
« Reply #3 on: January 05, 2020, 10:49:09 pm »
Easiest and probably most flexible solution (w.r.t. the design) is to just draw something in GIMP/photoshop/etc and then render the whole image as a sprite. Potentially the net as a second overlaying sprite, in case you need to render the ball behind the net.
From there you'll have to apply some math to calculation trajectories and depth position and correlating ball size.

Alternatively, you could use something like Elastic Sprite.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything