Coder Social home page Coder Social logo

Comments (7)

paroj avatar paroj commented on May 16, 2024

[author="masterfalcon", created="Sat, 30 Mar 2013 08:15:13 +0100"]

I'm unable to reproduce this in the 1.9 branch. Can anyone else confirm?

from ogre.

paroj avatar paroj commented on May 16, 2024

[author="masterfalcon", created="Fri, 7 Jun 2013 07:04:26 +0200"]

Yeah, I believe this is fixed. You can paste this into BezierPatch.h to test.

BezierPatch.h
#ifndef __BezierPatch_H__
#define __BezierPatch_H__
#include "SdkSample.h"
using namespace Ogre;
using namespace OgreBites;
class _OgreSampleClassExport Sample_BezierPatch : public SdkSample
{
public:
    Sample_BezierPatch()
    {
        mInfo["Title"] = "Bezier Patch";
        mInfo["Description"] = "A demonstration of the Bezier patch support.";
        mInfo["Thumbnail"] = "thumb_bezier.png";
        mInfo["Category"] = "Geometry";
    }
protected:
    bool frameRenderingQueued(const FrameEvent& evt)
    {
for (unsigned int i = 0; i < 4; i++)
{
    topNode->setOrientation(Ogre::Quaternion(Ogre::Radian(Ogre::Degree(i * 90)),
     Ogre::Vector3(0, 0, 1)));
    Ogre::WindowEventUtilities::messagePump();
    mWindow->update();
    // Save to file for later comparison
    std::stringstream ss;
    ss << "render" << i << ".png";
    mWindow->writeContentsToFile(ss.str());
}
        return SdkSample::frameRenderingQueued(evt);
    }
    void setupContent()
    {
mSceneMgr->setCameraRelativeRendering(true);
mCamera->setPosition(0, 0, 200);
mCamera->lookAt(0, 0, 0);
mViewport->setBackgroundColour(Ogre::ColourValue(0., 0., .5));
mSceneMgr->setAmbientLight(Ogre::ColourValue(0.1, 0.1, 0.1));
topNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
Ogre::Light *light = mSceneMgr->createLight("light");
light->setType(Ogre::Light::LT_POINT);
Ogre::SceneNode *lightNode = topNode->createChildSceneNode();
lightNode->attachObject(light);
lightNode->setPosition(50., 0., 50.);
Ogre::Entity *cube = mSceneMgr->createEntity("cube", Ogre::SceneManager::PT_CUBE);
cube->setMaterialName("BaseWhite");
Ogre::SceneNode *cubeNode = lightNode->createChildSceneNode();
cubeNode->attachObject(cube);
cubeNode->setScale(.1, .2, .3);
Ogre::Entity *plane = mSceneMgr->createEntity("plane", Ogre::SceneManager::PT_PLANE);
plane->setMaterialName("BaseWhite");
Ogre::SceneNode *planeNode = topNode->createChildSceneNode();
planeNode->attachObject(plane);
Ogre::Entity *sphere = mSceneMgr->createEntity("sphere", Ogre::SceneManager::PT_SPHERE);
sphere->setMaterialName("BaseWhite");
Ogre::SceneNode *sphereNode = topNode->createChildSceneNode();
sphereNode->attachObject(sphere);
sphereNode->setScale(.5, .5, .5);
    }
    Ogre::SceneNode *topNode;
};
#endif

from ogre.

paroj avatar paroj commented on May 16, 2024

[author="scrawl", created="Tue, 3 Sep 2013 21:04:57 +0200"]

Pulled 1.9 today, I still get this problem when moving the camera, it looks like the (camera-space) light positions are lagging a frame behind.

from ogre.

paroj avatar paroj commented on May 16, 2024

[author="scrawl", created="Tue, 3 Sep 2013 21:07:23 +0200"]

Ah - the problem only happens when I'm attaching the camera to a bone.

from ogre.

paroj avatar paroj commented on May 16, 2024

[author="scrawl", created="Wed, 4 Sep 2013 16:21:06 +0200"]

Could you give a link to the commit that you believe fixed the original problems? That might give me a hint where to start looking why its still happening for bones.

from ogre.

paroj avatar paroj commented on May 16, 2024

[author="masterfalcon", created="Wed, 4 Sep 2013 16:50:51 +0200"]

I don't know specifically. I was just rechecking bugs and was not able to reproduce this one with the test case provided.

from ogre.

paroj avatar paroj commented on May 16, 2024

does not reproduce with 1.11.2

from ogre.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.