Hi,

My OpenSG version is 1.8.0. When I tried to test the progs/Without_SSM.cpp
program, I attempted to modify its code to get a window of larger size:

i.e, I did it in main() like this:
window->setSize(800, 800);  // the parameters are originally set by 300x300

However, my window size did not change at all, and I tried to find out the
reason by adding a line of code in function reshape():
void reshape(int w, int y)
{
std::cout<<w<<","<<h<<std::endl;
...
}

I found that, every time when my application was started, the function
reshape was invoked by default, and set my window a size of 300x300,
So that's why my 'setSize' does not work~~

So how can I get a larger window as I wanted?

----------------------------------------------------------------------------
Another question, is there any doc demostrating the usage of
OrthographicCamera?
I can find a testOrthographicCamera.cpp, I dont think it is quite
straightforward and intuitive~~

So does any one can show me the exact way of using OrthographicCamera?
How it is initialized, and combined to a viewport, and set its position,
lookat direction...?
I have checked its interfaces, but they do not work...

Thanks~~

-- 
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to