Screen black after exporting

hafizawang

28-09-2006 18:25:00

Hello Guys,

I'm new to ogre and oFusion. I got a very basic framework running rendering mesh file. Just switch from the Ogre3DSExporter to oFusion to see the different features and capabilties. My tool is 3d studio Max. I'll try to explain my issue in sequence.

1. Created a mesh viewer. Successfully view textured meshes exported with Ogre3dsExporter. When I mean textured, I mean having a texture set under diffuse in maps rollout No ogre material or oFusion material set up. Plain vanilla max diffuse texture assignment. No other settings are modified. The fle consist of only a texture box primitve with no lights created in the scene. The mesh is viewable in my viewer.

2. Took the same file and export it using oFusion. This time the mesh cannot be seen. The reason I say it cannot be seen is believe it is being 'drawn' but visually I can't see it on the screen. Because the backgound is black and I believe the object is also being rendered black. My suspicion is probably some default material settings when exporting using oFusion

3. After fiddling around. I figured the only way to see the mesh while still exporting using oFusion is to set Self-Illumination value under the 'Blinn Basic Parameters' rollout to 100. By setting this, I can see the mesh in my mesh viewer. No other settings is modified.

FYI my mesh viewer is based on the ExampleFramework with loading using the codes from OSM loader demo. My question is why when exporting using oFusion, my mesh cannot be seen. Why is that only when I set the self-illum to 100, then I can see while if I use the Ogre3DSExporter I don't have to do this change. Is this due to some sort of 'default' material setting in oFusion. Can someone explain this difference.

Thank You for taking the time to read my post.

Lioric

28-09-2006 18:42:27

Do you mean that in the oFusion preview viewport you see the object but in your viewer not?

Add a light to your scene

When you add a texture to the diffuse channel in max, the diffuse colors are set to black, and that is the way it is exported

For better control over the materials, upgrade them to oFusion Materials

hafizawang

29-09-2006 05:39:02

Do you mean that in the oFusion preview viewport you see the object but in your viewer not?

Add a light to your scene

When you add a texture to the diffuse channel in max, the diffuse colors are set to black, and that is the way it is exported

For better control over the materials, upgrade them to oFusion Materials


No in the oFusion viewport it is also black only when light is added then you can see the mesh. the only way that I know (with my limited current knowledge) to see the mesh in the preview viewport without any light was to set the self-illum of the blinn to some high value (in this case 100).

Lioric

29-09-2006 17:19:47

This is how its supposed to be, you need a light to view your scene, or use the ambient light or material colors