Hi all,

I have a problem with creating geometry and setting transformations form a
thread in my application.
What i basically try to do is:
- Load a model (a large model imported from CAD-tools)
-Then animate the model (set some Transformations inside of the loaded
model) and create additional geometry in a second thread
-Draw the model from the main application thread
The problem seems to be that the changes don't get synchronized to the main
thread's aspect.

My implementation generally corresponds to the 13multithreading2-example
found in the OpenSG2-Sources.
Also the 13multithreading2-example works when left unchanged. But when I
try to change geometry in the
thread this also does not seem to work. I have attached the changed sources
of the 13multithreading2-example
to this mail.

Can somebody help me with this?

I also have some questions about threads and aspects:

1. If i load a model and then call OSG::commitChangesAndClear() in the main
thread after loading it, can i still make
changes to the model in a thread using another aspect when i start the
thread after calling OSG::commitChangesAndClear() in
the main thread? Or do I have to keep the changelists in the application
thread and  call applicationThread->getChangeList()->applyAndClear()
from the second thread so the second thread creates the necessary copies of
the data in its aspect?

2. Are only the field containers which are changed by the second thread
duplicated or is the whole scene duplicated? My scene has about 900MB
when loaded, so duplicating the whole thing in the second aspect is not
really an option...

(See attached file: 13multithreading2.cpp)

Thanks,
Edmund Buchal

phone: +49 (0)711/22992-23
fax: +49 (0)711/22992-25
edmund.buc...@isg-stuttgart.de

Attachment: 13multithreading2.cpp
Description: Binary data

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to