Git Product home page Git Product logo

osgrecipes's People

Contributors

adrics avatar aluaces avatar gwaldron avatar kornerr avatar xarray avatar xenonofarcticus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osgrecipes's Issues

[effectcompositor] Chaining multiple effects

Hi @xarray ,

We're attempting to use your excellent EffectCompositor snippet in OpenMW, but run into an issue trying to chain multiple effects together. I couldn't find any example of how to this (or if it's even supported), and my naive attempt of creating a hierarchy of effect nodes didn't work (only the last effect renders). Is this supposed to work or are we missing a feature? Any idea on how this would best be achieved? Here are some more details on what I tried: https://forum.openmw.org/viewtopic.php?f=6&t=4425&sid=c723cd8f0daf76d23e76dc14906a83e8#p48178
Another idea would be to write some code to "merge" two compositor definitions into one, but that doesn't seem trivial.

Thanks!

Scene freezes when combining the VDSM in osgShadow and (pe)ssao implementation in effectcompositor

Hi Rui,

I tried to make the effectcompositor work by running those examples (colorgrading.xml, ssao.xml, etc.) However, when I enabled both --shadowed argument and (pe)ssao.xml, the scene just freezed in the first frame, without producing useful debugging information.

I just used the default file osgeffectcompositor.cpp to run the examples without changing any other settings. I tried on both GTX580 and intel HD4400 (with both windows 8.1 and mac os 10 on HD4400) with osg 3.2.1 and 3.2.2 release build. Both of them exposed the same issue.

Linking osg::Program "SSAO_Combining" id=7 contextID=0
    Uniform "sceneTex" loc=0 size=1 type=sampler2D
    Uniform "viewportHeight" loc=1 size=1 type=float
    Uniform "aoTex" loc=2 size=1 type=sampler2D
    Uniform "viewportWidth" loc=3 size=1 type=float
    Attrib "gl_Vertex" loc=0 size=1
    Attrib "gl_MultiTexCoord0" loc=1 size=1

Setting up osg::Camera::FRAME_BUFFER
Created new 0x1022c4dd0 TextureObject, _numOfTextureObjects 1
glGetString(GL_RENDERER)==Intel HD Graphics 4400 OpenGL Engine
end draw() 0x102217280
draw() 0x102217280

The debugging info just stops here. The osgviewer is freezed but not crashed. But it is not responding to any events, like ESC.
Note that if I run the program without --shadowed, the ssao works fine.

Thank you for your time.

Robin

Error with computeBounds functions in the Cookbook's examples and OSG's current master branch.

In NurbsSurface and CloudBlock , the function computeBound is redefined. But with the current OSG's master brach, the build process ends in an error:

error: invalid covariant return type for 'virtual osg::BoundingBox NurbsSurface::computeBound() const'
error: overriding 'virtual osg::BoundingSphere osg::Drawable::computeBound() cost'

It seems that now Drawable has two functions for computing the bounds. The old computeBound now returns a BoundingSphere, whereas the one returning a BoundingBox is now named computeBoundingBox. Even though master isn't a stable release, I think the changes will remain for future releases.

Modifying the source code for NurbsSurface and changing computeBound to computeBoundingBox let me continue with the build.

I can make a pull request with the changes if you want. :)

Osg, AntTweakBar and shaders

Hello.

I have only one node in scene, but i have applied shaders to it using

osg::StateSet* stateset = model_node->getOrCreateStateSet();
stateset->setAttributeAndModes( program, osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE );

It seems that the ant tweak bar window appears with a lot of problems (black / white and the labels cannot be distinguished).

Is it tested if there are shaders applied to the scene ?

thank you for your time.

how to integrate openGL code inside OSG

Hi Array:
i want to integrate openGL code inside OSG., and i have read you cookbook ,in the book you said there are few ways to do this.As we know,we can usd osg::Drawable callback,and you also said we can use setUpViewInWIndow method and get graphicContex ,actually i tried use the third way .but it not work at all! can you help me do this.i really don't know how to solve this problem.
Look forward your message
thanks.

AntTweakBar with shaders

Hello. Thank you very much for your previous answers.

I closed by mistake the previous thread.

So if i create a Drawble, which calls TwDraw() and add this drawable (using a geometry) to the scene graph, will it be ok ?

Do i have to create manually the shaders which will render the tweak bar ?
Or does the TwDraw() takes care of it manually ?

thnx.

AntTweakBar: Cannot load functions

Hello.

I try to use AntTweakBar along with Opengl core.
So i call TwInit( TW_OPENGL_CORE, NULL );

The problem is that i get some errors:
Cannot load function glBlendColor
Cannot load function glBlendEquation
and many more core functions.

I had to use the following:
fprintf(stderr, "AntTweakBar: Cannot load function %s\n", g_OGLCoreFuncRec[i].m_Name);
in function: int LoadOpenGLCore()

What can i do for AntTweakBar to see these functions ?

Thank you for your time.

I can't embed OSG into web browsers

Hello,I'm trying to embed OSG into web browsers according to the cookbook,and I can register the plugin successfully,but the browser(IE ,FireFox) always breaks down .Anybody can help me?

about libGizmo

are you try If you input an orthographic projection, i can't find some way to solve it.

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.