Yeah, it works.
Thanks Gerrit~~
2009/7/13 Gerrit Voß <[email protected]>
>
> Hi,
>
> On Sun, 2009-07-12 at 16:45 +0800, Jie Liu wrote:
> > Hi,
> >
> > I tried to run a direct volume rendering program in the multiple
> > display window environment.
> >
> > I conisdered two demo programs within the OpenSG v1.8.0 distribution:
> > 1) testVolumeShadersRender.cpp
> > 2) Tutorial/12ClusterServer.cpp & Tutorial/13ClusterClient.cpp
> >
> > Both programs work well seperately:
> > The volume can be rendered in a single window;
> > For the cluster programs, a torus geometry can be displayed in the
> > server window and be rotated via the client window.
> >
> > however, when I combine together the ClusterClient.cpp code and
> > testVolumeShaderRender.cpp code,
> > we can successfully build the new program (namely VolumeClient.exe),
> > but failed to run it, below are more detailed descriptions.
> >
>
> there is a bug in the dvr lookup table code. Locally it initializes
> everything correctly but does not mark it for transmission in the
> cluster (dvrlookuptable::commonContructor). The easiest way for you
> to work around this is to mark everything of the dvrluttable changed
> in your makeVolume function, e.g.: change
>
> beginEditCP(lut, DVRLookupTable::TouchedFieldMask);
> lut->setTouched(true);
> endEditCP(lut, DVRLookupTable::TouchedFieldMask);
>
> // Initialize the lookup table
> beginEditCP(lut, DVRLookupTable::DataFieldMask);
> for (int i = 0; i < 1024; i++)
> lut->getData()[i] = lutData[i];
> endEditCP(lut, DVRLookupTable::DataFieldMask);
>
>
> to
>
> beginEditCP(lut);
> lut->setTouched(true);
>
> for (int i = 0; i < 1024; i++)
> lut->getData()[i] = lutData[i];
> endEditCP(lut);
>
> with this change I can see the volume spinning on the server.
>
> kind regards,
> gerrit
>
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Opensg-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-core
>
--
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core