Which is the easiest way to draw line curves i osgviewer.
Im developing a function that draw a function from startPos to endPos
(vec3) both. With a math function.
Any hints? .. about functions available?
___
osg-users mailing list
Hi !
I am developing a shader and need to have acess to the optional textures
which is affected by the coordinates in tgl_TexCoord[1].
How do i do this, how do i send the second texture from the ive file
(the shadow map) into the shader, or how do i reach it in the shader if
its passed in
Thank you very much for this awsome help dude !
Everything works as intended now ! :)
Mr. Johan Johnsson
Software Engineer / Computer Game Programmer
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no.
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL
to
define the alpha or transparacy using this osg::BlendFunc?, its actually
only a model i load, which i want to fade (its a common bitmap) in and out
over 2 seconds.
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
What is a EventTraversal? resp EventHandler?, do EventHandler have any
thread requirements?
Can I assume that the EventTraversal is only called on a single thread,
and always at the same thread?
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
On Fri, 07 Dec 2007 10:20:57 +0100, Johan Johnsson [EMAIL PROTECTED]
wrote:
What is a EventTraversal? resp EventHandler?, do EventHandler have any
thread requirements?
Can I assume that the EventTraversal is only called on a single thread,
and always at the same thread?
and one more thing
documentation regarding this topic whould helpfulll to me.
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi
Does OSG supports 2 sided textures? for example if i use a single plane
and put a texture (with 2 sided texture box ON), will the back part of the
single plane appear? , this shouldnt have anything to do with backfacfe
culling.
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
a high level
what you are trying to do in terms of doing occlusion testing, as
there are many ways to do occlusion testing, one can't really answer
what would be the best technique without knowing more about the
problem you are wanting to solve.
On Nov 27, 2007 12:27 PM, Johan Johnsson [EMAIL
compute the lighting for the pixels actually on screen, rather than
for every fragment.
Robert.
On Nov 27, 2007 12:54 PM, Johan Johnsson [EMAIL PROTECTED] wrote:
I use below code to see if the vertex is occluded or not by objects
infront of it. This is apart of the lighting check to see
I think the problem is in visual studio to be honest, i know i can save
the cpp as encoded types maybe i save it to wrong unicode type?
On Fri, 23 Nov 2007 12:54:41 +0100, Alberto Luaces [EMAIL PROTECTED] wrote:
El Friday 23 November 2007 12:29:06 Johan Johnsson escribió:
1. What
this unicode
thing works :) It might help you pinpoint the exact source of your
problem.
Good luck
Thibault
On Nov 23, 2007 1:18 PM, Johan Johnsson [EMAIL PROTECTED] wrote:
I think the problem is in visual studio to be honest, i know i can save
the cpp as encoded types maybe i save
On Fri, 23 Nov 2007 11:59:44 +0100, Alberto Luaces [EMAIL PROTECTED] wrote:
El Friday 23 November 2007 11:20:31 Johan Johnsson escribió:
yes i have copied them from the characther map in arial
Out of curiosity:
1. What is the size in bytes of the arial.ttf file you are
using?
359 kb
2
yes i have copied them from the characther map in arial
On Fri, 23 Nov 2007 11:10:28 +0100, Mario Valle [EMAIL PROTECTED] wrote:
Does Arial.ttf have those arabic characters?
Try change font file.
Ciao!
mario
Johan Johnsson wrote:
damnit it worked , but then i incidentaly removed
can save the code files in different encoding methods, atm i save
them as Unicode(big-endian).
On Wed, 21 Nov 2007 13:28:58 +0100, Johan Johnsson [EMAIL PROTECTED]
wrote:
tnx very much -the problem was the font.
On Wed, 21 Nov 2007 13:24:47 +0100, Thibault Genessay
[EMAIL PROTECTED
Can the scenegraph represent utf-8 on the screen?
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org
.
Lلْعَرَبيّة
I have a similar problem in the past and solved it using wchar_t
strings in my source files, and using a different font that actually
had the glyphs.
Hope this helps
Thibault
On Nov 21, 2007 1:15 PM, Johan Johnsson [EMAIL PROTECTED] wrote:
I may be doing this wrong, because
10:50:39 +0100, Robert Osfield
[EMAIL PROTECTED] wrote:
On Nov 21, 2007 9:04 AM, Johan Johnsson [EMAIL PROTECTED] wrote:
Can the scenegraph represent utf-8 on the screen?
You mean does osgText support UTF-8 encoding of strings? The answer
is yes, have a look at osgText::String for details
or
anything bounded to the osgViewer::viewer that contains this. If so.. name
of the class?
Tnx for answer.
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
___
osg-users mailing list
osg-users
to class/struct/union
Tnx for a quick answer.
--
Mr. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg
On Tue, 23 Oct 2007 09:21:47 +0200, Johan Johnsson [EMAIL PROTECTED]
wrote:
ahh didnt help, something more is missing i come up with a new hint tho.
if i comment out this or have it going the resault is all the same:
//camera-setProjectionMatrixAsFrustum(left, right, bottom, top,
isnt
, not doing the equivilant
on the OSG side i.e.
camera-setProjectionResizePolicy(osg::Camera::FIXED);
Robert.
On 10/19/07, Johan Johnsson [EMAIL PROTECTED] wrote:
i did like this at OSG version 1x (this gets a correct frustum)
Producer::Camera* camera = new Producer::Camera();
// Set frustum
/07, Johan Johnsson [EMAIL PROTECTED] wrote:
unfortually, have i no time to laborate with the osg examples atm.
I have found out that its ONLY on the slaves the frustum gets wierd.
the master camera always shows the correct frustum.
camera-setProjectionResizePolicy(osg::Camera::FIXED);
above
time that osgViewer
will change the projection matrix is when the window is resized.
Could you modify one of the OSG examples to reproduce this problem and
then post this so others can have a look at it.
Robert.
On 10/18/07, Johan Johnsson [EMAIL PROTECTED] wrote:
osgviewer
On Thu, 18 Oct
,ch.frustum.farClipping);
// offset comes further down.
On Thu, 18 Oct 2007 09:39:53 +0200, Adrian Egli [EMAIL PROTECTED] wrote:
Hi Johan,
quite hard to estimate what's going wrong, how do calc the projection
matrix, near far clipp, viewmatrix, and so on.
/adegli
2007/10/18, Johan Johnsson [EMAIL
Hei !
I dont know if its actually possible to tell exactly where the difference
is when comparing two viewfrustums.
We did get another frustum after the migration from osg1x to osg2x.
I attach 2 pictures showing them. (they get exactly the same values, from
a config file)
--
Mr. Johan
. Johan Johnsson
AutoSim AS, Strandveien 106, 9006 Tromsø
Visit us at http://www.autosim.no
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
PROTECTED] wrote:
Hi Johan, HI Adrian
Can you give more info on your platform?
Can you develop why now the dimension is locked?
Which method did you use ?
David
2007/10/15, Johan Johnsson [EMAIL PROTECTED]:
On Mon, 15 Oct 2007 11:40:53 +0200, Adrian Egli [EMAIL PROTECTED
get 3 linker errros after a migration from osg.1 to osg.2, any clue of
where the problem can be ?
visual error LNK2001: unresolved external symbol public: virtual void
__thiscall osgText::Text::drawImplementation(class osg::State )const
([EMAIL PROTECTED]@osgText@@[EMAIL PROTECTED]@@@Z)
On Tue, 11 Sep 2007 10:40:31 +0200, Robert Osfield
[EMAIL PROTECTED] wrote:
On 9/11/07, Johan Johnsson [EMAIL PROTECTED] wrote:
Hello !
I want to mirrorize a specific slave counted from the mastercameras
view.
At the moment i use a offset matrix
addSlave(camera.get(),osg::Matrixd
On Tue, 11 Sep 2007 11:10:09 +0200, Robert Osfield
[EMAIL PROTECTED] wrote:
On 9/11/07, Johan Johnsson [EMAIL PROTECTED] wrote:
You just need to scale the y axis by -1, then flip the front face to
prevent the wrong faces from being culled.
addSlave(camera.get(),osg::Matrixd::scale(1,-1,1
has been done
virtue of the new Renderer class that has much of the stats embedded
in it, and CompositeViewer now uses this. So if you want to dive in
and add stats this is the place to start.
Robert.
On 8/27/07, Johan Johnsson [EMAIL PROTECTED] wrote:
I am using CompositeViewer to represent my
, Johan Johnsson [EMAIL PROTECTED] wrote:
I changed the inheritance from compositeviewer to osgViewer::view
instead.
although i have some small issues with the statistics rendering. it dont
seem to print out the framrate, neither the moving stats bar.
i attach a small pic of it.
StatsHandler
Framrate itself?
On Thu, 30 Aug 2007 11:38:28 +0200, Robert Osfield
[EMAIL PROTECTED] wrote:
Hi Johan,
I just don't know what might be up. Does osgviewer work OK? What you
are doing with your subclassing?
Robert.
On 8/30/07, Johan Johnsson [EMAIL PROTECTED] wrote:
I dont use compositeviewer
Hey !
I work on a project where i need to setup a few slaves to the mastercamera,
and i suffer a slight problem during this operations.
The viewport and the different offsets is no problem, however the frustum
is not get the values that i
send in as parameters to
35 matches
Mail list logo