Problem with multi/sub object and...

Ameno

23-04-2008 21:38:27

I got some problem when I tried to export my .mesh and .material and I used CeGuiMeshViewer after that for see the result, my problem is I can't see my texture or sometimes I got only one in my Mesh Viewer. I need to export a multi/sub object. It's my principal problem, I got also somes problem with my specular and bump map, but I need to resolve my texture problem first.

Here my stuff (example only)

example.mesh
example.material

example_texture.jpg
example_texture2.jpg
example_texture_specular.jpg
example_texture2_specular.jpg
example_texture_bump.jpg
example_texture_bump2.jpg

I try diverse combinaison for try to export my .mesh, .material

Like directly only normal texture, multi/sub object, 1 ofusion material with a multi/sub object in max viewport/render material (evaluate), or 2 ofusion material for my 2 differents textures etc... some screen here...some example of my try with... but nothing work

http://img.photobucket.com/albums/v348/ ... mple01.jpg
http://img.photobucket.com/albums/v348/ ... mple02.jpg

But in my ofusion viewport is ok, all textures is nice! Its after that and I got this in my .material (its a example of one of my try)


material Material_#22/fig_sac02
{
technique
{
pass
{
ambient 0 0 0 1
specular 0.99 0.345529 0.174706 1 25

texture_unit
{
texture_alias Map #3
texture sacrificial_Text2.JPG
}
}

}

}

material Material_#22/fig_sac01
{
technique
{
pass
{
ambient 0 0 0 1
specular 0 0 0 1 35

texture_unit
{
texture_alias Map #0
texture sacrificial_ Text.JPG
}
}

}

}

And my programmer said to me, he can only load one material for 1 mesh ?

It's simple what I need to do is to export my object (one piece) .mesh with this 2 textures, and also the bump and specular map doesn't work...

Here my texture standard max settings. I need to export this...



p.s. sorry for my english, and we are in the processus of learning ofusion and ogre3d program export... and for confidentiality reason I can't show the result in the Mesh Viewer, thx for comprehension :D I need Help :P

thx for help :D

I am a 3d Modeler

Ameno

23-04-2008 22:29:01

I found finally a solution for my texture (only question of name), :oops: but I got no solution for my bump map and my specular map, any way to export this ?

Lioric

24-04-2008 01:21:26

If your object is correct in the viewport, then it will be correct in your application, simple as that

There might be issues with texture names (as what was your case) when using spaces in the file name or other non standard extensions (and when using in case sensitive platforms), or issues when loading a material on a video hardware that doesnt provides all of the support needed (in this case the material might look different), but as a rule, if in your application the materials are not displayed correctly, review the ogre.log file created by your application to identify why the material was not correctly loaded

The meshes automatically load their materials (including multiple materials) when the materials are in a location within the resouce paths, there is no need to manually assign a material in your application (but only when you clearly need this)

A single mesh can automatically load several materials as needed for its sub meshes

The bump map and specular maps are not exported because they are not supported in fixed function (not without a manual process in your application), and not all hardware will support it, that is why currently this is mostly done with shaders, search this forums for several threads about bump/normal mapping with specular maps (in special the "Monster" shader is good) and they can be used directly in oFusion, or you might want to search for shaderFX for visually creating shaders, this is directly supported in oFusion and you can create and tune your shader directly in the preview viewport, a specular shader in shaderFX probably will need a few nodes (5) and can be created in less time than what it is needed in windows for booting up in a fast machine

Ameno

24-04-2008 15:17:58

Thx for your fast answer, I will do some research about shaderFX. :wink:


p.s. for monster shader, any link work for download, all the link I found doesn't work ?

Monster 2.0 topic...

http://www.ogre3d.org/phpBB2/viewtopic. ... c&start=50

r33ko

28-04-2008 19:08:38

I use oFusion only for exporting .material files. I find the interface very user friendly and the RT viewport is fantastic. I usually view my results by loading my scene directly to our ogre app.

There is one thing I was curious about though. Is it possible to tell the oFusion exporter to "NOT" export sub-object parent material names, and only the actual (individual) material names contained in the multi/sub?

Lioric

02-05-2008 17:52:10

Yes, this option was recently added, it should be in the upcoming updates

r33ko

05-05-2008 19:45:02

Fantastic! This will save us a tremendous amount of time. Thanks