aitzolmuelas' blog

Blog focused in computer graphics mainly. Personal comments and opinions are also welcome.

Wednesday, August 29, 2007

Shader experimenting results






Hi everyone, I have been experimenting with stream-loading of larger 3D worlds, and these are the results. In this I have also used a minor form of collision (although it cannot be perceived in pictures XD), and real-time multitexturing for the terrain (I got the textures via Google images + TheGimp->MakeSeamless: not too neat, but does the trick). Also I did quite a lot of optimizing in the shaders: for those who might be interested, NEVER USE CONDITIONAL STATEMENTS WITHIN A SHADER, unless it is absolutely necessary, and enough computations are skipped with the condition as to compensate for FAILED BRANCH PREDICTIONS (if you want to know more, Google for "SIMD processors" and "pipelining"). One of these days I might post a more detailed explanation on how to avoid conditional statements via conditional masks, and other tricks to optimize shader execution I have discovered by chance ^_^. Until then, have fun.

Labels: ,

1 Comments:

Anonymous Anonymous said...

Я считаю, сколько Вы не правы. Могу отстоять свою позицию. Пишите мне в PM, пообщаемся. [url=http://www.whited00r.com/forum/index.php?action=profile;u=37189]Ювелева[/url] [url=http://www.whited00r.com/forum/index.php?action=profile;u=37189]Элина[/url] [url=http://tchdkh.org.vn/forum/viewtopic.php?f=5&t=242072]Место хорош, читал и видел многие приманка ошибки, но не увидел главной:)[/url]

Fri Jan 18, 11:29:00 PM GMT+1  

Post a Comment

<< Home