2.1 Background scroll

Problems building or running the engine, queries about how to use features etc.
Post Reply
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

2.1 Background scroll

Post by Lax »

Hi,

I'm trying to create a background scroll effect. That is, a picture should be in background and scrolled. I tried several approaches, and I'm really confused, as its really not trivial in Ogre to do it. I think the scroll functionality is not the problem, but setting a picture in background, similiar to skyboxes. What I tried so far:

- Via Ogre::v1::Rectangle2D setCorners, but it seems that Ogre::v1::Rectangle2D does not work anymore
- Via HlmsUnit data block creation, but picture is not visible
- Via compositor: I orientated on the post processing tutorial, got stuck, because I cannot get warm with the compositor thing...

In general, I think there is a helper functionality missing, how to render objects for entire screen. There are to many ways how to do it and you can go easely wrong and get desperated. Selection rectangle does also not work anymore.

Maybe somebody has an example, or maybe a tutorial for Ogre2.1 could be written, how to use such things...

Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

Post Reply