Hi,
Here is code to reproduce crash:
code
#include osgDB/ReadFile
#include OpenThreads/Mutex
#include OpenThreads/Thread
#include OpenThreads/Condition
static OpenThreads::Condition s_cond;
static OpenThreads::Mutex s_mtx;
class ReadThread : public OpenThreads::Thread
{
public:
ReadThread()
Hi
You should read gles2 spec if you'll make apps running with it. There are no
builtins gl_FrontColor and gl_Color in gles 2. Use your own varyings.
Cheers.
05.06.2012, 00:49, Preet prismatic.proj...@gmail.com:
Hiya,
I managed to compile and deploy a small OSG test application on the
Hi Robert,
I tried to reproduce this problem on linux but without luck.
gcc use more complex method of initialization of static variables at
function scope.
So problem is only with MSVC 2008 (not sure about newer versions).
Mikhail.
05.06.2012 10:39, Mikhail I. Izmestev написал:
Hi,
Here
Hi,
You original asked for vertices... now you want triangles... is that
because you now know how to get the vertices, or is it that you now
know what you want more precisely??
I knew how to get the vertex array, but the problem is that I don't know how to
get the vertices for each
Hi Vishwa,
You still don't explain what you mean by a semi-transparent background
colour, given what replies you've already had and you've tried it
suggest to me that you really are talking about something different as
what you are asking really doesn't make sense in an normal graphics
Hi Bob,
The OSG's DrawElements* encapsulate OpenGL's glDrawElements call, so
it might be best if you just looked up OpenGL documentation online in
books to see how the indices in the DrawElementsUByte/UShort map to
triangles.
Another alternative to looking at the low level primitives is to use
Hi,
MSVC not support thread safe initialization of static variables at
function scope.
GCC by default generate thread safe code, but it can generate code like
MSVC by passing -fno-threadsafe-statics option.
So you can reproduce crash if add -fno-threadsafe-statics option to
CXX_FLAGS.
Hi,
First Thank you very much for OSG Android.
I am new to Android-ndk. I have a library (QCAR ) for AR. I am trying to use
OSG as a render engine for QCAR. So I want to include OSG in QCAR program. I
include some of OSG includes in my C++ program. When I compile I am getting
error. My
Hi,
In the variable OSG_ANDROID_DIR, you must put the directory path that contains
the osg install
Thank you!
Cheers,
Rghima
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48049#48049
___
I thin you can try to set the clear mask alpha channel to a value of 0.5
cheers,
John
On Jun 4, 2012, at 9:49 PM, shekhar vishwa vishwa.shek...@gmail.com wrote:
Hi,
Thanks for help. Now I can make the camera background as transparent. What
parameters need to set the camera background
I tried to install the latest osgPPU version I found today, using cmake 2.8.4
and Visual Studio 10, but when i started to configure the folder I got the
following cmake-error:
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
On 06/05/2012 05:50 AM, Bob Slobodan wrote:
Basically yes. My problem is that I don't really get how the tesselation works
and how to create new polygons using the geometry modified by the tessellation.
I thought that the tesselation would simply add new PrimitiveSet such as
DrawArrays and
Hi,
I am trying to draw a shape that is basically a hollow box with a tick mark on
one side extending into the center (screenshot attached). I attempted to do it
by drawing QUAD_STRIPS for the outer and inner faces, and QUADS for the top and
bottom faces. My problem is, seams are clearly
Hi,
Another alternative to looking at the low level primitives is to use a
functor like the TriangleIndexFunctor or TriangleFunctor. Have a
search through the OSG code base to see places where this used.
Exactly what I was searching for.
Thanks a lot !!!
Cheers,
Bob
--
You either need to write your own GLES2 shader (that's GL2 you have
above) or use a shader gen tool that will generate one for you on the fly.
Where did the shader, above, come from?
--
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training •
Hi, Michael
Your normals is not correct. With that geometry you should have normals like
(0,0,+\-1) for top-bottom, and (0,+\-1,0) with (+\-1,0,0) for sides, i dont get
where you got those numbers for normals.
Cheers,
Sergey.
05.06.2012, 18:09, Michael Schanne michael.scha...@gmail.com:
Hi,
Greetings
I have a custom camera object that I use to store position and direction in a
vec3 and quat and a matrixd which should contain both. Due to the nature of
the software I have to interact with using the osg camera is not an option.
So, once I have the position and rotation I am
My program has 4 render to texture cameras that get composited into the frame
buffer via custom shader. I want to make a screen capture of one of the
texture as a response to an event.
Attaching an Image to the camera works, but it copies the data to system memory
after every frame. Not just
Try invert the matrix before attaching it to the camera. A common mistake is to
think about rotating the camera's view instead of rotating the world into the
view of the camera.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48060#48060
On Tue, Jun 5, 2012 at 12:17 PM, Chris Hanson xe...@alphapixel.com wrote:
You either need to write your own GLES2 shader (that's GL2 you have above)
or use a shader gen tool that will generate one for you on the fly.
Where did the shader, above, come from?
It was automatically genereated
Hi all,
Hope this is a simple question, in OSG is there a simple way to move the camera
so it is viewing the extents of a particular geode in the current scene (e.g.
the user selects an object and the camera zooms to it) ?
Even better would be is it possible to calculate the new camera position
I think Vishwa wants to do something similar to what I am currently doing in
iOS. I set transparent background in order to see some layer that is below,
which in my case is the image coming from the videocamera. Anyway it would be
helpful if Vishwa you can explain us better the purpose of your
Hi,
I am trying to implement the multiple views in same window. Each view
render the diffrent models.User can set the view position at run time by
mouse dragging. If dragged view is overlapped with any view then dragged
view backgroud should be semi-trasparent.
Please suggest me to resolve this.
Hi,
yes this function is called node tracking. You can track a node and configure
which degrees of freedom your camera should provide.
There is a default Nodetracker-Manipulator in OSG. You just have to set the
Node you want to track.
Cheers,
Torben
--
Read this topic
24 matches
Mail list logo