|
From: Jose' C. <cru...@ce...> - 2005-09-10 17:52:40
|
Il giorno 10/set/05, alle 12:52, Stefan Huber ha scritto: > Under QD3D it's possible to write multiple viewhints to the same file > (e.g. the QD3D viewer's camera menu adds cameras from multiple > viewhints). > > In Quesa E3FFW_3DMF_StartFile (E3FFW_3DMFBin_Writer) always writes the > header (kQ3ObjectType3DMF). In my case (writing the current view, then > writing several additional viewhints from another views to the same > file), this behavior is wrong. > > In my case changing the first line in E3FFW_3DMF_StartFile to > > TQ3Status status = > fileFormatPrivate->baseData.currentStoragePosition > 0 ? kQ3Success : > E3FFW_3DMF_TraverseObject (theView, fileFormatPrivate, NULL, > kQ3ObjectType3DMF, fileFormatPrivate); > > solves the problem. > Let me understand... you open the file, start a render loop, submit some objects, closes the render loop, and then reopens another loop with another view on the same file? and what happen with the model, it's written twice? I've commited your changes anyway because seem harmless to me Pax et Bonum # dott. Jose' Cruanyes Aguilar - C.E. Soft srl # Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA # 02,33603122 0372,460602 |