Hi,I would like to understand how works the decomposition tile_equalizer, so I am trying to build a simple application using tile_equilizer in the config file which should render a picture where each tile has a different color. Something like a chess table but with many colours.
I am using the attached config file and my code for Channel::frameDraw( const eq::uint128_t& frameID ) is:
{
EQ_GL_CALL( glEnable(GL_SCISSOR_TEST));
EQ_GL_CALL( eq::Channel::applyBuffer() );
EQ_GL_CALL( eq::Channel::applyViewport() );
eq::PixelViewport viewport = getPixelViewport();
// Choose the tile colour r g b
float * data = new float [3*viewport.h*viewport.w];
for(int i=0; i<3*viewport.w*viewport.h; i+=3)
{
data[i] = r;
data[i+1] = g;
data[i+2] = b;
}
EQ_GL_CALL( glDrawPixels(viewport.w, viewport.h, GL_RGB,
GL_FLOAT, data) );
delete[] data;
}
This code render just the first tile in the position (0,0) but not the
others.
I need any thing else to render my multi colour chess table. I really appreciate any help you can provide. Cheers -- Carlos Duelo
tile_screen.pdf
Description: Adobe PDF document
#Equalizer 1.2 ascii
global
{
}
server
{
config
{
name "local autoconfig"
attributes
{
robustness AUTO
eye_base 0.05
}
appNode
{
pipe
{
name "GPU1 mt mp"
port 0
device 0
window
{
name "GPU1 mt mp window"
viewport [ 900 216 1800 540 ]
channel
{
name "channel1"
}
}
}
}
observer
{
eye_left [ -0.025 0 0 ]
eye_cyclop [ 0 0 0 ]
eye_right [ 0.025 0 0 ]
focus_distance 1
focus_mode fixed
}
layout
{
name "Simple"
view
{
observer ""
wall
{
bottom_left [ -1.66667 -0.50000 -1.00000 ]
bottom_right [ 1.66667 -0.50000 -1.00000 ]
top_left [ -1.66667 0.50000 -1.00000 ]
}
}
}
canvas
{
layout "Simple"
wall
{
bottom_left [ -1.66667 -0.50000 -1.00000 ]
bottom_right [ 1.66667 -0.50000 -1.00000 ]
top_left [ -1.66667 0.50000 -1.00000 ]
}
segment
{
channel "channel1"
}
}
compound
{
compound
{
channel ( canvas 0 segment 0 layout "Simple" view 0 )
tile_equalizer{}
}
}
}
}
_______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

