liu.yan Posted May 9, 2017 Posted May 9, 2017 If TAA in render options is enabled, the solid sphere rendered by Visualizer::renderSolidObject will flicker violently. The renderSolidObject is called every time when the world updates or renders. What can we do to solve this problem?
silent Posted May 10, 2017 Posted May 10, 2017 liu.yan Is there full source code available for the stable reproduction?Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
liu.yan Posted May 10, 2017 Author Posted May 10, 2017 like this: int CLBUNAppWorldLogic::init() { Unigine::Console::get()->setInt("render_antialiasing", 2); return 1; } int CLBUNAppWorldLogic::render() { Unigine::Visualizer::get()->renderSolidObject(pCurrentObject, Unigine::Math::vec4(0, 1, 0, 1)); return 1; }
silent Posted May 10, 2017 Posted May 10, 2017 What is pCurrentObject? Is there .mesh file available for that geometry? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
liu.yan Posted May 10, 2017 Author Posted May 10, 2017 Use the default material ball in default project. I mean, use the default material ball shown in the picture below, you would reproduce the problem.
silent Posted May 11, 2017 Posted May 11, 2017 liu.yan Thanks, I've successfully reproduce this issue. Flickering is happens because real geometry is interfering with visualizer. Maybe disabling rendering of the object will help in your case? For example: mesh_0 = ObjectMeshStatic::create("material_ball.mesh"); mesh_0->release(); mesh_0->setTransform(translate(Vec3(-2.0f, 0.0f, 0.0f))); mesh_0->setMaterial("mesh_base", "*"); mesh_0->setViewportMask(0, 0); Unigine::Visualizer::get()->setEnabled(1); Unigine::Visualizer::get()->renderSolidObject(mesh_0->getObject(), Unigine::Math::vec4(0, 1, 0, 1)); In that case there will be no flickering and visualizer will display correctly. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
liu.yan Posted May 15, 2017 Author Posted May 15, 2017 The code fragment you had provided does solve the problem, thanks. In TAA, we still can't render mesh and Visualizer solid together, will you solve that in future version?
silent Posted May 15, 2017 Posted May 15, 2017 liu.yan It's hard to say right now. The issue is not critical and there is a simple workaround available. In case of any updates I will surely let you know. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
liu.yan Posted July 12, 2017 Author Posted July 12, 2017 Morning, silent: Our next version development is about to start. Is it possible that this problem shall be solved in your recent release? I am reluctant to bother you on this unimportant problem, but our product manager had developed various applications based on this issue.
silent Posted July 12, 2017 Posted July 12, 2017 liu.yan I'm afraid, this issue is still persist in the latest update. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts