Hi,
you forget this
try:
Code:
class myKeyboardEventHandler : public osgGA::GUIEventHandler
{
public:
myKeyboardEventHandler(tankInputDeviceStateType* tids)
:tankInputDeviceState(tids) ;
{
}
virtual bool handle(const osgGA::GUIEventAdapter
i did an other solution reproducing this problem, with a viewer reproducing
same simplified graph with only one camera and result is the good.
Code is :
GraphComplet.h
Code:
#pragma once
#include osg\Switch
#include osg\Camera
#include osg\PositionAttitudeTransform
class GraphComplet{
Hi,
i would like to load a 3ds file, that point is ok i have my node*
but now i need an Vec3Array from this node*,
can i do it and how if possible?
that you a lot !
Cheers, Tony.
(http://www.hordes.fr?ref=litllechicken)
--
Read this topic online
Helo ,
i need an image 200-0-255 for special use. I make the following code:
Code:
im_ = new Image;
im_.get()-allocateImage(WIDTH_CAM , HEIGHT_CAM, 1 , GL_RGB, GL_UNSIGNED_BYTE);
unsigned int r = 200;
unsigned int g = 0;
unsigned int b = 255;
std::cout Color for background : r g b
Hi,
you should have a background with texture witch is the film (copy image from
camera each frame) it goes on 110 ms latence with out optimisation.
You place other item from osg above this background and that will work.
If all is done in osg you dont need your green screen.
Thanks for your answer...
I just forgot to netral color on objets witch used this texture and it take
something like 204-204-204 unsted of 0 0 0
now its works ...
Thanks you
(http://www.hordes.fr?ref=litllechicken)
--
Read this topic online here:
Hi,
I tried many thing with out success and i would like to close this step.
I use one texture to set a video on the back-screen. This is already made but
with out PBO.
How can i use PBO to Write in using memcpy?
it is usefull, i saw it on openGL pure but i wouldn't like to use it directly.
I
Hi,
I have a scene with 3 differents views. One global 600*600px, one following one
node 600*600px and one following an other node 1200*600px
the lase one rendering screen is rescale (2;1).
How i can change it to have a larger view but without rescale objects?
Thank you!
Cheers,
Anthony
Hi,
this is a realy fun function :D
can you post a simple code exemple?
do you tried it on windows XP / VISTA (joke) / Linux ?
(http://www.hordes.fr?ref=litllechicken)
--
Read this topic online here:
yes it works
Thanks you a lot :D
(http://www.hordes.fr?ref=litllechicken)
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30135#30135
___
osg-users mailing list
Hello,
i would like to use MatrixTransform to rotate an objet but i do not succed !
this object already have a scale and a translation associeted.
i would like a function like:
Code:
void Objet3D::rotateTo(double angle, double x,double y, double z){/* code */}
i tried:
Code:
Matrix
hi,
i think is it not an OSG problem but an visual problem.
You create an exe working in a special environment (with libs/dll/...) and
visual link with them.
If you want to run your application by click² on .exe you have to put every
dll/libs/... required to use your application in same
subject close i found
just use post_renderer in main windows
and pre_render and clear zbuffer and color buffer in background windows
(http://www.hordes.fr?ref=litllechicken)
--
Read this topic online here:
nobody see an error?
i think i have to use PRE_RENDERING and to do something in the rest of the
scene but what?
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29590#29590
___
osg-users mailing list
Hi,
I would like to know how to do a unmovables items (like a MatrixTransform) in
my scene using default camera.
I have two MatrixTransform, one grouping all item witch are availaible to move
and the second for unmovables items (like background or text for debug ...)
does a simple solution
Exactly what i serched, it work thanks you and sorry for this question. I
marked this example for screen shot maker but not for this point :S
Anthony
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29451#29451
Hi,
I have a texture problem. I use memcpy() to copy a buffer from a camera to the
texture. This work but the image is reverse.
How can i change it?
Thx you!
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27271#27271
Hello,
I use a texture to show an 1000x1000 px image. OSG rescale the image. I know we
can ask to the GPU to do it and that will upgrade my framerate, but how to do
this?
Thanks to you !
--
Read this topic online here:
Thanks you JP. D.
J.P. Delport wrote:
to just swap to top/bottom texture coordinates when you apply the texture.
This will work and will be easy.
Tanks a lot...
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27281#27281
Thanks for your answer, but that doesn't work.
I found the error on my own.
It was this part of code i forgot:
Code:
osg::Vec2Array* texcoords = new osg::Vec2Array(4);
(*texcoords)[0].set(0.0f, 0.0f);
(*texcoords)[1].set(1.0f, 0.0f);
(*texcoords)[2].set(1.0f, 1.0f);
(*texcoords)[3].set(0.0f,
Hi,
I would like to put an quad as background, i would like to know if it is
possible to have the required size to do this. (eg: if zFar is at 10 000 how is
height and how is height?)
thanks a lot !
--
Read this topic online here:
Hi.
I need to use an buffer to update a texture. I can do it but the bad point is
that my item is a full collored Quad and not an image. The color is the first
color of my buffer.
i can change every things but not the buffer, i receive it as a unsigned
char* and i know the width and the
Hi,
I would like to know if there is a way to know how many vertex are show on the
screen does someone know how to do simply.?
Thank you!
Cheers,
Anthony
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22979#22979
Thanks you for your help.
I triied to use this things but with out success.
I would like to get an height map but with TRIANGLES vertex.
With osg default height map is it QUADS
Is it for build my floor !
their is the real code:
Code:
osg::Node* generationTerrain(){
osg::Group *
I just found one topic about HeightField's perfomances:
http://forum.openscenegraph.org/viewtopic.php?t=4107
Skylark reply on this topic that it is better to use customed Geometry, that
would be ok for me to make geometry with TRIANGLES.
I will try it, but i still want to know how to do
I finished my own height map implementation (still height == 0 everywere but
for my tests it is all right).
Thanks you robertosfield for helping, i did not understand all what you
explain but it seems interesting, i think i will try later if i have time !
Have Fun !
--
Read
Hi, thanks for triing to help me, i found i was not due to OSG but to my visual
config witch failed.
Realy sorry for post this.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=21487#21487
___
Hi,
I am triing to install osg on windows xp machine.
I have thoses problèmes of convertion:
Tessellator.cpp
.\Tessellator.cpp(44) : error C2664: 'gluTessCallback' : impossible de
convertir le paramètre 3 de 'GLU_TESS_CALLBACK' en 'void (__stdcall *)(void)'
Cette conversion requiert
i forgot to say that i want use visual 2008 (9)
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20112#20112
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
I am trying to lunch one executable using openSceneGraph and i dont succes!!
http://cheveche4.developpez.com/tutoriels/openscenegraph/osg-02/
their is the tuto i try (i give you the second for easier look at code)
at the end of file, when i arrive to viewer.run()
(at execution)
i have:
30 matches
Mail list logo