agoratim
09-09-2006 17:00:30
Hey folks,
I've been more or less unable to successfully use any advanced material features (bump mapping, etc) with any materials that I have exported from oFusion. I've basically been running through the basic torus tutorial trying to get things working but every time I try to load an exported mesh in-engine I get these weird artifacts behind the object. Screenshots are below as well as the material file.
I'm using the latest version of oFusion with Max 8 and we're using the Dagon source code. Is there anything I could be doing wrong when I load my entities? Any parameters I need to setup for my scene before loading? Is it possible I'm using the wrong shaders (at the moment I'm using the ones I copied from the oFusion install)?
Thanks for the help.
The following is the object as viewed in oFusion. Nice normals and all that...
This is the object when loaded in-engine. Notice the lack of normals and the weird artifact behind the object.
I've been more or less unable to successfully use any advanced material features (bump mapping, etc) with any materials that I have exported from oFusion. I've basically been running through the basic torus tutorial trying to get things working but every time I try to load an exported mesh in-engine I get these weird artifacts behind the object. Screenshots are below as well as the material file.
I'm using the latest version of oFusion with Max 8 and we're using the Dagon source code. Is there anything I could be doing wrong when I load my entities? Any parameters I need to setup for my scene before loading? Is it possible I'm using the wrong shaders (at the moment I'm using the ones I copied from the oFusion install)?
Thanks for the help.
The following is the object as viewed in oFusion. Nice normals and all that...
This is the object when loaded in-engine. Notice the lack of normals and the weird artifact behind the object.
material Torus01
{
technique
{
pass
{
iteration once_per_light
ambient 0.7 0.7 0.7 1
diffuse 0.7 0.7 0.7 1
specular 0.9 0.9 0.9 1 20
vertex_program_ref Examples/BumpMapVPSpecular
{
param_named_auto lightPosition light_position_object_space 0
param_named_auto eyePosition camera_position_object_space
param_named_auto worldViewProj light_position_object_space 0
}
fragment_program_ref Examples/BumpMapFPSpecular
{
param_named_auto lightDiffuse light_diffuse_colour 0
param_named_auto lightSpecular light_specular_colour 0
}
texture_unit
{
texture_alias 0
texture timtest_normal.tga
}
texture_unit
{
texture_alias 1
cubic_texture nm.dds combinedUVW
tex_coord_set 1
tex_address_mode clamp
}
texture_unit
{
texture_alias 2
cubic_texture nm.dds combinedUVW
tex_coord_set 2
tex_address_mode clamp
}
}
pass
{
lighting off
scene_blend modulate
vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
{
param_named_auto worldViewProj worldviewproj_matrix
param_named ambient float4 255 255 255 0
}
texture_unit
{
texture_alias 0
texture checkerboard_numbered_blue.gif
}
}
}
}