Hi Wojtek ,Thank you for your reply,I have tried GL_RGBA16F_ARB instead like
that "texture0->setInternalFormat(GL_RGBA16F_ARB);",but it seemed like not
valid.The value still is 0..1 range.Are there other solutions? Thank you.
--
Read this topic online here:
Hi,
I think internal format GL_RGBA16 normalizes your float values to 0..1
range. Try GL_RGBA16F_ARB instead.
Cheers,
Wojtek Lewandowski
2016-10-04 17:00 GMT+02:00 liu ming <81792...@qq.com>:
> Hi,
>
> I want to send a set of data to geometry shader with osg::texture,I've
> got a problem:in
Hi,
I want to send a set of data to geometry shader with osg::texture,I've got a
problem:in the geometry shader,I can use glsl function"texelFetch"to get the
texel's values,and use the values to draw a triangle,But the values is not
correct. the values always are "0" or "1",not the
good :) .. Glad you found your own way !
Cheers,
Nick
On Tue, Oct 4, 2016 at 4:14 PM, Mary-Ann Zorra wrote:
> Hi Nick,
>
> I decided to restart this part, and reimplement the whole code.
> Fortunately it worked fine, and my program behaves as expected. I have no
> idea,
Honestly I usually derive from osgGA::GUIEventHandler to handle mouse events.
Cheers,
Gianni
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68849#68849
___
osg-users mailing list
Hi guys,
I have some problems with passing an std::vector to my shader as a uniform, and
I was wondering, if anyone has some idea, how to do this. So my issue is that
an std::vector of a custom defined data type have to get bound to the shader. I
have an osg::UniformBufferObject and I would
Hi,
I reverted the y axis by adjusting the camera projection matrix:
Code:
camera->setProjectionMatrixAsPerspective(30.0f,
static_cast(traits->width) / static_cast(traits->height), 1.0f,
1.0f);
auto originalProjection = camera->getProjectionMatrix();
osg::Matrixd reverseYMat;
gambr wrote:
> Hi Meldryt,
> I worked with osgWidget in the past. I move a widget with
> left_mouse+mouse_move and resize it with central_mouse_button+mouse_move.
> I also tried to show a contextual menu clicking with right mouse button on it.
> Now I'm on OSG 3.4.0 but moved recentrly from OSG
Hi Uma,
There is no model attached.
Without giving us a model that shows this behavior and some basic
information on your OSG-Version, build environment etc. it is hard to
guess what is going on.
Most likely the ply-reader produces the error, so please try to attach
the model so we can
Hi,
I have tried a simple program in C++ to render 3d model using Osg Viewer.
When I am trying to run the code I am getting "vector script out of range error
" for some 3d model.
This is my code.
/*osg header files */
int main(int argc,char**argv)
{
/*using ref_ptr*/
Hi,
Sorry, I found my mistake. :)
I have to use osg::ref_ptr loadedModel =
osgDB::readNodeFiles(arguments);
//not the readRefNodeFiles.
thanks all .
...
Thank you!
Cheers,
Inna
--
Read this topic online here:
Hi all ,
In my code , I have been using the osgDB::readRefNodefiles. When I do compile
the code it throwing me an error saying :
Error 2 error C2039: 'readRefNodeFiles' : is not a member of 'osgDB'
Error 3 error C3861: 'readRefNodeFiles': identifier not found
12 matches
Mail list logo