DailyTasks

Useful App – Daily Tasks

This app was made to be used in Portuguese, so no Description here =(

Invasion will be on real locations!

Our next Indie, Invasion: Barricade, will be on real locations! More specifically, on São Bernado do Campo, São Paulo- Brazil.
If you want to take a look at the location, just enter the Google Maps link:

http://maps.google.com.br/maps?f=q&source=s_q&hl=pt-BR&geocode=&q=rua+estocolmo&aq=&sll=-23.713593,-46.581133&sspn=0.001265,0.002642&g=R.+Leonilda+Morganti+Fornari+-+Assun%C3%A7%C3%A3o,+S%C3%A3o+Bernardo+do+Campo+-+S%C3%A3o+Paulo,+09861-700&ie=UTF8&hq=&hnear=R.+Estocolmo+-+Assun%C3%A7%C3%A3o,+S%C3%A3o+Bernardo+do+Campo+-+S%C3%A3o+Paulo,+09861-650&ll=-23.714177,-46.577268&spn=0.00502,0.010568&t=h&z=17

Age of Empires BETA Code Giveaway!

I’m giving away 1(one) code for the Age of Empires Online BETA!
To join, you only need to RT my Tweet about the giveaway!

Lar Gaming Courses

Sorry, this entry is only available in Português.

My Notebook is Back

Sorry, this entry is only available in Português.

JogoJusto

Do you know the JogoJusto Project?

They want to lower the GIANT taxes of games in Brazil!

(A game in Brazil costs(in big stores, like WalMart) US$120…)

Visit their website: http://www.jogojusto.com.br/

Jogo Justo

Jogo Justo

Frustum Culling

For Games, Perfomance is EVERYTHING!

The biggest the FPS, the better the game is to the player.
And, because of this, I have decided to implement a new function in LarX’s rendering system: Culling, in my case, Frustum Culling.
Well, you may thing: WTF?
Culling is not rendering the objects that are not being showed in screen. It saves performance, because we don’t need to do unnecessary calcs, either in the CPU(Matrix, several loops…) and in the GPU…
It’s extremely simple to do this in XNA:
In your Camera class, we only have to create a BoundingFrustum, and initialize it with the camera’s View and Projection Matrixes:

Frustum = new BoundingFrustum(view * projection);

And in the Camera’s Update Method, Update the Frustum’s Matrix:

Frustum.Matrix = View * Projection;

Then, in the method that renders everything, we only need to test, foreach bounding sphere of the models, if they are on screen:

//Foreach object to be rendered
for (int j = 0; j < Objects.Count; j++)
{
// Starts a ContainmentType, of type Disjoint
ContainmentType currentContainmentType = ContainmentType.Disjoint;

//Gets the Sphere from the obj…
BoundingSphere meshBoundingSphere = Objects[j].Sphere;
//…and test it with the camera frustum
currentContainmentType = Camera.Frustum.Contains(meshBoundingSphere);
//If the sphere is showed on screen…
if (currentContainmentType != ContainmentType.Disjoint)
{
// …Render
DrawModel(…);
}
}

Remember: You have to use your own way to calculate the BoundingSphere of the model. Soon as I get my notebook back, I’ll post my way here.

ps.: This is a very good way, saves a lot of perfomance, but, remember: Some models, faaaar away, will be rendered anyway, because they are on camera’s view, either if there is a wall in front of it.

That’s it :D

Done

Finally done, this is the website of LAR Gaming!

It’s a blog, with out info!