westpointer
20-09-2008 08:10:58
I have a problem with vertexpaint.
I create a plane and follow the tips of the VertexTextureBlend video.

Everything seems the same as the video until I use the vertexpaint.

After I paint the plane red, the plane in ofusion viewport dispears when I click "Update Sel", Why?
Lioric
21-09-2008 04:05:54
Are the image links correct? it returns an error page for those links
westpointer
21-09-2008 04:54:29
I have changed the links. It should be OK.
Lioric
22-09-2008 16:43:51
The shader was not tested with Max 7 but it should work, could you post the ogre.log file (in your max root folder) after the object disappears
Test by painting all vertices white after that
westpointer
23-09-2008 03:46:47
Here is the log:10:09:59: 10:39:43: Creating resource group General
10:39:43: Creating resource group Internal
10:39:43: Creating resource group Autodetect
10:39:43: Registering ResourceManager for type Material
10:39:43: Registering ResourceManager for type Mesh
10:39:43: Registering ResourceManager for type Skeleton
10:39:43: MovableObjectFactory for type 'ParticleSystem' registered.
10:39:43: Loading library OgrePlatform.dll
10:39:43: OverlayElementFactory for type Panel registered.
10:39:43: OverlayElementFactory for type BorderPanel registered.
10:39:43: OverlayElementFactory for type TextArea registered.
10:39:43: Registering ResourceManager for type Font
10:39:43: ArchiveFactory for archive type FileSystem registered.
10:39:43: ArchiveFactory for archive type Zip registered.
10:39:43: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
10:39:43: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
10:39:43: Registering ResourceManager for type HighLevelGpuProgram
10:39:43: Registering ResourceManager for type Compositor
10:39:43: MovableObjectFactory for type 'Entity' registered.
10:39:43: MovableObjectFactory for type 'Light' registered.
10:39:43: MovableObjectFactory for type 'BillboardSet' registered.
10:39:43: MovableObjectFactory for type 'ManualObject' registered.
10:39:43: MovableObjectFactory for type 'BillboardChain' registered.
10:39:43: MovableObjectFactory for type 'RibbonTrail' registered.
10:39:43: Loading library .\oFusion\RenderSystem_GL
10:39:43: OpenGL Rendering Subsystem created.
10:39:44: Loading library .\oFusion\RenderSystem_Direct3D9
10:39:44: D3D9 : Direct3D9 Rendering Subsystem created.
10:39:44: D3D9: Driver Detection Starts
10:39:44: D3D9: Driver Detection Ends
10:39:44: Loading library .\oFusion\Plugin_CgProgramManager
10:39:44: Loading library .\oFusion\Plugin_OctreeSceneManager.dll
10:39:44: *-*-* OGRE Initialising
10:39:44: *-*-* Version 1.2.1 (Dagon)
10:39:44: Creating resource group Bootstrap
10:39:44: Added resource location '.\oFusion\Media\OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
10:39:44: Added resource location './oFusion/Media' of type 'FileSystem' to resource group 'General'
10:39:44: Added resource location './oFusion/Media/textures' of type 'FileSystem' to resource group 'General'
10:39:44: Added resource location './maps' of type 'FileSystem' to resource group 'General'
10:39:44: Added resource location './oFusion/Media/shaders' of type 'FileSystem' to resource group 'General'
10:39:44: *** Starting Win32GL Subsystem ***
10:39:44: ResourceBackgroundQueue - threading disabled
10:39:44: GLRenderSystem::createRenderWindow "OgreView", 100x100 windowed miscParams: externalWindowHandle=788988
10:39:44: GL_VERSION = 2.0.3
10:39:44: GL_VENDOR = NVIDIA Corporation
10:39:44: GL_RENDERER = GeForce 7600 GS/PCI/SSE2
10:39:44: GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_timer_query GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control
10:39:44: Supported WGL extensions: WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_ARB_render_texture WGL_ATI_pixel_format_float WGL_EXT_extensions_string WGL_EXT_swap_control WGL_NV_float_buffer WGL_NV_render_depth_texture WGL_NV_render_texture_rectangle
10:39:44: ***************************
*** GL Renderer Started ***
***************************
10:39:44: Registering ResourceManager for type GpuProgram
10:39:44: GLSL support detected
10:39:44: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
10:39:44: FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0
10:39:44: FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0
10:39:44: FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0
10:39:44: FBO PF_R8G8B8 depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_B8G8R8 depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D24S0 D32S0 D24S8
10:39:44: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D24S0 D32S0
10:39:44: FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0
10:39:44: [GL] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2
10:39:44: RenderSystem capabilities
10:39:44: -------------------------
10:39:44: * Hardware generation of mipmaps: yes
10:39:44: * Texture blending: yes
10:39:44: * Anisotropic texture filtering: yes
10:39:44: * Dot product texture operation: yes
10:39:44: * Cube mapping: yes
10:39:44: * Hardware stencil buffer: yes
10:39:44: - Stencil depth: 8
10:39:44: - Two sided stencil support: yes
10:39:44: - Wrap stencil values: yes
10:39:44: * Hardware vertex / index buffers: yes
10:39:44: * Vertex programs: yes
10:39:44: - Max vertex program version: vp40
10:39:44: * Fragment programs: yes
10:39:44: - Max fragment program version: fp40
10:39:44: * Texture Compression: yes
10:39:44: - DXT: yes
10:39:44: - VTC: yes
10:39:44: * Scissor Rectangle: yes
10:39:44: * Hardware Occlusion Query: yes
10:39:44: * User clip planes: yes
10:39:44: * VET_UBYTE4 vertex element type: yes
10:39:44: * Infinite far plane projection: yes
10:39:44: * Hardware render-to-texture: yes
10:39:44: * Floating point textures: yes
10:39:44: * Non-power-of-two textures: yes
10:39:44: * Volume textures: yes
10:39:44: * Multiple Render Targets: 4
10:39:44: * Point Sprites: yes
10:39:44: * Extended point parameters: yes
10:39:44: * Max Point Size: 63.375
10:39:44: Registering ResourceManager for type Texture
10:39:44: Particle Renderer Type 'billboard' registered
10:39:44: Creating resource group _OVP_WorldGeometry
10:39:44: Creating resource group exporterMeshGroup
10:39:44: Creating resource group exporterSkelGroup
10:39:44: Creating resource group exporterMaterialGroup
10:39:44: Parsing scripts for resource group Autodetect
10:39:44: Finished parsing scripts for resource group Autodetect
10:39:44: Parsing scripts for resource group Bootstrap
10:39:44: Parsing script OgreCore.material
10:39:44: Parsing script OgreProfiler.material
10:39:44: Parsing script Ogre.fontdef
10:39:44: Finished parsing scripts for resource group Bootstrap
10:39:44: Parsing scripts for resource group General
10:39:44: Parsing script Corona_ps.program
10:39:44: Parsing script Corona_vs.program
10:39:44: Parsing script Examples.program
10:39:44: Parsing script Ocean_Sky_ps.program
10:39:44: Parsing script Ocean_Sky_vs.program
10:39:44: Parsing script Ocean_Water_ps.program
10:39:44: Parsing script Ocean_Water_vs.program
10:39:44: Parsing script SpecularBump.program
10:39:44: Parsing script vertexTextureBlend3.program
10:39:44: Parsing script Example.material
10:39:44: Finished parsing scripts for resource group General
10:39:44: Parsing scripts for resource group Internal
10:39:44: Finished parsing scripts for resource group Internal
10:39:44: Parsing scripts for resource group _OVP_WorldGeometry
10:39:44: Finished parsing scripts for resource group _OVP_WorldGeometry
10:39:44: Parsing scripts for resource group exporterMaterialGroup
10:39:44: Finished parsing scripts for resource group exporterMaterialGroup
10:39:44: Parsing scripts for resource group exporterMeshGroup
10:39:44: Finished parsing scripts for resource group exporterMeshGroup
10:39:44: Parsing scripts for resource group exporterSkelGroup
10:39:44: Finished parsing scripts for resource group exporterSkelGroup
10:39:44: Creating viewport on target 'OgreView', rendering from camera 'Camera_1', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
10:39:44: Viewport for camera 'Camera_1', actual dimensions L: 0 T: 0 W: 602 H: 339
10:39:44: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
10:39:44: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
10:39:44: Font TrebuchetMSBoldusing texture size 512x512
10:39:44: Info: Freetype returned null for character 160 in font TrebuchetMSBold
10:39:44: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
10:39:44: Texture: D:\program Files\OgreSDK\media\Test_Terrain_Ocean\Destina.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
10:39:44: Texture: D:\program Files\OgreSDK\media\materials\textures\Fieldstone.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:39:44: Texture: D:\program Files\OgreSDK\media\Test_Terrain_Ocean\Grass.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
10:39:44: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getSceneNode
Description: SceneNode '__OVIEWPORT_Plane01_node' not found..
File: ..\src\OgreSceneManager.cpp
Line: 739
Stack unwinding: <<beginning of stack>>
10:39:44: WARNING: Mesh instance '__OVIEWPORT_Plane01_mesh' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
10:39:44: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getAnimation
Description: Cannot find animation with name _OVP_ANIM___OVIEWPORT_Plane01_node.
File: ..\src\OgreSceneManager.cpp
Line: 2713
Stack unwinding: <<beginning of stack>>
10:39:44: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,254x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,254x128x1.
10:40:56: *-*-* OGRE Shutdown
10:40:56: Unregistering ResourceManager for type Compositor
10:40:56: Unregistering ResourceManager for type Font
10:40:56: Unregistering ResourceManager for type Skeleton
10:40:56: Unregistering ResourceManager for type Mesh
10:40:56: Unregistering ResourceManager for type HighLevelGpuProgram
10:40:56: Unloading library .\oFusion\Plugin_OctreeSceneManager.dll
10:40:56: Unloading library .\oFusion\Plugin_CgProgramManager
10:40:56: D3D9 : Shutting down cleanly.
10:40:56: D3D9 : Direct3D9 Rendering Subsystem destroyed.
10:40:56: Unloading library .\oFusion\RenderSystem_Direct3D9
10:40:56: Render Target 'OgreView' Average FPS: 7.23232 Best FPS: 26.9192 Worst FPS: 0.0301659
10:40:56: Unregistering ResourceManager for type GpuProgram
10:40:56: *** Stopping Win32GL Subsystem ***
10:40:56: Unregistering ResourceManager for type Texture
10:40:56: Unloading library .\oFusion\RenderSystem_GL
10:40:56: Unregistering ResourceManager for type Material
10:40:56: Unloading library OgrePlatform.dll
westpointer
23-09-2008 04:16:42
I find that if I convert the plane to "Editable Mesh" just like the VertexTextureBlend video, this problem remains, and the ogre.log file is almost the same as above.
But after I convert the plane to "Editable Poly", this example works well.
What is confusing is that there is still an exception in ogre.log:
11:08:04: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getSceneNode
Description: SceneNode '__OVIEWPORT_Plane01_node' not found..
File: ..\src\OgreSceneManager.cpp
Line: 739
Stack unwinding: <<beginning of stack>>
11:08:04: WARNING: Mesh instance '__OVIEWPORT_Plane01_mesh' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
11:08:04: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getAnimation
Description: Cannot find animation with name _OVP_ANIM___OVIEWPORT_Plane01_node.
File: ..\src\OgreSceneManager.cpp
Line: 2713
Stack unwinding: <<beginning of stack>>
11:08:04: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,254x128x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,254x128x1.
11:08:25: WARNING: Mesh instance '__OVIEWPORT_Plane01_mesh' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
11:08:25: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getAnimation
Description: Cannot find animation with name _OVP_ANIM___OVIEWPORT_Plane01_node.
File: ..\src\OgreSceneManager.cpp
Line: 2713
Stack unwinding: <<beginning of stack>>
11:08:36: WARNING: Mesh instance '__OVIEWPORT_Plane01_mesh' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
11:08:36: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getAnimation
Description: Cannot find animation with name _OVP_ANIM___OVIEWPORT_Plane01_node.
File: ..\src\OgreSceneManager.cpp
Line: 2713
Stack unwinding: <<beginning of stack>>
11:08:48: WARNING: Mesh instance '__OVIEWPORT_Plane01_mesh' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
11:08:48: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManager::getAnimation
Description: Cannot find animation with name _OVP_ANIM___OVIEWPORT_Plane01_node.
File: ..\src\OgreSceneManager.cpp
Line: 2713
Stack unwinding: <<beginning of stack>>
11:08:50: *-*-* OGRE Shutdown
11:08:50: Unregistering ResourceManager for type Compositor
11:08:50: Unregistering ResourceManager for type Font
11:08:50: Unregistering ResourceManager for type Skeleton
11:08:50: Unregistering ResourceManager for type Mesh
11:08:50: Unregistering ResourceManager for type HighLevelGpuProgram
11:08:50: Unloading library .\oFusion\Plugin_OctreeSceneManager.dll
11:08:50: Unloading library .\oFusion\Plugin_CgProgramManager
11:08:50: D3D9 : Shutting down cleanly.
11:08:50: D3D9 : Direct3D9 Rendering Subsystem destroyed.
11:08:50: Unloading library .\oFusion\RenderSystem_Direct3D9
11:08:50: Render Target 'OgreView' Average FPS: 0.208262 Best FPS: 1.8044 Worst FPS: 0.0639059
11:08:50: Unregistering ResourceManager for type GpuProgram
11:08:50: *** Stopping Win32GL Subsystem ***
11:08:50: Unregistering ResourceManager for type Texture
11:08:50: Unloading library .\oFusion\RenderSystem_GL
11:08:50: Unregistering ResourceManager for type Material
11:08:50: Unloading library OgrePlatform.dll