|131363||Jul 6,2017 03:41 PM UTC||Jul 21,2017 10:37 AM UTC||WPF||7|
Thanks for the sample - this is the minimal that is at the "Annotation" section.
This sample is using the default Acrobat Reader view:
The last two are not OK of course. So two options I spend the 2 days to investigate without success so far:
option #1: try to use the default view, but changing is background+lightning+rendering
No success so far. For example, your sample http://help.syncfusion.com/cr/cref_files/windowsforms/pdf/Syncfusion.Pdf.Base~Syncfusion.Pdf.Interactive.Pdf3DBackground.html
does not work, creating an "Either ViewNodeName or CameraToWorldMatrix properties must be specified." error, same error as in many samples in your pdf3d documentation ... likely some breaking changes have been introduced since. (you should escalate on that likely)
Option #2: create additionnal view
This work great to set background+lightning+rendering, ... BUT
Can't work out how to set the cameraToModel matrix, so that the object is centered whatever/wherever the loaded model is. So final user may see an empty view :(
Maybe there is another way with some ViewNodeName to point the camera to the object automatically, but can't work it out either !?
--> Can you help on either method #1 or method #2 ?
Yes this is like my option #2 that I have now done many timles in the last days.
Please read my previous message: this with fixed cameraToWorld matrix is NOT solving the problem (again read previous to see why)
If you like option #2 as you just did: do you have a way to focus on object, either with node (you mention it but you do not say a solution) or to set automatically the correct matrix to any object that can possibly be located in any direction in the 3D space?
Or do you have an option #1 with corrected bug ? (and benefit from Adobe automatic camera orientation + focus)
Thanks in advance,
Thanks a lot Sowmiya !
(For others: the project file has some error when reconstructing in VS2015, but the .cs content is perfectly usable)
"Funny" how a simple view.ViewNodeName = "whatever_here_at_least_1_char";
that brings nothing to the 3D & camera definition ... makes it works (was not in your online examples at time of writing ; should be added to make your examples work)
Thanks again & hope it will help others also.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.