05-06-2016, 12:49 PM
Hello,
I'm a newbie when it comes XAML and I have some very basic questions about using objImporter.ReadModel3D() which I would be very thankful if someone could help me answer.
From what I understand, the objImporter.ReadModel3D() returns either a Model3DGroup or a GeometryModel3D object depending on the imported object. (I have tried importing both the teapot.obj (GeometryModel3D) and the ship_boat.obj (Model3DGroup) from the Samples and it works fine, but I'm a bit stuck about how to move forward.
var wpf3DModel = objImporter.ReadModel3D(resourceStream, GetResourceStream)
What I would like to do is to import a model I have created and display it six times (but on different locations and with different rotations). I would also like to be able to hide and show some of the "models" when needed.
So here are some very basic questions...
1) How can I change the size of the imported 3D model?
Let's say I would like to change the width to 100 and preserve the scale aspect ratio.
2) How can I move the object? And and which part of the object is used as the reference when moving the object? Is it the center of the object?
3) How can i rotate the object?
4) Is it possible to hide and show an object, or do I need to delete it and then create it again?
Many thanks,
Kalle
I'm a newbie when it comes XAML and I have some very basic questions about using objImporter.ReadModel3D() which I would be very thankful if someone could help me answer.
From what I understand, the objImporter.ReadModel3D() returns either a Model3DGroup or a GeometryModel3D object depending on the imported object. (I have tried importing both the teapot.obj (GeometryModel3D) and the ship_boat.obj (Model3DGroup) from the Samples and it works fine, but I'm a bit stuck about how to move forward.
var wpf3DModel = objImporter.ReadModel3D(resourceStream, GetResourceStream)
What I would like to do is to import a model I have created and display it six times (but on different locations and with different rotations). I would also like to be able to hide and show some of the "models" when needed.
So here are some very basic questions...
1) How can I change the size of the imported 3D model?
Let's say I would like to change the width to 100 and preserve the scale aspect ratio.
2) How can I move the object? And and which part of the object is used as the reference when moving the object? Is it the center of the object?
3) How can i rotate the object?
4) Is it possible to hide and show an object, or do I need to delete it and then create it again?
Many thanks,
Kalle

