[Solved] Error when trying to render mesh with texture

Problems building or running the engine, queries about how to use features etc.
Post Reply
Xaaq
Gnoblar
Posts: 2
Joined: Sun Sep 23, 2018 6:07 pm

[Solved] Error when trying to render mesh with texture

Post by Xaaq »

Ogre Version: 2.1
Operating System: Ubuntu 18
Render System: GL3PlusRenderSystem

I wrote basic program which just renders and rotates single mesh. This mesh is simple cube with single material, all exported from blender using DERGO. When my program is using this mesh, everything is ok - I can see this mesh rotating and having material i assigned to it in blender.

When I unwrap this mesh in blender and set diffuse texture to some image, I can see my cube being textured in DERGO Server window and everything seems ok. But when I try to load this mesh to my code, this error appears:

Code: Select all

GLSL compile log: 536870912PixelShader_ps
0(346) : error C1008: undefined variable "UV_DIFFUSE"
terminate called after throwing an instance of 'Ogre::RenderingAPIException'
  what():  OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 536870912PixelShader_ps failed to compile. See compile log above for details. in GLSLShader::compile at /home/xaaq/projects/ogre/RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp (line 308)
My whole code is as follows:

Code: Select all

#include <iostream>
#include "OgreItem.h"

#include "OgreRoot.h"
#include "OgreException.h"
#include "OgreConfigFile.h"

#include "OgreRenderWindow.h"
#include "OgreCamera.h"
#include "OgreItem.h"

#include "OgreHlmsUnlit.h"
#include "OgreHlmsPbs.h"
#include "OgreHlmsManager.h"
#include "OgreArchiveManager.h"
#include <Ogre.h>
#include <OgreGL3PlusRenderSystem.h>
#include <OgreMeshManager2.h>
#include <OgreHlmsPbs.h>
#include <OgreHlmsUnlit.h>
#include "OGRE/Compositor/OgreCompositorManager2.h"

using std::cout;
using std::endl;

int main() {
    // root and render system
    Ogre::Root *root = new Ogre::Root{};
    Ogre::GL3PlusRenderSystem render_system{};
    root->setRenderSystem(&render_system);
    root->initialise(false);

    // render window
    Ogre::RenderWindow *render_window = root->createRenderWindow("aa", 1280, 720, false);
    Ogre::Viewport *viewport = render_window->addViewport();

    // pbs init
    {
        Ogre::Archive *archiveLibrary = Ogre::ArchiveManager::getSingletonPtr()->
                load("/home/xaaq/projects/test-ogre-project/bin/Data/Hlms/Common/GLSL", "FileSystem", true);
        Ogre::ArchiveVec library;
        library.push_back(archiveLibrary);

        Ogre::Archive *archivePbs = Ogre::ArchiveManager::getSingletonPtr()->
                load("/home/xaaq/projects/test-ogre-project/bin/Data/Hlms/Pbs/GLSL", "FileSystem", true);
        auto *hlms_pbs = OGRE_NEW Ogre::HlmsPbs(archivePbs, &library);
        root->getHlmsManager()->registerHlms(hlms_pbs);
    }

    // unlit init
    {
        Ogre::Archive *archiveLibrary = Ogre::ArchiveManager::getSingletonPtr()->
                load("/home/xaaq/projects/test-ogre-project/bin/Data/Hlms/Common/GLSL", "FileSystem", true);
        Ogre::ArchiveVec library;
        library.push_back(archiveLibrary);

        Ogre::Archive *archiveUnlit = Ogre::ArchiveManager::getSingletonPtr()->
                load("/home/xaaq/projects/test-ogre-project/bin/Data/Hlms/Unlit/GLSL", "FileSystem", true);
        auto *hlms_unlit = OGRE_NEW Ogre::HlmsUnlit(archiveUnlit, &library);
        root->getHlmsManager()->registerHlms(hlms_unlit);
    }

    // scene manager init
    Ogre::DefaultSceneManagerFactory scene_manager_factory{};
    root->addSceneManagerFactory(&scene_manager_factory);
    Ogre::SceneManager *scene_manager = root->createSceneManager("DefaultSceneManager", 1,
                                                                 Ogre::INSTANCING_CULLING_SINGLETHREAD);
    scene_manager->setAmbientLight(
            Ogre::ColourValue(1, 1, 1),
            Ogre::ColourValue(0, 0, 0),
            Ogre::Vector3::UNIT_X);


    // camera setup
    Ogre::Camera *camera = scene_manager->createCamera("Camera 1");
    camera->setPosition(Ogre::Vector3{10, 0, 0});
    camera->lookAt(Ogre::Vector3(0, 0, 0));
    camera->setNearClipDistance(0.2f);
    camera->setFarClipDistance(1000.0f);
    camera->setAutoAspectRatio(true);

    Ogre::Vector3 direction_vector{-1, 0, 0};
    camera->setDirection(direction_vector);

    // compositor manager init
    const Ogre::String workspaceName("my_workspace");
    Ogre::CompositorManager2 *compositorManager = root->getCompositorManager2();
    compositorManager->createBasicWorkspaceDef(workspaceName, Ogre::ColourValue(0.5f, 0.5f, 0.5f));
    compositorManager->addWorkspace(scene_manager, render_window, camera, workspaceName, true);

    // load mesh
    char mesh_name[] = "Cube.mesh";

    Ogre::ResourceGroupManager &resource_manager = Ogre::ResourceGroupManager::getSingleton();
    resource_manager.addResourceLocation("/home/xaaq/Desktop/untitled.scenefolder", "FileSystem");
    resource_manager.declareResource(mesh_name, "Mesh");
    resource_manager.initialiseAllResourceGroups(false);
    resource_manager.loadResourceGroup(Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, false);

    Ogre::MeshManager &mesh_manager = Ogre::MeshManager::getSingleton();
    auto pointer = mesh_manager.load(mesh_name, Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);

    // create item out of mesh
    Ogre::Item *ogre_item = scene_manager->createItem(pointer, Ogre::SCENE_DYNAMIC);
    Ogre::SceneNode *ogre_node = scene_manager->getRootSceneNode()->createChildSceneNode();
    ogre_node->attachObject(ogre_item);
    ogre_node->setPosition(0, 0, 0);
    ogre_item->getParentNode()->rotate(Ogre::Vector3::UNIT_Y, Ogre::Radian{3.1415f / 2.f});

    // light setup
    Ogre::Light *light = scene_manager->createLight();
    light->setType(Ogre::Light::LightTypes::LT_DIRECTIONAL);
    light->setDiffuseColour(1.0, 1.0, 1.0);
    light->setSpecularColour(1.0, 1.0, 1.0);
    light->setPowerScale(10);
    scene_manager->getRootSceneNode()->createChildSceneNode()->attachObject(light);
    light->setDirection(Ogre::Vector3{-1, 0, 0});
    light->setVisible(true);

    // main loop
    while (true) {
        root->renderOneFrame();
        ogre_item->getParentNode()->rotate(Ogre::Vector3::UNIT_X, Ogre::Radian{0.003});
        sleep(0.1);
    }
    return 0;
}
Ogre log file:

Code: Select all

19:18:14: Creating resource group General
19:18:14: Creating resource group Internal
19:18:14: Creating resource group Autodetect
19:18:14: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:18:14: Registering ResourceManager for type Material
19:18:14: Registering ResourceManager for type Mesh
19:18:14: Registering ResourceManager for type Mesh2
19:18:14: Registering ResourceManager for type OldSkeleton
19:18:14: MovableObjectFactory for type 'ParticleSystem' registered.
19:18:14: ArchiveFactory for archive type FileSystem registered.
19:18:14: ArchiveFactory for archive type Zip registered.
19:18:14: ArchiveFactory for archive type EmbeddedZip registered.
19:18:14: DDS codec registering
19:18:14: FreeImage version: 3.15.3
19:18:14: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:18:14: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic
19:18:14: ETC codec registering
19:18:14: OITD codec registering
19:18:14: Registering ResourceManager for type HighLevelGpuProgram
19:18:14: MovableObjectFactory for type 'Entity' registered.
19:18:14: MovableObjectFactory for type 'Item' registered.
19:18:14: MovableObjectFactory for type 'Light' registered.
19:18:14: MovableObjectFactory for type 'BillboardSet' registered.
19:18:14: MovableObjectFactory for type 'ManualObject2' registered.
19:18:14: MovableObjectFactory for type 'BillboardChain' registered.
19:18:14: MovableObjectFactory for type 'RibbonTrail' registered.
19:18:14: MovableObjectFactory for type 'WireAabb' registered.
19:18:14: OGRE EXCEPTION(6:FileNotFoundException): 'plugins_d.cfg' file not found! in ConfigFile::load at /home/xaaq/projects/ogre/OgreMain/src/OgreConfigFile.cpp (line 88)
19:18:14: plugins_d.cfg not found, automatic plugin loading disabled.
19:18:14: *-*-* OGRE Initialising
19:18:14: *-*-* Version 2.1.0unstable ('B')
19:18:14: OpenGL 3+ Rendering Subsystem created.
19:18:14: CPU Identifier & Features
19:18:14: -------------------------
19:18:14:  *   CPU ID: GenuineIntel: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
19:18:14:  *   Logical cores: 8
19:18:14:  *      SSE: yes
19:18:14:  *     SSE2: yes
19:18:14:  *     SSE3: yes
19:18:14:  *      MMX: yes
19:18:14:  *   MMXEXT: yes
19:18:14:  *    3DNOW: no
19:18:14:  * 3DNOWEXT: no
19:18:14:  *     CMOV: yes
19:18:14:  *      TSC: yes
19:18:14:  *      FPU: yes
19:18:14:  *      PRO: yes
19:18:14:  *       HT: no
19:18:14: -------------------------
19:18:14: ******************************
*** Starting GLX Subsystem ***
******************************
19:18:14: Created GL 4.3 context
19:18:14: GLXWindow::create used FBConfigID = 304
19:18:14: GL_VERSION = 4.3.0.0
19:18:14: GL_VENDOR = NVIDIA Corporation
19:18:14: GL_RENDERER = GeForce GTX 860M/PCIe/SSE2
19:18:14: GL_EXTENSIONS = 
19:18:14: GL_AMD_multi_draw_indirect
19:18:14: GL_AMD_seamless_cubemap_per_texture
19:18:14: GL_ARB_arrays_of_arrays
19:18:14: GL_ARB_base_instance
19:18:14: GL_ARB_bindless_texture
19:18:14: GL_ARB_blend_func_extended
19:18:14: GL_ARB_buffer_storage
19:18:14: GL_ARB_clear_buffer_object
19:18:14: GL_ARB_clear_texture
19:18:14: GL_ARB_clip_control
19:18:14: GL_ARB_color_buffer_float
19:18:14: GL_ARB_compressed_texture_pixel_storage
19:18:14: GL_ARB_conservative_depth
19:18:14: GL_ARB_compute_shader
19:18:14: GL_ARB_compute_variable_group_size
19:18:14: GL_ARB_conditional_render_inverted
19:18:14: GL_ARB_copy_buffer
19:18:14: GL_ARB_copy_image
19:18:14: GL_ARB_cull_distance
19:18:14: GL_ARB_debug_output
19:18:14: GL_ARB_depth_buffer_float
19:18:14: GL_ARB_depth_clamp
19:18:14: GL_ARB_depth_texture
19:18:14: GL_ARB_derivative_control
19:18:14: GL_ARB_direct_state_access
19:18:14: GL_ARB_draw_buffers
19:18:14: GL_ARB_draw_buffers_blend
19:18:14: GL_ARB_draw_indirect
19:18:14: GL_ARB_draw_elements_base_vertex
19:18:14: GL_ARB_draw_instanced
19:18:14: GL_ARB_enhanced_layouts
19:18:14: GL_ARB_ES2_compatibility
19:18:14: GL_ARB_ES3_compatibility
19:18:14: GL_ARB_ES3_1_compatibility
19:18:14: GL_ARB_ES3_2_compatibility
19:18:14: GL_ARB_explicit_attrib_location
19:18:14: GL_ARB_explicit_uniform_location
19:18:14: GL_ARB_fragment_coord_conventions
19:18:14: GL_ARB_fragment_layer_viewport
19:18:14: GL_ARB_fragment_program
19:18:14: GL_ARB_fragment_program_shadow
19:18:14: GL_ARB_fragment_shader
19:18:14: GL_ARB_framebuffer_no_attachments
19:18:14: GL_ARB_framebuffer_object
19:18:14: GL_ARB_framebuffer_sRGB
19:18:14: GL_ARB_geometry_shader4
19:18:14: GL_ARB_get_program_binary
19:18:14: GL_ARB_get_texture_sub_image
19:18:14: GL_ARB_gl_spirv
19:18:14: GL_ARB_gpu_shader5
19:18:14: GL_ARB_gpu_shader_fp64
19:18:14: GL_ARB_gpu_shader_int64
19:18:14: GL_ARB_half_float_pixel
19:18:14: GL_ARB_half_float_vertex
19:18:14: GL_ARB_imaging
19:18:14: GL_ARB_indirect_parameters
19:18:14: GL_ARB_instanced_arrays
19:18:14: GL_ARB_internalformat_query
19:18:14: GL_ARB_internalformat_query2
19:18:14: GL_ARB_invalidate_subdata
19:18:14: GL_ARB_map_buffer_alignment
19:18:14: GL_ARB_map_buffer_range
19:18:14: GL_ARB_multi_bind
19:18:14: GL_ARB_multi_draw_indirect
19:18:14: GL_ARB_multisample
19:18:14: GL_ARB_multitexture
19:18:14: GL_ARB_occlusion_query
19:18:14: GL_ARB_occlusion_query2
19:18:14: GL_ARB_parallel_shader_compile
19:18:14: GL_ARB_pipeline_statistics_query
19:18:14: GL_ARB_pixel_buffer_object
19:18:14: GL_ARB_point_parameters
19:18:14: GL_ARB_point_sprite
19:18:14: GL_ARB_polygon_offset_clamp
19:18:14: GL_ARB_program_interface_query
19:18:14: GL_ARB_provoking_vertex
19:18:14: GL_ARB_query_buffer_object
19:18:14: GL_ARB_robust_buffer_access_behavior
19:18:14: GL_ARB_robustness
19:18:14: GL_ARB_sample_shading
19:18:14: GL_ARB_sampler_objects
19:18:14: GL_ARB_seamless_cube_map
19:18:14: GL_ARB_seamless_cubemap_per_texture
19:18:14: GL_ARB_separate_shader_objects
19:18:14: GL_ARB_shader_atomic_counter_ops
19:18:14: GL_ARB_shader_atomic_counters
19:18:14: GL_ARB_shader_ballot
19:18:14: GL_ARB_shader_bit_encoding
19:18:14: GL_ARB_shader_clock
19:18:14: GL_ARB_shader_draw_parameters
19:18:14: GL_ARB_shader_group_vote
19:18:14: GL_ARB_shader_image_load_store
19:18:14: GL_ARB_shader_image_size
19:18:14: GL_ARB_shader_objects
19:18:14: GL_ARB_shader_precision
19:18:14: GL_ARB_shader_storage_buffer_object
19:18:14: GL_ARB_shader_subroutine
19:18:14: GL_ARB_shader_texture_image_samples
19:18:14: GL_ARB_shader_texture_lod
19:18:14: GL_ARB_shading_language_100
19:18:14: GL_ARB_shading_language_420pack
19:18:14: GL_ARB_shading_language_include
19:18:14: GL_ARB_shading_language_packing
19:18:14: GL_ARB_shadow
19:18:14: GL_ARB_sparse_buffer
19:18:14: GL_ARB_sparse_texture
19:18:14: GL_ARB_spirv_extensions
19:18:14: GL_ARB_stencil_texturing
19:18:14: GL_ARB_sync
19:18:14: GL_ARB_tessellation_shader
19:18:14: GL_ARB_texture_barrier
19:18:14: GL_ARB_texture_border_clamp
19:18:14: GL_ARB_texture_buffer_object
19:18:14: GL_ARB_texture_buffer_object_rgb32
19:18:14: GL_ARB_texture_buffer_range
19:18:14: GL_ARB_texture_compression
19:18:14: GL_ARB_texture_compression_bptc
19:18:14: GL_ARB_texture_compression_rgtc
19:18:14: GL_ARB_texture_cube_map
19:18:14: GL_ARB_texture_cube_map_array
19:18:14: GL_ARB_texture_env_add
19:18:14: GL_ARB_texture_env_combine
19:18:14: GL_ARB_texture_env_crossbar
19:18:14: GL_ARB_texture_env_dot3
19:18:14: GL_ARB_texture_filter_anisotropic
19:18:14: GL_ARB_texture_float
19:18:14: GL_ARB_texture_gather
19:18:14: GL_ARB_texture_mirror_clamp_to_edge
19:18:14: GL_ARB_texture_mirrored_repeat
19:18:14: GL_ARB_texture_multisample
19:18:14: GL_ARB_texture_non_power_of_two
19:18:14: GL_ARB_texture_query_levels
19:18:14: GL_ARB_texture_query_lod
19:18:14: GL_ARB_texture_rectangle
19:18:14: GL_ARB_texture_rg
19:18:14: GL_ARB_texture_rgb10_a2ui
19:18:14: GL_ARB_texture_stencil8
19:18:14: GL_ARB_texture_storage
19:18:14: GL_ARB_texture_storage_multisample
19:18:14: GL_ARB_texture_swizzle
19:18:14: GL_ARB_texture_view
19:18:14: GL_ARB_timer_query
19:18:14: GL_ARB_transform_feedback2
19:18:14: GL_ARB_transform_feedback3
19:18:14: GL_ARB_transform_feedback_instanced
19:18:14: GL_ARB_transform_feedback_overflow_query
19:18:14: GL_ARB_transpose_matrix
19:18:14: GL_ARB_uniform_buffer_object
19:18:14: GL_ARB_vertex_array_bgra
19:18:14: GL_ARB_vertex_array_object
19:18:14: GL_ARB_vertex_attrib_64bit
19:18:14: GL_ARB_vertex_attrib_binding
19:18:14: GL_ARB_vertex_buffer_object
19:18:14: GL_ARB_vertex_program
19:18:14: GL_ARB_vertex_shader
19:18:14: GL_ARB_vertex_type_10f_11f_11f_rev
19:18:14: GL_ARB_vertex_type_2_10_10_10_rev
19:18:14: GL_ARB_viewport_array
19:18:14: GL_ARB_window_pos
19:18:14: GL_ATI_draw_buffers
19:18:14: GL_ATI_texture_float
19:18:14: GL_ATI_texture_mirror_once
19:18:14: GL_S3_s3tc
19:18:14: GL_EXT_texture_env_add
19:18:14: GL_EXT_abgr
19:18:14: GL_EXT_bgra
19:18:14: GL_EXT_bindable_uniform
19:18:14: GL_EXT_blend_color
19:18:14: GL_EXT_blend_equation_separate
19:18:14: GL_EXT_blend_func_separate
19:18:14: GL_EXT_blend_minmax
19:18:14: GL_EXT_blend_subtract
19:18:14: GL_EXT_compiled_vertex_array
19:18:14: GL_EXT_Cg_shader
19:18:14: GL_EXT_depth_bounds_test
19:18:14: GL_EXT_direct_state_access
19:18:14: GL_EXT_draw_buffers2
19:18:14: GL_EXT_draw_instanced
19:18:14: GL_EXT_draw_range_elements
19:18:14: GL_EXT_fog_coord
19:18:14: GL_EXT_framebuffer_blit
19:18:14: GL_EXT_framebuffer_multisample
19:18:14: GL_EXTX_framebuffer_mixed_formats
19:18:14: GL_EXT_framebuffer_multisample_blit_scaled
19:18:14: GL_EXT_framebuffer_object
19:18:14: GL_EXT_framebuffer_sRGB
19:18:14: GL_EXT_geometry_shader4
19:18:14: GL_EXT_gpu_program_parameters
19:18:14: GL_EXT_gpu_shader4
19:18:14: GL_EXT_multi_draw_arrays
19:18:14: GL_EXT_packed_depth_stencil
19:18:14: GL_EXT_packed_float
19:18:14: GL_EXT_packed_pixels
19:18:14: GL_EXT_pixel_buffer_object
19:18:14: GL_EXT_point_parameters
19:18:14: GL_EXT_polygon_offset_clamp
19:18:14: GL_EXT_provoking_vertex
19:18:14: GL_EXT_rescale_normal
19:18:14: GL_EXT_secondary_color
19:18:14: GL_EXT_separate_shader_objects
19:18:14: GL_EXT_separate_specular_color
19:18:14: GL_EXT_shader_image_load_formatted
19:18:14: GL_EXT_shader_image_load_store
19:18:14: GL_EXT_shader_integer_mix
19:18:14: GL_EXT_shadow_funcs
19:18:14: GL_EXT_stencil_two_side
19:18:14: GL_EXT_stencil_wrap
19:18:14: GL_EXT_texture3D
19:18:14: GL_EXT_texture_array
19:18:14: GL_EXT_texture_buffer_object
19:18:14: GL_EXT_texture_compression_dxt1
19:18:14: GL_EXT_texture_compression_latc
19:18:14: GL_EXT_texture_compression_rgtc
19:18:14: GL_EXT_texture_compression_s3tc
19:18:14: GL_EXT_texture_cube_map
19:18:14: GL_EXT_texture_edge_clamp
19:18:14: GL_EXT_texture_env_combine
19:18:14: GL_EXT_texture_env_dot3
19:18:14: GL_EXT_texture_filter_anisotropic
19:18:14: GL_EXT_texture_integer
19:18:14: GL_EXT_texture_lod
19:18:14: GL_EXT_texture_lod_bias
19:18:14: GL_EXT_texture_mirror_clamp
19:18:14: GL_EXT_texture_object
19:18:14: GL_EXT_texture_shared_exponent
19:18:14: GL_EXT_texture_sRGB
19:18:14: GL_EXT_texture_sRGB_decode
19:18:14: GL_EXT_texture_storage
19:18:14: GL_EXT_texture_swizzle
19:18:14: GL_EXT_timer_query
19:18:14: GL_EXT_transform_feedback2
19:18:14: GL_EXT_vertex_array
19:18:14: GL_EXT_vertex_array_bgra
19:18:14: GL_EXT_vertex_attrib_64bit
19:18:14: GL_EXT_window_rectangles
19:18:14: GL_EXT_x11_sync_object
19:18:14: GL_EXT_import_sync_object
19:18:14: GL_NV_robustness_video_memory_purge
19:18:14: GL_IBM_rasterpos_clip
19:18:14: GL_IBM_texture_mirrored_repeat
19:18:14: GL_KHR_context_flush_control
19:18:14: GL_KHR_debug
19:18:14: GL_EXT_memory_object
19:18:14: GL_EXT_memory_object_fd
19:18:14: GL_KHR_parallel_shader_compile
19:18:14: GL_KHR_no_error
19:18:14: GL_KHR_robust_buffer_access_behavior
19:18:14: GL_KHR_robustness
19:18:14: GL_EXT_semaphore
19:18:14: GL_EXT_semaphore_fd
19:18:14: GL_KTX_buffer_region
19:18:14: GL_NV_alpha_to_coverage_dither_control
19:18:14: GL_NV_bindless_multi_draw_indirect
19:18:14: GL_NV_bindless_multi_draw_indirect_count
19:18:14: GL_NV_bindless_texture
19:18:14: GL_NV_blend_equation_advanced
19:18:14: GL_NV_blend_equation_advanced_coherent
19:18:14: GL_NV_blend_minmax_factor
19:18:14: GL_NV_blend_square
19:18:14: GL_NV_command_list
19:18:14: GL_NV_compute_program5
19:18:14: GL_NV_conditional_render
19:18:14: GL_NV_copy_depth_to_color
19:18:14: GL_NV_copy_image
19:18:14: GL_NV_depth_buffer_float
19:18:14: GL_NV_depth_clamp
19:18:14: GL_NV_draw_texture
19:18:14: GL_NV_draw_vulkan_image
19:18:14: GL_NV_ES1_1_compatibility
19:18:14: GL_NV_ES3_1_compatibility
19:18:14: GL_NV_explicit_multisample
19:18:14: GL_NV_fence
19:18:14: GL_NV_float_buffer
19:18:14: GL_NV_fog_distance
19:18:14: GL_NV_fragment_program
19:18:14: GL_NV_fragment_program_option
19:18:14: GL_NV_fragment_program2
19:18:14: GL_NV_framebuffer_multisample_coverage
19:18:14: GL_NV_geometry_shader4
19:18:14: GL_NV_gpu_program4
19:18:14: GL_NV_internalformat_sample_query
19:18:14: GL_NV_gpu_program4_1
19:18:14: GL_NV_gpu_program5
19:18:14: GL_NV_gpu_program5_mem_extended
19:18:14: GL_NV_gpu_program_fp64
19:18:14: GL_NV_gpu_shader5
19:18:14: GL_NV_half_float
19:18:14: GL_NV_light_max_exponent
19:18:14: GL_NV_multisample_coverage
19:18:14: GL_NV_multisample_filter_hint
19:18:14: GL_NV_occlusion_query
19:18:14: GL_NV_packed_depth_stencil
19:18:14: GL_NV_parameter_buffer_object
19:18:14: GL_NV_parameter_buffer_object2
19:18:14: GL_NV_path_rendering
19:18:14: GL_NV_pixel_data_range
19:18:14: GL_NV_point_sprite
19:18:14: GL_NV_primitive_restart
19:18:14: GL_NV_query_resource
19:18:14: GL_NV_query_resource_tag
19:18:14: GL_NV_register_combiners
19:18:14: GL_NV_register_combiners2
19:18:14: GL_NV_shader_atomic_counters
19:18:14: GL_NV_shader_atomic_float
19:18:14: GL_NV_shader_atomic_int64
19:18:14: GL_NV_shader_buffer_load
19:18:14: GL_NV_shader_storage_buffer_object
19:18:14: GL_NV_texgen_reflection
19:18:14: GL_NV_texture_barrier
19:18:14: GL_NV_texture_compression_vtc
19:18:14: GL_NV_texture_env_combine4
19:18:14: GL_NV_texture_multisample
19:18:14: GL_NV_texture_rectangle
19:18:14: GL_NV_texture_rectangle_compressed
19:18:14: GL_NV_texture_shader
19:18:14: GL_NV_texture_shader2
19:18:14: GL_NV_texture_shader3
19:18:14: GL_NV_transform_feedback
19:18:14: GL_NV_transform_feedback2
19:18:14: GL_NV_uniform_buffer_unified_memory
19:18:14: GL_NV_vdpau_interop
19:18:14: GL_NV_vertex_array_range
19:18:14: GL_NV_vertex_array_range2
19:18:14: GL_NV_vertex_attrib_integer_64bit
19:18:14: GL_NV_vertex_buffer_unified_memory
19:18:14: GL_NV_vertex_program
19:18:14: GL_NV_vertex_program1_1
19:18:14: GL_NV_vertex_program2
19:18:14: GL_NV_vertex_program2_option
19:18:14: GL_NV_vertex_program3
19:18:14: GL_NVX_conditional_render
19:18:14: GL_NVX_gpu_memory_info
19:18:14: GL_NVX_nvenc_interop
19:18:14: GL_NV_shader_thread_group
19:18:14: GL_NV_shader_thread_shuffle
19:18:14: GL_KHR_blend_equation_advanced
19:18:14: GL_KHR_blend_equation_advanced_coherent
19:18:14: GL_SGIS_generate_mipmap
19:18:14: GL_SGIS_texture_lod
19:18:14: GL_SGIX_depth_texture
19:18:14: GL_SGIX_shadow
19:18:14: GL_SUN_slice_accum
19:18:14: Supported GLX extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_swap_control_tear GLX_EXT_texture_from_pixmap GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_no_error GLX_ARB_create_context_robustness GLX_NV_delay_before_swap GLX_EXT_stereo_tree GLX_ARB_context_flush_control GLX_NV_robustness_video_memory_purge GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_ARB_get_proc_address 
19:18:14: **************************************
19:18:14: ***   OpenGL 3+ Renderer Started   ***
19:18:14: **************************************
19:18:14: Registering ResourceManager for type GpuProgram
19:18:14: GL3+: Using FBOs for rendering to textures
19:18:14: FBO PF_UNKNOWN depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_L8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_L16 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_BYTE_LA depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8A8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_DEPTH_DEPRECATED depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_SHORT_GR depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R11G11B10_FLOAT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8A8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16A16_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32B32_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32B32A32_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8A8_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16A16_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32B32_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R32G32B32A32_SINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_RG8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R8G8B8A8_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_R16G16B16A16_SNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D24_UNORM_S8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D24_UNORM_X8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_X24_S8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D24_UNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D16_UNORM depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D32_FLOAT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D32_FLOAT_X24_S8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_D32_FLOAT_X24_X8 depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: FBO PF_X32_X24_S8_UINT depth/stencil support: D0S0 D0S8 D16S0 D16S8 D24S0 D24S8 D32S0 D32S8 D32S0 D32S8 Packed-D24S8 Packed-D32S8 
19:18:14: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_L16 PF_A8 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_R8G8B8A8 PF_DEPTH_DEPRECATED PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_SHORT_GR PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB PF_R11G11B10_FLOAT PF_R8_UINT PF_R8G8_UINT PF_R8G8B8_UINT PF_R8G8B8A8_UINT PF_R16_UINT PF_R16G16_UINT PF_R16G16B16_UINT PF_R16G16B16A16_UINT PF_R32_UINT PF_R32G32_UINT PF_R32G32B32_UINT PF_R32G32B32A32_UINT PF_R8_SINT PF_R8G8_SINT PF_R8G8B8_SINT PF_R8G8B8A8_SINT PF_R16_SINT PF_R16G16_SINT PF_R16G16B16_SINT PF_R16G16B16A16_SINT PF_R32_SINT PF_R32G32_SINT PF_R32G32B32_SINT PF_R32G32B32A32_SINT PF_RG8 PF_R8_SNORM PF_R8G8_SNORM PF_R8G8B8_SNORM PF_R8G8B8A8_SNORM PF_R16_SNORM PF_R16G16_SNORM PF_R16G16B16_SNORM PF_R16G16B16A16_SNORM PF_D24_UNORM_S8_UINT PF_D24_UNORM_X8 PF_X24_S8_UINT PF_D24_UNORM PF_D16_UNORM PF_D32_FLOAT PF_D32_FLOAT_X24_S8_UINT PF_D32_FLOAT_X24_X8 PF_X32_X24_S8_UINT 
19:18:14: RenderSystem capabilities
19:18:14: -------------------------
19:18:14: RenderSystem Name: OpenGL 3+ Rendering Subsystem
19:18:14: GPU Vendor: nvidia
19:18:14: Device Name: GeForce GTX 860M/PCIe/SSE2
19:18:14: Driver Version: 4.3.0.0
19:18:14:  * Fixed function pipeline: no
19:18:14:  * Hardware generation of mipmaps: yes
19:18:14:  * Texture blending: yes
19:18:14:  * Anisotropic texture filtering: yes
19:18:14:  * Dot product texture operation: yes
19:18:14:  * Cube mapping: yes
19:18:14:  * Hardware stencil buffer: yes
19:18:14:    - Stencil depth: 8
19:18:14:    - Two sided stencil support: yes
19:18:14:    - Wrap stencil values: yes
19:18:14:  * Hardware vertex / index buffers: yes
19:18:14:  * 32-bit index buffers: yes
19:18:14:  * Vertex programs: yes
19:18:14:  * Number of floating-point constants for vertex programs: 4096
19:18:14:  * Number of integer constants for vertex programs: 4096
19:18:14:  * Number of boolean constants for vertex programs: 4096
19:18:14:  * Fragment programs: yes
19:18:14:  * Number of floating-point constants for fragment programs: 4096
19:18:14:  * Number of integer constants for fragment programs: 4096
19:18:14:  * Number of boolean constants for fragment programs: 4096
19:18:14:  * Geometry programs: yes
19:18:14:  * Number of floating-point constants for geometry programs: 2048
19:18:14:  * Number of integer constants for geometry programs: 2048
19:18:14:  * Number of boolean constants for geometry programs: 2048
19:18:14:  * Tessellation Hull programs: yes
19:18:14:  * Number of floating-point constants for tessellation hull programs: 2048
19:18:14:  * Number of integer constants for tessellation hull programs: 2048
19:18:14:  * Number of boolean constants for tessellation hull programs: 2048
19:18:14:  * Tessellation Domain programs: yes
19:18:14:  * Number of floating-point constants for tessellation domain programs: 2048
19:18:14:  * Number of integer constants for tessellation domain programs: 2048
19:18:14:  * Number of boolean constants for tessellation domain programs: 2048
19:18:14:  * Compute programs: yes
19:18:14:  * Number of floating-point constants for compute programs: 2048
19:18:14:  * Number of integer constants for compute programs: 2048
19:18:14:  * Number of boolean constants for compute programs: 2048
19:18:14:  * Supported Shader Profiles: glsl glsl130 glsl140 glsl150 glsl330 glsl400 glsl410 glsl420 glsl430
19:18:14:  * Texture Compression: yes
19:18:14:    - DXT: yes
19:18:14:    - VTC: yes
19:18:14:    - PVRTC: no
19:18:14:    - ATC: no
19:18:14:    - ETC1: no
19:18:14:    - ETC2: yes
19:18:14:    - BC4/BC5: yes
19:18:14:    - BC6H/BC7: yes
19:18:14:    - ASTC: no
19:18:14:  * Hardware Occlusion Query: yes
19:18:14:  * User clip planes: yes
19:18:14:  * VET_UBYTE4 vertex element type: yes
19:18:14:  * Infinite far plane projection: yes
19:18:14:  * Hardware render-to-texture: yes
19:18:14:  * Floating point textures: yes
19:18:14:  * Non-power-of-two textures: yes
19:18:14:  * 1d textures: yes
19:18:14:  * Volume textures: yes
19:18:14:  * Max Texture resolution (2D) 16384
19:18:14:  * Max Texture resolution (3D) 2048
19:18:14:  * Max Texture resolution (Cubemaps) 16384
19:18:14:  * Multiple Render Targets: 8
19:18:14:    - With different bit depths: yes
19:18:14:  * Point Sprites: yes
19:18:14:  * Extended point parameters: yes
19:18:14:  * Max Point Size: 189.875
19:18:14:  * Vertex texture fetch: yes
19:18:14:  * Number of world matrices: 0
19:18:14:  * Number of texture units: 16
19:18:14:  * Stencil buffer depth: 8
19:18:14:  * Number of vertex blend matrices: 0
19:18:14:    - Max vertex textures: 32
19:18:14:    - Vertex textures shared: yes
19:18:14:  * Render to Vertex Buffer : yes
19:18:14:  * Hardware Atomic Counters: yes
19:18:14:  * GL 1.5 without VBO workaround: no
19:18:14:  * Frame Buffer objects: yes
19:18:14:  * Frame Buffer objects (ARB extension): no
19:18:14:  * Frame Buffer objects (ATI extension): no
19:18:14:  * PBuffer support: no
19:18:14:  * GL 1.5 without HW-occlusion workaround: no
19:18:14:  * Vertex Array Objects: yes
19:18:14:  * Separate shader objects: no
19:18:14: Registering ResourceManager for type Texture
19:18:14: DefaultWorkQueue('Root') initialising on thread main.
19:18:14: Particle Renderer Type 'billboard' registered
19:18:14: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:18:14: Added resource location '/home/xaaq/Desktop/untitled.scenefolder' of type 'FileSystem' to resource group 'General'
19:18:14: Parsing scripts for resource group Autodetect
19:18:14: Finished parsing scripts for resource group Autodetect
19:18:14: Creating resources for group Autodetect
19:18:14: All done
19:18:14: Parsing scripts for resource group General
19:18:14: Parsing script material3.material.json
19:18:14: Parsing script material1.material.json
19:18:14: Texture: loading gwiazdki.png as gwiazdki.png
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: OpenGL:performance(medium) 131186: Buffer performance warning: Buffer object 13 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_STATIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
19:18:14: Finished parsing scripts for resource group General
19:18:14: Creating resources for group General
19:18:14: All done
19:18:14: Parsing scripts for resource group Internal
19:18:14: Finished parsing scripts for resource group Internal
19:18:14: Creating resources for group Internal
19:18:14: All done
19:18:14: Loading resource group 'General' - Resources: 0 World Geometry: 1
19:18:14: Finished loading resource group General
19:18:14: Mesh: Loading Cube.mesh.
19:18:14: Corrupted chunk detected! Stream name: 'Cube.mesh' Chunk id: 36864
19:18:14: GLSL compile log: 536870912PixelShader_ps
0(346) : error C1008: undefined variable "UV_DIFFUSE"
19:18:14: OGRE EXCEPTION(3:RenderingAPIException): Fragment Program 536870912PixelShader_ps failed to compile. See compile log above for details. in GLSLShader::compile at /home/xaaq/projects/ogre/RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp (line 308)
Last edited by Xaaq on Mon Sep 24, 2018 4:34 pm, edited 1 time in total.
dermont
Bugbear
Posts: 812
Joined: Thu Dec 09, 2004 2:51 am
x 42

Re: Error when trying to render mesh with texture

Post by dermont »

I think you are missing some of the data folders for Hlms registration, namely:
"Hlms/Common/Any"
"Hlms/Pbs/Any"
"Hlms/Unlit/Any"

Code: Select all

#ifndef _SampleApplication_h_
#define _SampleApplication_h_


#include <unistd.h>
#include<iostream>
#include <memory>
#include <time.h>
#include <sys/time.h>

#include "Ogre.h"

using namespace Ogre;
using namespace std;




#include "OgreConfigFile.h"
#include "Compositor/OgreCompositorManager2.h"
#include "Compositor/OgreCompositorWorkspace.h"
#include "Compositor/OgreCompositorNode.h"

#include "OgreHlms.h"
#include "OgreHlmsDatablock.h"
#include "OgreHlmsManager.h"
#include "OgreHlmsSamplerblock.h"
#include "OgreHlmsTextureManager.h"
#include "OgreTextureManager.h"
#include "OgreHlmsPbs.h"
#include "OgreHlmsUnlit.h"


#include "Hlms/Pbs/OgreHlmsPbs.h"
#include "Hlms/Pbs/OgreHlmsPbs.h"
#include "Hlms/Pbs/OgreHlmsPbsPrerequisites.h"
#include "Hlms/Pbs/OgreHlmsPbsDatablock.h"
#include "Hlms/Unlit/OgreHlmsUnlit.h"
#include "Hlms/Unlit/OgreHlmsUnlitPrerequisites.h"
#include "Hlms/Unlit/OgreHlmsUnlitDatablock.h"

#include "OgreCamera.h"
#include "OgreFrameStats.h"
#include "OgreItem.h"
#include "OgreLogManager.h"
#include "OgreMaterialManager.h"
#include "OgreMeshManager.h"
#include "OgreMeshManager2.h"
#include "OgreMesh.h"
#include "OgreMesh2.h"
#include "OgreSubMesh2.h"
#include "OgreBitwise.h"
#include "Vao/OgreAsyncTicket.h"


#include "Overlay/OgreOverlaySystem.h"
//#include "OgrePrerequisites.h"
#include "Overlay/OgreOverlayPrerequisites.h"
#include "Overlay/OgreOverlaySystem.h"
#include "Overlay/OgreOverlay.h"
#include "Overlay/OgreOverlayContainer.h"
#include "Overlay/OgreOverlayElement.h"
#include "Overlay/OgreOverlayManager.h"
#include "Overlay/OgreTextAreaOverlayElement.h"



#include "OgreRenderWindow.h"
#include "OgreRoot.h"
#include "OgreRectangle2D.h"
#include "OgreRenderQueue.h"
#include "OgreSceneManager.h"
//#include "OgreTextureGpuManager.h"
//#include "OgreTextureGpu.h"
//#include "OgreStagingTexture.h"
#include "OgreImage.h"
#include "OgreViewport.h"
#include "OgreRenderWindow.h"
#include "OgreWindowEventUtilities.h"

#include  <iostream>
#include <string>
#include <stdlib.h>

class SampleApplication : public WindowEventListener, public Ogre::RenderQueueListener
                        , public Ogre::FrameListener
{
  protected:
      Ogre::Camera*     mCamera;
      Ogre::Root*       mRoot;
      Ogre::RenderWindow*     mWindow;
      Ogre::v1::OverlaySystem*    mOverlaySystem;
      Ogre::CompositorWorkspace*  mWorkspace;
      Ogre::SceneManager* mSceneManager;
      Ogre::v1::TextAreaOverlayElement *mDebugText;
      Ogre::v1::TextAreaOverlayElement *mDebugTextShadow;

  public:
    SampleApplication() 
        : mRoot(0)
        , mWindow(0)
        , mCamera(0)
        , mOverlaySystem(0)
        , mWorkspace(0)
        , mSceneManager(0)
        , mDebugText(0)
        , mDebugTextShadow(0)
    {
    }

    //-----------------------------------------------------------------------------------
    bool start()
    {
        mRoot = OGRE_NEW Ogre::Root("plugins.cfg");
        if (!mRoot->showConfigDialog())
            return false;
        createWindow();
		//Register as a Window listener
		//WindowEventUtilities::addWindowEventListener(mWindow, this);
        //createInputSystem();
        createOverlay();
        createResources();
        createSceneManager();
        createCamera();
        createCompositor();
        createLighting();
        createScene();
        createGUI();
        loop();
        return true;
    }


    //-----------------------------------------------------------------------------------
    virtual void createOverlay()
    {
        mOverlaySystem = OGRE_NEW Ogre::v1::OverlaySystem();
    }

    //-----------------------------------------------------------------------------------
    virtual void createWindow()
    {
        mWindow = mRoot->initialise(true);
    }

    //-----------------------------------------------------------------------------------
    virtual void createResources()
    {
        registerResouces();
        registerHlms();
        Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups(true);
    }
    //-----------------------------------------------------------------------------------
    virtual void createSceneManager()
    {
        const size_t numThreads = std::max<int>(1, Ogre::PlatformInformation::getNumLogicalCores());
        Ogre::InstancingThreadedCullingMethod threadedCullingMethod =
                    Ogre::INSTANCING_CULLING_SINGLETHREAD;

	    mSceneManager = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC, 1, threadedCullingMethod, "TEST");
        mSceneManager->getRenderQueue()->setSortRenderQueue(
                    Ogre::v1::OverlayManager::getSingleton().mDefaultRenderQueueId,
                    Ogre::RenderQueue::StableSort );
        mSceneManager->addRenderQueueListener( mOverlaySystem );
        //Set sane defaults for proper shadow mapping
        mSceneManager->setShadowDirectionalLightExtrusionDistance( 500.0f );
        mSceneManager->setShadowFarDistance( 500.0f );

    }
    //-----------------------------------------------------------------------------------
    virtual void createCamera()
    {
        mCamera = mSceneManager->createCamera("Camera Test");
        mCamera->setPosition(Vector3(0,0,20));
        mCamera->lookAt(Vector3(0,0,0));
        mCamera->setNearClipDistance(1);
        mCamera->setAutoAspectRatio(true);
    }
    //-----------------------------------------------------------------------------------
    virtual void createCompositor()
    {
	    Ogre::CompositorManager2* compositorManager = mRoot->getCompositorManager2();
        const Ogre::String workspaceName = "Demo Workspace";

        if( !compositorManager->hasWorkspaceDefinition( workspaceName ) )
            compositorManager->createBasicWorkspaceDef( workspaceName, 
                                                        Ogre::ColourValue::Red,
                                                        Ogre::IdString());
        mWorkspace = compositorManager->addWorkspace(mSceneManager, 
                        mWindow, mCamera, workspaceName, true);
    }
    //-----------------------------------------------------------------------------------
    virtual void createLighting()
    {
        Ogre::Light *light = mSceneManager->createLight();
        Ogre::SceneNode *lightNode = mSceneManager->getRootSceneNode()->createChildSceneNode();
        lightNode->attachObject( light );
        light->setPowerScale( Ogre::Math::PI ); //Since we don"t do HDR, counter the PBS" division by PI
        light->setType( Ogre::Light::LT_DIRECTIONAL );
        light->setDirection( Ogre::Vector3( -1, -1, -1 ).normalisedCopy() );
    }


    //------------------------------------------------------------------------
	virtual bool frameRenderingQueued(const FrameEvent& evt)
	{
        return true;

    }
    //------------------------------------------------------------------------
    virtual void renderQueueStarted(Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& skipThisQueue)
    {
        //if (queueGroupId == 105){ skipThisQueue=true;}
    }
    //------------------------------------------------------------------------
    virtual void renderQueueEnded(uint8 queueGroupId, const String& invocation, 
        bool& repeatThisInvocation)
    {
    }

    //-----------------------------------------------------------------------------------
    Ogre::Item* createItem(const Ogre::String& meshName) 
    {
         Ogre::Item* item = mSceneManager->createItem( meshName,
                                                       Ogre::ResourceGroupManager::
                                                       AUTODETECT_RESOURCE_GROUP_NAME,
                                                       Ogre::SCENE_DYNAMIC );
         Ogre::SceneNode* sceneNode = mSceneManager->getRootSceneNode( Ogre::SCENE_DYNAMIC )->
                                createChildSceneNode( Ogre::SCENE_DYNAMIC );
         sceneNode->attachObject( item );
         return item;
    }

    //-----------------------------------------------------------------------------------
    Ogre::MeshPtr convertMesh(Ogre::String meshName)
    {

        //Load the v1 mesh. Notice the v1 namespace
        Ogre::v1::MeshPtr v1Mesh = Ogre::v1::MeshManager::getSingleton().load(
                        meshName, Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
                        Ogre::v1::HardwareBuffer::HBU_STATIC, Ogre::v1::HardwareBuffer::HBU_STATIC );
        
        //Create a v2 mesh to import to, with a different name (arbitrary).
        Ogre::MeshPtr v2Mesh = Ogre::MeshManager::getSingleton().createManual(
                        meshName , Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME );

        bool halfPosition   = true;
        bool halfUVs        = true;
        bool useQtangents   = true;

        //Import the v1 mesh to v2
        v2Mesh->importV1( v1Mesh.get(), halfPosition, halfUVs, useQtangents );


        //We don"t need the v1 mesh. Free CPU memory, get it out of the GPU.
        //Leave it loaded if you want to use athene with v1 Entity.
        v1Mesh->unload();

        return v2Mesh;
    }

    //-----------------------------------------------------------------------------------
    void registerResouces(void)
    {
        //Ogre::Root* mRoot = Ogre::Root::getSingletonPtr();
        // Load resource paths from config file
        Ogre::ConfigFile cf;
        cf.load("resources2.cfg");

        // Go through all sections & settings in the file
        Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();

        Ogre::String secName, typeName, archName;
        while (seci.hasMoreElements())
        {
            secName = seci.peekNextKey();
            Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
            if( secName != "Hlms" )
            {

            Ogre::ConfigFile::SettingsMultiMap::iterator i;
            for (i = settings->begin(); i != settings->end(); ++i)
            {
                typeName = i->first;
                archName = i->second;
                Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
                            archName, typeName, secName);
            }
            }
        }
    }
    //-----------------------------------------------------------------------------------
    virtual void registerHlms(void)
    {
        //Ogre::Root* mRoot = Ogre::Root::getSingletonPtr();
        Ogre::ConfigFile cf;
        cf.load("./resources2.cfg");

        Ogre::String rootHlmsFolder = cf.getSetting( "DoNotUseAsResource", "Hlms", "" );

        if( rootHlmsFolder.empty() )
            rootHlmsFolder = "./";
        else if( *(rootHlmsFolder.end() - 1) != '/' )
            rootHlmsFolder += "/";

        // ********************************************************
        // override to add aditional resource locations
        // ********************************************************
        addAdditionalHlmsResources(rootHlmsFolder.c_str());

        Ogre::String shaderSyntax = "GLSL";
        if( mRoot->getRenderSystem()->getName() == "Direct3D11 Rendering Subsystem" )
            shaderSyntax = "HLSL";

        Ogre::HlmsUnlit *hlmsUnlit = 0;
        Ogre::HlmsPbs *hlmsPbs = 0;

        //For retrieval of the paths to the different folders needed
        Ogre::String mainFolderPath;
        Ogre::StringVector libraryFoldersPaths;
        Ogre::StringVector::const_iterator libraryFolderPathIt;
        Ogre::StringVector::const_iterator libraryFolderPathEn;

        //Create and register unlit
        Ogre::ArchiveManager &archiveManager = Ogre::ArchiveManager::getSingleton();
        {
            //Get the path to all the subdirectories used by HlmsUnlit
            Ogre::HlmsUnlit::getDefaultPaths( mainFolderPath, libraryFoldersPaths );
            Ogre::Archive *archiveUnlit = archiveManager.load( rootHlmsFolder + mainFolderPath,
                                                                   "FileSystem", true );
            Ogre::ArchiveVec archiveUnlitLibraryFolders;
            libraryFolderPathIt = libraryFoldersPaths.begin();
            libraryFolderPathEn = libraryFoldersPaths.end();
            while( libraryFolderPathIt != libraryFolderPathEn )
            {
                Ogre::Archive *archiveLibrary =
                            archiveManager.load( rootHlmsFolder + *libraryFolderPathIt, "FileSystem", true );
                archiveUnlitLibraryFolders.push_back( archiveLibrary );
                ++libraryFolderPathIt;
            }

            hlmsUnlit = OGRE_NEW Ogre::HlmsUnlit( archiveUnlit, &archiveUnlitLibraryFolders );
            Ogre::Root::getSingleton().getHlmsManager()->registerHlms( hlmsUnlit );
        }

        //Create and register Pbs
        {
            Ogre::HlmsPbs::getDefaultPaths( mainFolderPath, libraryFoldersPaths );
            Ogre::Archive *archivePbs = archiveManager.load( rootHlmsFolder + mainFolderPath,
                                                                 "FileSystem", true );
           //Get the library archive(s)
            Ogre::ArchiveVec archivePbsLibraryFolders;
            libraryFolderPathIt = libraryFoldersPaths.begin();
            libraryFolderPathEn = libraryFoldersPaths.end();
            while( libraryFolderPathIt != libraryFolderPathEn )
            {
                Ogre::Archive *archiveLibrary =
                        archiveManager.load( rootHlmsFolder + *libraryFolderPathIt, "FileSystem", true );
                archivePbsLibraryFolders.push_back( archiveLibrary );
                ++libraryFolderPathIt;
            }

            hlmsPbs = OGRE_NEW Ogre::HlmsPbs( archivePbs, &archivePbsLibraryFolders );
            Ogre::Root::getSingleton().getHlmsManager()->registerHlms( hlmsPbs );
        }

        Ogre::RenderSystem *renderSystem = mRoot->getRenderSystem();
        if( renderSystem->getName() == "Direct3D11 Rendering Subsystem" )
        {
            //Set lower limits 512kb instead of the default 4MB per Hlms in D3D 11.0
            //and below to avoid saturating AMD's discard limit (8MB) or
            //saturate the PCIE bus in some low end machines.
            bool supportsNoOverwriteOnTextureBuffers;
            renderSystem->getCustomAttribute( "MapNoOverwriteOnDynamicBufferSRV",
                                                  &supportsNoOverwriteOnTextureBuffers );

            if( !supportsNoOverwriteOnTextureBuffers )
            {
                hlmsPbs->setTextureBufferDefaultSize( 512 * 1024 );
                hlmsUnlit->setTextureBufferDefaultSize( 512 * 1024 );
            }
        }
    }
    //-----------------------------------------------------------------------------------
    virtual void addAdditionalHlmsResources(const Ogre::String& rootHlmsFolder)
    {

    }

    //-----------------------------------------------------------------------------------
    void createDebugTextOverlay(void)
    {
        Ogre::v1::OverlayManager &overlayManager = Ogre::v1::OverlayManager::getSingleton();
        Ogre::v1::Overlay *overlay = overlayManager.create( "DebugText" );

        Ogre::v1::OverlayContainer *panel = static_cast<Ogre::v1::OverlayContainer*>(
            overlayManager.createOverlayElement("Panel", "DebugPanel"));
        mDebugText = static_cast<Ogre::v1::TextAreaOverlayElement*>(
                    overlayManager.createOverlayElement( "TextArea", "DebugText" ) );
        mDebugText->setFontName( "DebugFont" );
        mDebugText->setCharHeight( 0.025f );

        mDebugTextShadow= static_cast<Ogre::v1::TextAreaOverlayElement*>(
                    overlayManager.createOverlayElement( "TextArea", "0DebugTextShadow" ) );
        mDebugTextShadow->setFontName( "DebugFont" );
        mDebugTextShadow->setCharHeight( 0.025f );
        mDebugTextShadow->setColour( Ogre::ColourValue::Black );
        mDebugTextShadow->setPosition( 0.002f, 0.002f );

        panel->addChild( mDebugTextShadow );
        panel->addChild( mDebugText );
        overlay->add2D( panel );
        overlay->show();
    }

    //-----------------------------------------------------------------------------------
    void generateDebugText( float timeSinceLast, Ogre::String &outText )
    {

        const Ogre::FrameStats *frameStats = mRoot->getFrameStats();

        Ogre::String finalText;
        finalText.reserve( 128 );
        finalText  = "Frame time:\t";
        finalText += Ogre::StringConverter::toString( timeSinceLast * 1000.0f );
        finalText += " ms\n";
        finalText += "Frame FPS:\t";
        finalText += Ogre::StringConverter::toString( 1.0f / timeSinceLast );
        finalText += "\nAvg time:\t";
        finalText += Ogre::StringConverter::toString( frameStats->getAvgTime() );
        finalText += " ms\n";
        finalText += "Avg FPS:\t";
        finalText += Ogre::StringConverter::toString( 1000.0f / frameStats->getAvgTime() );
        finalText += "\n\nPress F1 to toggle help";

        outText.swap( finalText );

        mDebugText->setCaption( finalText );
        mDebugTextShadow->setCaption( finalText );
    }

    //-----------------------------------------------------------------------------------
    virtual void createScene(void)
    {
        createDebugTextOverlay();
    }
    //-----------------------------------------------------------------------------------
    virtual void createGUI(void)
    {
    }
 
    //-------------------------------------------------------------------------------
    virtual void FitToBounds(Ogre::Aabb boundingBox, float offsetAmnt)
    {
            //thanks to thatnerdyguy
            //http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=9926
            Ogre::Vector3 offset = boundingBox.mHalfSize;
            Ogre::Vector3 center = boundingBox.mCenter;
            Ogre::Vector3 pos = Ogre::Vector3(1, 1, 1);
            float f = 1.0f / float(Ogre::Math::Sin(mCamera->getFOVy().valueRadians() / 2.0f) );
            float distanceToCenter = offset.length() * f * offsetAmnt;
            mCamera->setPosition(pos.normalisedCopy() * distanceToCenter);
            mCamera->lookAt(center);

            //###mProjMatrix = mProjMatrix * Quaternion(Degree(mOrientationMode * 90.f), Vector3::UNIT_Z);
    }       
    //-----------------------------------------------------------------------------------
    virtual void loop()
    {
        Ogre::Timer timer;
        double elapsedTime = 0;
        unsigned long startTime;
        unsigned long endTime;
        startTime = timer.getMicroseconds();

        while (true ) {

            if (mWindow->isClosed())
                break;

            Ogre::WindowEventUtilities::messagePump();
            update(elapsedTime);
            mRoot->renderOneFrame();
            unsigned long endTime = timer.getMicroseconds();
            elapsedTime = (double)(endTime - startTime) / 1000000;
            startTime = endTime;
            usleep(10);
        }
        cleanup();
    }

    //-----------------------------------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        Ogre::String finalText;
        generateDebugText( timeSinceLast, finalText );
        mDebugText->setCaption( finalText );
        mDebugTextShadow->setCaption( finalText );
    }
    virtual void cleanup(void) {};

    //-----------------------------------------------------------------------------------
    virtual ~SampleApplication()
    {
		//Register as a Window listener
		WindowEventUtilities::removeWindowEventListener(mWindow, this);
        if (mSceneManager)
            mSceneManager->removeRenderQueueListener(mOverlaySystem);
        if (mOverlaySystem)
            OGRE_DELETE mOverlaySystem;
        OGRE_DELETE mRoot;
    }
};

#endif

Code: Select all

#include "SampleApplication.h"

#include "Overlay/OgreFont.h"
#include "Overlay/OgreFontManager.h"
#include "Animation/OgreTagPoint.h"

//*************************************************************************
class SampleDemo1 : public SampleApplication
{
public:
    //----------------------------------------------------------
    SampleDemo1() : SampleApplication()
    {
    }
    //----------------------------------------------------------
    virtual void createScene(void) {
        SampleApplication::createScene();
        mCamera->setPosition(Vector3(0,10,10));
        mCamera->lookAt(Vector3(0,0,0));

        // using pbs material DebugCube/DebugSphere1000 from DebugPack.Zip 
        Ogre::Item* boxItem = createItem("Cube_d.mesh");
        boxItem->getParentSceneNode()->scale( 1.0f, 1.0f, 1.0f );
        boxItem->getParentSceneNode()->setPosition(Ogre::Vector3( 0.0f, 0.0f , 1.5 ));

        Ogre::Item* sphereItem = createItem("Sphere1000.mesh");
        sphereItem->getParentSceneNode()->scale( 1.0f, 1.0f, 1.0f );
        sphereItem->getParentSceneNode()->setPosition(Ogre::Vector3( 0.0f, 4.0f , 1.5 ));
    }
    //----------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        SampleApplication::update(timeSinceLast);
    }
    //----------------------------------------------------------
    virtual void cleanup(void)
    {
        //v2Mesh.setNull();
        SampleApplication::cleanup();
    }
    //----------------------------------------------------------
    ~SampleDemo1(){};
};


//**********************************************************************************
// As SampleDemo1 set cube/mesh pbs from material in 2.0/scripts/materials/PbsMaterials
//**********************************************************************************
class SampleDemo2 : public SampleApplication
{
public:
    //----------------------------------------------------------
    SampleDemo2() : SampleApplication()
    {
    }
    //----------------------------------------------------------
    virtual void createScene(void) {
        SampleApplication::createScene();
        mCamera->setPosition(Vector3(0,10,10));
        mCamera->lookAt(Vector3(0,0,0));

        Ogre::Item* boxItem = createItem("Cube_d.mesh");
        boxItem->getParentSceneNode()->scale( 1.0f, 1.0f, 1.0f );
        boxItem->getParentSceneNode()->setPosition(Ogre::Vector3( 0.0f, 0.0f , 1.5 ));

        Ogre::Item* sphereItem = createItem("Sphere1000.mesh");
        sphereItem->getParentSceneNode()->scale( 1.0f, 1.0f, 1.0f );
        sphereItem->getParentSceneNode()->setPosition(Ogre::Vector3( 0.0f, 4.0f , 1.5 ));

        // set pbs datablock to  "Rocks"/"Marble" instead of DebugCube/DebugSphere1000
        boxItem->setDatablock( "Rocks" );
        sphereItem->setDatablock( "Marble" );
    }

    //----------------------------------------------------------
    // add location of "Rocks"/"Marble" pbs material
    virtual void addAdditionalHlmsResources(const Ogre::String& rootHlmsFolder)
    {
        Ogre::String dataFolder= rootHlmsFolder + "2.0/scripts/materials/PbsMaterials";
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(dataFolder, "FileSystem", "General" );
    }

    //----------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        SampleApplication::update(timeSinceLast);
    }
    //----------------------------------------------------------
    virtual void cleanup(void)
    {
        //v2Mesh.setNull();
        SampleApplication::cleanup();
    }
    //----------------------------------------------------------
    ~SampleDemo2(){};
};


//**********************************************************************************
// Import/convert v1Mesh to v2Mesh and animate
//**********************************************************************************
class SampleDemo3 : public SampleApplication
{
protected:
        Ogre::SkeletonAnimation   *mAnimState;

public:
    SampleDemo3() : SampleApplication()
    {
    }

    //----------------------------------------------------------
    virtual void createLighting(void)
    {
        Ogre::Light *light = mSceneManager->createLight();
        Ogre::SceneNode *lightNode = mSceneManager->getRootSceneNode()->createChildSceneNode();
        lightNode->attachObject( light );
        light->setPowerScale( 1.0); // Ogre::Math::PI ); //Since we don't do HDR, counter the PBS' division by PI
        light->setType( Ogre::Light::LT_DIRECTIONAL );
        light->setDirection( Ogre::Vector3( -1, -1, -1 ).normalisedCopy() );

        mSceneManager->setAmbientLight( Ogre::ColourValue( 0.8, 0.8, 0.8 ) * 0.51 * 0.75,
                                        Ogre::ColourValue( 1.0, 1.0, 1.0 ) ,
                                        -light->getDirection() + Ogre::Vector3::UNIT_Y * 0.2);
    }

    //----------------------------------------------------------
    virtual void createScene(void) {
        SampleApplication::createScene();
        mCamera->setPosition(Vector3(0,10,10));
        mCamera->lookAt(Vector3(0,0,0));

        HlmsManager* hlmsManager = mRoot->getHlmsManager();
        HlmsPbs* hlmsPbs = static_cast<HlmsPbs*>(hlmsManager->getHlms(Ogre::HLMS_PBS));

        Ogre::MeshPtr v2Mesh = convertMesh("robot.mesh");
        Ogre::Item *item = createItem( "robot.mesh");
        item->getParentSceneNode()->scale( 0.1f, 0.1f, 0.1f );

        Ogre::String datablockName = "RobotMaterial";
        Ogre::HlmsPbsDatablock* datablockPbs = static_cast<Ogre::HlmsPbsDatablock*>( 
                    hlmsPbs->createDatablock( Ogre::IdString(datablockName),
                                              datablockName,
                                              Ogre::HlmsMacroblock(),
                                              Ogre::HlmsBlendblock(),
                                              Ogre::HlmsParamVec()));

        Ogre::HlmsTextureManager::TextureLocation texLocationPbs = 
            hlmsManager->getTextureManager()->createOrRetrieveTexture( "r2skin.jpg",  Ogre::HlmsTextureManager::TEXTURE_TYPE_DIFFUSE);
        datablockPbs->setTexture( Ogre::PBSM_DIFFUSE , texLocationPbs.xIdx, texLocationPbs.texture );
        datablockPbs->setTextureUvSource( Ogre::PBSM_DIFFUSE, 0 );
        //datablockPbs->setDiffuse( Ogre::Vector3( 3.14, 3.14, 3.14 ) );
        item->getSubItem(0)->setDatablock(datablockPbs);
        mAnimState = item->getSkeletonInstance()->getAnimation(Ogre::IdString("Walk"));
        mAnimState->setEnabled(true);
        FitToBounds(item->getWorldAabbUpdated(), 1.0);
    }

    //----------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        mAnimState->addTime(timeSinceLast);
        SampleApplication::update(timeSinceLast);
    }
    //----------------------------------------------------------
    virtual void cleanup(void)
    {
        //v2Mesh.setNull();
        SampleApplication::cleanup();
    }

    //----------------------------------------------------------
    ~SampleDemo3(){};
};



//**********************************************************************************
// Import/convert v1Mesh to v2Mesh and create datablocks 
//**********************************************************************************
class SampleDemo4 : public SampleApplication
{
protected:
        Ogre::SkeletonAnimation   *mAnimState;

public:
    SampleDemo4() : SampleApplication()
    {
    }

    //----------------------------------------------------------
    virtual void createLighting(void)
    {
        Ogre::Light *light = mSceneManager->createLight();
        Ogre::SceneNode *lightNode = mSceneManager->getRootSceneNode()->createChildSceneNode();
        lightNode->attachObject( light );
        light->setPowerScale( 1.0); // Ogre::Math::PI ); //Since we don't do HDR, counter the PBS' division by PI
        light->setType( Ogre::Light::LT_DIRECTIONAL );
        light->setDirection( Ogre::Vector3( -1, -1, -1 ).normalisedCopy() );

        mSceneManager->setAmbientLight( Ogre::ColourValue( 0.8, 0.8, 0.8 ) * 0.51 * 0.75,
                                        Ogre::ColourValue( 1.0, 1.0, 1.0 ) ,
                                        -light->getDirection() + Ogre::Vector3::UNIT_Y * 0.2);
    }

    //----------------------------------------------------------
    Ogre::HlmsPbsDatablock* createPbsMaterial(const Ogre::String datablockName, const Ogre::String matName) {
        HlmsManager* hlmsManager = mRoot->getHlmsManager();
        HlmsPbs* hlmsPbs = static_cast<HlmsPbs*>(hlmsManager->getHlms(Ogre::HLMS_PBS));
        Ogre::HlmsPbsDatablock* datablockPbs = static_cast<Ogre::HlmsPbsDatablock*>( 
                    hlmsPbs->createDatablock( Ogre::IdString(datablockName),
                                              datablockName,
                                              Ogre::HlmsMacroblock(),
                                              Ogre::HlmsBlendblock(),
                                              Ogre::HlmsParamVec()));

        Ogre::HlmsTextureManager::TextureLocation texLocationPbs = 
            hlmsManager->getTextureManager()->createOrRetrieveTexture( matName,  Ogre::HlmsTextureManager::TEXTURE_TYPE_DIFFUSE);
        datablockPbs->setTexture( Ogre::PBSM_DIFFUSE , texLocationPbs.xIdx, texLocationPbs.texture );
        datablockPbs->setTextureUvSource( Ogre::PBSM_DIFFUSE, 0 );


        Ogre::Vector3 vecDiffuse = datablockPbs->getDiffuse();
        Ogre::Vector3 vec(Ogre::Math::PI/vecDiffuse.x,Ogre::Math::PI/vecDiffuse.y, Ogre::Math::PI/vecDiffuse.z);
        datablockPbs->setDiffuse(vec);
        datablockPbs->setSpecular(Vector3(0.5,0.5,0.5));
        datablockPbs->setRoughness(0.2);
        datablockPbs->setIndexOfRefraction(Vector3(0.33,0.33,0.33), false);

        return datablockPbs;
    }

    //----------------------------------------------------------
    virtual void createScene(void) {
        SampleApplication::createScene();
        mCamera->setPosition(Vector3(0,10,10));
        mCamera->lookAt(Vector3(0,0,0));

        HlmsManager* hlmsManager = mRoot->getHlmsManager();
        HlmsPbs* hlmsPbs = static_cast<HlmsPbs*>(hlmsManager->getHlms(Ogre::HLMS_PBS));

        /* The Sinbad v1 mesh materials are defined Samples/Media/packs/Sinbad.material.
           The material names are defined in the v1 mesh. 

           The converted v2 meshes may fail to load since Ogre expects (v2) datablock materials. 
           Here we create the datablocks - they should be automatically picked up loading the v2 mesh.     
        */
        Ogre::HlmsPbsDatablock* dbEyes    = createPbsMaterial("Sinbad/Eyes",    "sinbad_body.tga");
        Ogre::HlmsPbsDatablock* dbBody    = createPbsMaterial("Sinbad/Body",    "sinbad_body.tga");
        Ogre::HlmsPbsDatablock* dbGold    = createPbsMaterial("Sinbad/Gold",    "sinbad_body.tga");
        Ogre::HlmsPbsDatablock* dbTeeth   = createPbsMaterial("Sinbad/Teeth",   "sinbad_body.tga");
        Ogre::HlmsPbsDatablock* dbSheath  = createPbsMaterial("Sinbad/Sheaths", "sinbad_sword.tga");
        Ogre::HlmsPbsDatablock* dbSpikes  = createPbsMaterial("Sinbad/Spikes",  "sinbad_body.tga");
        Ogre::HlmsPbsDatablock* dbClothes = createPbsMaterial("Sinbad/Clothes", "sinbad_clothes.tga");
        Ogre::HlmsPbsDatablock* dbHilt    = createPbsMaterial("Sinbad/Hilt",    "sinbad_sword.tga");
        Ogre::HlmsPbsDatablock* dbHandle  = createPbsMaterial("Sinbad/Handle",  "sinbad_sword.tga");
        Ogre::HlmsPbsDatablock* dbRuby    = createPbsMaterial("Sinbad/Ruby",    "sinbad_sword.tga");
        Ogre::HlmsPbsDatablock* dbBlade   = createPbsMaterial("Sinbad/Blade",   "sinbad_sword.tga");

        dbHilt->setSpecular(Vector3(0.3,0.3,0.2));
        dbHilt->setMetalness(0.8);

        dbHandle->setSpecular(Vector3(0.6,0.6,0.6));
        dbHandle->setMetalness(0.8);

        dbRuby->setSpecular(Vector3(0.75,0.05,0.05));


        Ogre::MeshPtr v2Mesh      = convertMesh("Sinbad.mesh");
        Ogre::MeshPtr v2MeshSword = convertMesh("Sword.mesh");

        Ogre::Item *item = createItem( "Sinbad.mesh");

        Ogre::Item *itemA = mSceneManager->createItem( "Sword.mesh",
                                                       Ogre::ResourceGroupManager::
                                                       AUTODETECT_RESOURCE_GROUP_NAME,
                                                       Ogre::SCENE_DYNAMIC );
         Ogre::Item *itemB = mSceneManager->createItem( "Sword.mesh",
                                                       Ogre::ResourceGroupManager::
                                                       AUTODETECT_RESOURCE_GROUP_NAME,
                                                       Ogre::SCENE_DYNAMIC );


        Ogre::TagPoint* tagPointA = mSceneManager->createTagPoint();
        Ogre::TagPoint* tagPointB = mSceneManager->createTagPoint();

        tagPointA->attachObject( itemA );
        tagPointB->attachObject( itemB );
        Ogre::Bone* boneA = item->getSkeletonInstance()->getBone(Ogre::IdString("Sheath.L"));
        Ogre::Bone* boneB = item->getSkeletonInstance()->getBone(Ogre::IdString("Sheath.R"));
        boneA->addTagPoint( tagPointA );
        boneB->addTagPoint( tagPointB );

        FitToBounds(item->getWorldAabbUpdated(), 1.0);
    }

    //----------------------------------------------------------
    // add location of sinbad pack
    virtual void addAdditionalHlmsResources(const Ogre::String& rootHlmsFolder)
    {
        Ogre::String dataZip = rootHlmsFolder + "packs/Sinbad.zip";
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
               dataZip,"Zip",  Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
    }

    //----------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        SampleApplication::update(timeSinceLast);

    }
    //----------------------------------------------------------
    virtual void cleanup(void)
    {
        //v2Mesh.setNull();
        SampleApplication::cleanup();
    }

    //----------------------------------------------------------
    ~SampleDemo4(){};
};


//**********************************************************************************
// Import/convert v1Mesh to v2Mesh and animate
//**********************************************************************************
class SampleDemo5 : public SampleApplication
{
protected:

public:
    SampleDemo5() : SampleApplication()
    {
    }

   //------------------------------------------------------------------------------------------------
    void createPlaneMesh(float uTile=1.0, float vTile=1.0) 
    {
        Ogre::v1::MeshPtr v1Mesh = Ogre::v1::MeshManager::getSingleton().createPlane( "MyPlane",
                                   Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
                                   Ogre::Plane( Ogre::Vector3::UNIT_Z, 1.0f ), 50.0f, 50.0f,
                                   1, 1, true, 1, uTile, vTile, Ogre::Vector3::UNIT_Y,
                                   Ogre::v1::HardwareBuffer::HBU_DYNAMIC ,
                                   Ogre::v1::HardwareBuffer::HBU_DYNAMIC  , true, true);

        Ogre::MeshPtr v2Mesh = Ogre::MeshManager::getSingleton().createManual(
                                   "MyPlane", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME );

        bool halfPosition   = true;
        bool halfUVs        = true;
        bool useQtangents   = true;

        //Import the v1 mesh to v2
        v2Mesh->importV1( v1Mesh.get(), halfPosition, halfUVs, useQtangents );
        v1Mesh->unload();
    }


    //----------------------------------------------------------
    virtual void createScene(void) {
        SampleApplication::createScene();
        mCamera->setPosition(Vector3(0,0,100));
        mCamera->lookAt(Vector3(0,0,0));

        Ogre::HlmsManager* hlmsManager = Ogre::Root::getSingletonPtr()->getHlmsManager();
        Ogre::HlmsUnlit* hlmsUnlit = static_cast<Ogre::HlmsUnlit*>(hlmsManager->getHlms(Ogre::HLMS_UNLIT));


        Ogre::HlmsUnlitDatablock* mDatablock = static_cast<Ogre::HlmsUnlitDatablock*>( hlmsUnlit->createDatablock( 
                                                                Ogre::IdString("TestData1"), "TestData1",
                                                                Ogre::HlmsMacroblock(), 
                                                                Ogre::HlmsBlendblock(), 
                                                                Ogre::HlmsParamVec()));

        Ogre::HlmsTextureManager::TextureLocation texLocation = 
            hlmsManager->getTextureManager()->createOrRetrieveTexture( "10points.png",  Ogre::HlmsTextureManager::TEXTURE_TYPE_DIFFUSE);
        mDatablock->setTexture( 0 , texLocation.xIdx, texLocation.texture );
        mDatablock->setTextureUvSource( 0, 0 );

        createPlaneMesh(4.0, 4.0);
        Ogre::HlmsSamplerblock samplerBlock;
        samplerBlock.setAddressingMode(Ogre::TAM_WRAP);
        mDatablock->setSamplerblock( 0 , samplerBlock );

        //createPlaneMesh(1.0, 4.0);
        //Ogre::HlmsSamplerblock samplerBlock;
        //samplerBlock.setAddressingMode(Ogre::TAM_WRAP);
        //mDatablock->setSamplerblock( 0 , samplerBlock );


        Ogre::Item* mRectangleItem = mSceneManager->createItem( "MyPlane",
                                     Ogre::ResourceGroupManager::
                                     AUTODETECT_RESOURCE_GROUP_NAME,
                                     Ogre::SCENE_DYNAMIC );
        Ogre::SceneNode* mSceneNode = mSceneManager->getRootSceneNode( Ogre::SCENE_DYNAMIC )->
                                            createChildSceneNode( Ogre::SCENE_DYNAMIC );
        mSceneNode->attachObject(mRectangleItem);
        mSceneNode->scale( 1.0, 1.0, 1.0f );



        mRectangleItem->setDatablock(mDatablock);
    }

    //----------------------------------------------------------
    virtual void update(double timeSinceLast)
    {
        SampleApplication::update(timeSinceLast);
    }
    //----------------------------------------------------------
    virtual void cleanup(void)
    {
        //v2Mesh.setNull();
        SampleApplication::cleanup();
    }

    //----------------------------------------------------------
    ~SampleDemo5(){};
};


int main()
{
    //SampleDemo1* s = new SampleDemo1();
    //SampleDemo2* s = new SampleDemo2();
    //SampleDemo3* s = new SampleDemo3();
    //SampleDemo4* s = new SampleDemo4();
    SampleDemo5* s = new SampleDemo5();
    s->start();
    delete s;

    return 0;
}
Last edited by dermont on Mon Sep 24, 2018 12:35 am, edited 1 time in total.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Error when trying to render mesh with texture

Post by dark_sylinc »

Hi!

The cause of your problem is in the Hlms initialization folders. It's missing the "Any" folders.

I suggest you initialize your Hlms using HlmsUnlit::getDefaultPaths & HlmsPbs::getDefaultPaths to avoid these issues. This problem used to be common and recurrent one, which is why we implemented getDefaultPaths.

If you decide to not use getDefaultPaths for some reason, take in mind that the order in which the paths are added is important.

See the latest version of registerHlms

Cheers!
Matias
Xaaq
Gnoblar
Posts: 2
Joined: Sun Sep 23, 2018 6:07 pm

Re: Error when trying to render mesh with texture

Post by Xaaq »

Thank you guys! Calling getDefaultPaths before registering HLMS solved the problem :D
Post Reply