efkoj
04-04-2006 00:29:22
Hey,
Before i start i want to say that ofusion is a very nice tool altough i encounterd some problems:
My first problem is when exporting my scene. When i check generate entities it creates objects that our not in my scene or duplicates them.
Here is the ofusion scene file:
http://kevin.pregoweb.com/dev/factory.OSM
Also when loading the map in ogre i get this result:
http://kevin.pregoweb.com/dev/screenshot_1.png
My second problem is the one with materials. I tryed the basic shader tutorial that worked kind off.
But now i wanne make my own materials an example of one you see here:
http://kevin.pregoweb.com/dev/goodwall.png
The picture you see is a diffuse map with a smoke map in it, giving this kind of random green effect. But when i export it the material is empty.
How can i do this the right way?
ps. reset xform has been applied on all objects.
Thx in advance for you answer,
Lioric
04-04-2006 03:13:07
There will be duplicate entitiy names only if you have duplicate names in max
Are you sure you have the latest updated version? the exported objects should not have the "_entity" part in the scene file
I did not review the scene file as i dont have too much time to parse it looking for duplicated names, so it will be better if you can describe more what entities are duplicated and what they are called in max, or provide the max scene so i can take a look at it
In the screenshot of your loaded scene, do you mean about the white entities? check the ogre.log file in your application directory to see why the materials cant be loaded, it will tell you if the textures were not in the path or what the issue is
Smoke material is not supported (nor any procedural material) because the performance wont be good on a interactive engine like ogre (for this you can use shaders), you should use only the supported materials, see the features page on the web site or the user's guide
And try to use the Ogre material for total control over the display and effects
One thing to take into consideration. Resetxform doesn't work on objects in groups. If you select the group and go to tools, you will see that the button is greyed out. However if you select a colection of objects that include a group, max doesn't inform you that the objects in the group werent Xformed.
Reason I mention this is that I had some bilboard objects from another game that doesn't require resetting of xforms unless you use scale or mirror. Anyway, those objects in the group were causing other unrelated meshes in the scene to rotate and create multiple offset duplicate meshes. As many as 6 per object.
opening the group and resetting the transforms. or hiding the group stopped the ground and other objects duplicating.
Thats the only time I noticed similar results to what you are describing.
Thought I'd show you what I experienced. Above in the top max viewport you can see the ground and group of non reset billboard sprites. The group is selected so you can see it in white.
See the Ofusion viewport, it has taken one of the hidden meshes and duplicated it multiple times on the screen. When I reset the meshes in the selected group, it all goes back to normal.
Might not be your specific problem, but may help others with similar problems to what I had.
efkoj
04-04-2006 12:14:07
Hey,
Thx for your quick response all.
Ok i already solved one problem which was that i still had the old ogre exporter installed this was conflicting.
But this still didnt solve all my problems.
Now when i load the scene i get this result:
http://kevin.pregoweb.com/dev/missingwalls.png
notice the walls are gone in the ogre viewport.
Now i whas thinking that becouse i still had the old version installed of the ogre exporter this was confliciting when exporting but its not. It still create's entity's that are not on my scene and duplicate them.
You can see this better when you scroll down to the log file i have :
http://kevin.pregoweb.com/dev/ogre.log
Please note that every object in my scene has a name. so entity's that are called box and cylinder should not be present.
Finnaly i have uploaded my 3dsmax so you can have a look at it.
http://kevin.pregoweb.com/dev/good_wall05.max
I really hope you can help me becouse this has been keeping me going for 3 days now and iam affraid we will miss our deadline becouse of the map :'(
BlasterN
04-04-2006 13:19:53
disapear the walls...
"maybe a solution"
Reset Xform
use "normal modifier" (twice if needed)
Reset Xform
And now collapse all.
I use this and allways appear the object. I found this problem when use a mirror & instance and the apply Reset Xform to all objects (even the instances), some flip the normals and it's not showed in the ogre viewport.
efkoj
04-04-2006 14:18:03
right the walls are fixed now.
But the exporting problems still remain.