• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to make 2D lines look 3D
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make 2D lines look 3D


  • Subject: Re: How to make 2D lines look 3D
  • From: Thomas Engelmeier <email@hidden>
  • Date: Fri, 31 Dec 2010 16:45:57 +0100

Am 31.12.2010 um 16:29 schrieb Matthias Arndt:

> - Draw 2D lines in OpenGL
>
> I dropped the OpenGL approach due to too many drawbacks, e. g. missing round line caps, resolution-dependence of line width, ... The shadow approach looks best, but is out of question due to its bad performance.

Which means you used OpenGL line drawing primitives. You could try to use pre-rendered images with transparency (=shadow), with linecaps separate and an stretchable image for the line. Google keywords: Texture2d, 2d texture drawing.

If you don't want to use OpenGL directly, Quartz 2D and / or CoreAnimation will drill down to OpenGL based drawing rather sooner than later.

HTH,
	Thomas

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to make 2D lines look 3D
      • From: Matthias Arndt <email@hidden>
References: 
 >How to make 2D lines look 3D (From: Matthias Arndt <email@hidden>)
 >Re: How to make 2D lines look 3D (From: Matthias Arndt <email@hidden>)

  • Prev by Date: Re: How to make 2D lines look 3D
  • Next by Date: (no subject)
  • Previous by thread: Re: How to make 2D lines look 3D
  • Next by thread: Re: How to make 2D lines look 3D
  • Index(es):
    • Date
    • Thread