Draw 2D things on screen

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
PJani
Gremlin
Posts: 171
Joined: Wed Dec 24, 2008 7:21 pm

Draw 2D things on screen

Post by PJani »

How can i draw 2D things on screen like squares, circle, lines?
| Intel Dual Core 1.8Ghz, ATI Radeon Mobility X1600 256MB, 2GB RAM |
| AMD64 3000+ 1.8Ghz, 2GB RAM, GF6600 GT 128MB |
| Ogre 1.6.4 | VS C++ EE | OgreNewt + Newton 2.xx |
| Win XP || Ubuntu 9.04 | C/C++, Python, VB6, Delphi |
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Re: Draw 2D things on screen

Post by syedhs »

A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
User avatar
PJani
Gremlin
Posts: 171
Joined: Wed Dec 24, 2008 7:21 pm

Re: Draw 2D things on screen

Post by PJani »

How can i use external 2D engine? OGRE makes things to complicated for 2d rendering
| Intel Dual Core 1.8Ghz, ATI Radeon Mobility X1600 256MB, 2GB RAM |
| AMD64 3000+ 1.8Ghz, 2GB RAM, GF6600 GT 128MB |
| Ogre 1.6.4 | VS C++ EE | OgreNewt + Newton 2.xx |
| Win XP || Ubuntu 9.04 | C/C++, Python, VB6, Delphi |
darke
Halfling
Posts: 94
Joined: Mon Sep 08, 2008 3:30 am

Re: Draw 2D things on screen

Post by darke »

It isn't actually too bad using overlays or Rectangle2d's to do 2d things with Ogre. It's just not as streamlined as if you were doing it in an engine that is designed deliberately to support 2d sprites and the like.

The issue with using another engine for 2d and then integrating it with ogre, is that you'll end up having to do things like declare materials, fonts, etc in two different ways if you want to share across them. One for Ogre, and one for OtherEngine. Nothing too terrible, just another area for minor errors and the like.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Draw 2D things on screen

Post by jacmoe »

PJani wrote:How can i draw 2D things on screen like squares, circle, lines?
Try Hikari (Flash) or MoonBeam (Silverlight) - the latter features a Cairo backend, which could be used on it's own.
Then there's OgreMagic, although it's author seems to have vanished.

Ogre3D is - as the name suggests - 3D.

2D is no problem, but drawing squares, circles and lines are.
Your best bet is Cairo, so get the back-end from MoonBeam. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Post Reply