|
apalabrados, Newbie
Posted: 16 October 2013 10:13 PM Total Posts: 13
Hi,
I have a Mesh which I populate with a set of triangles. Some 3D Objects have a great amount of triangles and when placed on a scene, rendering when object is moved is quite slow.
Is there any tip or advice I could base on, or even any transformation to reduce the weight of the mesh?
Thanks.
|
GoroMatsumoto, Sr. Member
Posted: 17 October 2013 11:53 AM Total Posts: 166
[ # 1 ]
|
andreahmed, Member
Posted: 17 October 2013 05:08 PM Total Posts: 62
[ # 2 ]
You can search for space partitioning algorithms. If its an outdoor engine, you can use OCTree, if the height doesn’t change that much, you can use a Quadtree, if its indoor engine, better to look for PVS, or BSPs.
|
apalabrados, Newbie
Posted: 18 October 2013 04:46 PM Total Posts: 13
[ # 3 ]
@GoroMatsumoto, My mesh has 188640 triangles. It is an sculpture.
@andreahmed, I do not understand. Could please explain it a little bit more?
I’m developing a Viewer with the basics control for moving the object in the space. When I use the Orbit function, the object takes too long when rotating, moving, etc…..
|
|
apalabrados, Newbie
Posted: 19 October 2013 04:03 PM Total Posts: 13
[ # 5 ]
Yes, I can watch it smoothly.
I move the camera with the next code:
private function onEnterFrame(e:Event):void {
var cameraSpeed:Number = 0.3;
if (isMoving) {
camera.panAngle = cameraSpeed*(stage.mouseX - lastMouseX) + lastPanAngle;
camera.tiltAngle = cameraSpeed*(stage.mouseY - lastMouseY) + lastTiltAngle;
}
camera.hover();
View.render();
}
|
GoroMatsumoto, Sr. Member
Posted: 19 October 2013 05:40 PM Total Posts: 166
[ # 6 ]
Do you use latest version of Away?
As far as I know, “camera.hover()” isn’t in Away3D ver4.
It’s in ver3.6. Maybe 3.6 is CPU based.
|
apalabrados, Newbie
Posted: 21 October 2013 10:49 AM Total Posts: 13
[ # 7 ]
Hi @GoroMatsumoto,
You are right, I’m using the 3.6 release.
I will have to change to 4.1.1. Is there any ebook i could use for learning purposes?
Regards.
|
|