Undesired draw-order in ofusion viewport

Ciron

13-03-2007 05:52:19

Hi all, I am new to the ogre community. I have encountered a problem with the draw order of my objects within a scene using 3dsMax 8.0 (SP2) & ofusion viewport.


I have successfully exported many other .mesh files in the past.

The only different creation method used was creating objects within separate 3dsmax layers and then merging all objects into one 3dsmax layer.

Maybe something to do with assigned materials?


I am hoping someone had encountered the problem in the past and knows of a solution. Any help would be highly appreciated.


Here is what I see within the ofusion viewport....

Ciron

13-03-2007 06:06:29

I Have done the following in attempt to solve the problem....

Assigning new materials to the mesh
Re-importing the mesh
Collapsing the stack
Clearing & updating ofusion viewport
attaching all objects in the scene
Detaching elements within the object
Re-naming materials
Removing materials
Placing all objects into a single 3dsmax layer

Lioric

13-03-2007 16:06:42

The issue is because an incorrect z-buffer settings in the material, or because the pivot point of the object is not at the center of it (and this results int the sorting process to incorrectly draw the objects in the screen)

If you have the same result after you assign the same simple (non-transparent) material to all objects in your scene, then is the pivot point issue, positionate it at the objects center

Ciron

13-03-2007 20:53:08

^^ ok I solved the problem. it wasn't a pivot point issue, but I found clearing all materials in the scene and then re-creating the materials set it right.

This is strange because I would have thought assigning a new material to all objects within the scene would have replaced any previous material properties such as z-buffer.

Perhaps the original materials that were assigned established what the z-buffer settings were?

A bit beond arty-farty me, but at least it is fixed now. Thanks for your help anyway.