Dirk Reiners wrote:
>       Hi Marcus,
> 
> Marcus Lindblom wrote:
>> Hi,
>>
>> The SSM seems to assume it always has viewport index 0. This isn't 
>> always correct, as one can add other viewports.
>>
>> i.e:
>>
>> Line SimpleSceneManager::calcViewRay(Int16 x, Int16 y)
>> {
>>      Line l;
>>      _camera->calcViewRay(l, x, y, *_win->getPort(0));
>>      return l;
>> }
>>
>> Is there a reason for this (other than to keep it simple) or would it 
>> make sense to change the SSM so that it mostly concerns itself with it's 
>> own viewport and assumes less of the surrounding objects?
>>
>> I could probably cook something up if ppl think it's worthwhile.
> 
> no reason, except for being simple. If you can fix it that would be 
> appreciated. 
> I think just passing in the index for the viewport that's supposed to be used 
> with 0 as a default should be fine.

Right. I'll look into that.

I had originally envisioned to add a ViewportRefPtr to SSM and use that. 
I could make the -1 index default and select the ssm-viewport in that case.

Cheers,
/Marcus



------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to