How can i export a scene that have not any light?

ahmadi

24-03-2006 20:06:51

in ogre i have AmbientLight , i want export a scene without any light, its possible and i have not any error after it, but in ogre viewport i have only a black mesh, :shock:

Lioric

25-03-2006 15:52:35

Has your mesh any materials?

The best way to use a mesh without lights, is to upgrade its material(s) to Ogre materials and add some "Emissive" color, the mesh will be displayed as if it has an exclusive light source, and it will not need any external lights, if you set the "Emissive" to white, it will be displayed with full bright

Or you can make sure the vertex colors are white, and disable the lighting on the material, with this method you can control on a per vertex, the light on the object

ahmadi

25-03-2006 20:03:26

Has your mesh any materials?
ya, my mesh have material, but 3DSMax standard material.


The best way to use a mesh without lights, is to upgrade its material(s) to Ogre materials and add some "Emissive" color, the mesh will be displayed as if it has an exclusive light source, and it will not need any external lights, if you set the "Emissive" to white, it will be displayed with full bright

its not possible, because my mesh is a city and with more that 500 material. i can not convert each material, because it take very time!! :cry:


Or you can make sure the vertex colors are white, and disable the lighting on the material, with this method you can control on a per vertex, the light on the object

How can i be sure? in 3dsmax i have not any vertex color or maybe be default color.

Lioric

25-03-2006 20:16:28

You can auto upgrade all your scene materials

If you have not downloaded this hotfix, do so, and apply it

hotfix #53oM

there should be a new tool called "Update Selected Materials" in the "Lioric Ogre Tools" category (on customize dialog), you can add it to your toolbar

It will present you with a new dialog where you can update the materials of the current selected objects

After updating the materials, in the material editor, you should "get the material from object" to put the new material from a object in the material editor slot

ahmadi

25-03-2006 20:36:41

You can auto upgrade all your scene materials

If you have not downloaded this hotfix, do so, and apply it

hotfix #53oM

there should be a new tool called "Update Selected Materials" in the "Lioric Ogre Tools" category (on customize dialog), you can add it to your toolbar

It will present you with a new dialog where you can update the materials of the current selected objects

After updating the materials, in the material editor, you should "get the material from object" to put the new material from a object in the material editor slot

After updating with hotfix,
in "Lioric Ogre Tools" category (on customize dialog) , i have only :
. Update ogre viowport
. Update selection
. Update Multi/Sub object Material
. Clear Ogre Viewport
. Viewport Setting
. Object Setting
. Scene Setting

i can not find "Update Selected Materials" , :cry: also all command from up, dont change material.

also maybe you mean that i myself change all material!!!! that is hard for me.

Lioric

26-03-2006 05:03:06

I forgot to tell you that you first need to apply the #49oM hotfix and then the #53oM

you need to download this hotfix

hotfix #43oM

Install to a different folder, i.e c:\hotfix_43oM\ and copy the installed files to your max root folder (copy with all folder paths), and then apply the #53oM hotfix, then the "Update Mtls" tool should be there

Vectrex

26-03-2006 10:14:54

or.. an ambient light setting in the global preferences would be nice :) (Defaulted to not pitch black so no more asking why they can't see their model ;) )

ahmadi

26-03-2006 14:51:53

or.. an ambient light setting in the global preferences would be nice :) (Defaulted to not pitch black so no more asking why they can't see their model ;) )
i have white ambient light in my ogre scene but it dont act on my black mesh.
mSceneMgr->setAmbientLight( ColourValue( 1, 1, 1 ) );

ahmadi

26-03-2006 14:58:12

I forgot to tell you that you first need to apply the #49oM hotfix and then the #53oM

you need to download this hotfix

hotfix #43oM

Install to a different folder, i.e c:\hotfix_43oM\ and copy the installed files to your max root folder (copy with all folder paths), and then apply the #53oM hotfix, then the "Update Mtls" tool should be there

ok, it work correctly.
now i have my mesh with ogre material. then i must set ambient color of each material from Black to White. its hard, how can i change all ambient color to standard( White ) . quickly, because such as i said before i have very material, and i will lost very of my time if i want change all ambient of materials.

Lioric

26-03-2006 19:54:55

Vectrex: there is a global ambient setting, its in the "Scene" settings panel, in your toolbar or via oFusion menu

ahmadi: For a limited time, i will make this client's support document available, there you will see detailed intructions on how to automate the process of making all your selected materials full bright, here we are using the "Emissive" color, but you can change the value to "Diffuse" if you need it

Support Tutorial 1299_00

Vectrex

27-03-2006 15:47:58

man that looks nice. Thanks for putting that up (even though it wasn't for me ;) )