Background picture

All about the core api and animation, input, sound, effect, collision and physics engines.
You can also post here your feature requests.

Moderator: Brume Dev Team

Background picture

Postby Gero on Thu Dec 06, 2007 10:14 pm

Hi,

I am new to Brume and I just want to code a simple game. Is there a way to display a simple
background picture with this engine without using skyboxes meshes and such things?
Just a simple quad.
User avatar
Gero
Brume user
 
Posts: 27
Joined: Thu Dec 06, 2007 10:11 pm

Re: Background picture

Postby Silmaryls on Thu Dec 06, 2007 11:15 pm

Hi,

Yep, you can try to use HUD perspective like that :

Code: Select all
BrumeSquareTextured background = new BrumeSquareTextured(this, "background");
background.RenderStates.Perspective = BrumeRenderParams.PERSPECTIVE_HUD;
background.HasGlobalSize = false;
background.XSize = this.BrumeWidth;
background.YSize = this.BrumeHeight;
background.RenderStates.Texture[0] = this.GetTexture("multitex2.tga");


If you want to draw more things on the background you will have to play with the Pos.Z property of your objects.
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Technical discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron