[osg-users] Line curve

2008-06-02 Thread Johan Johnsson
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

[osg-users] Multitexturing using shader

2008-04-10 Thread Johan Johnsson
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

Re: [osg-users] Multitexturing using shader

2008-04-10 Thread Johan Johnsson
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

[osg-users] Fade effect using the osg::BlendFunc()

2008-02-07 Thread Johan Johnsson
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

[osg-users] EventTraversal

2007-12-07 Thread Johan Johnsson
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

Re: [osg-users] EventTraversal

2007-12-07 Thread Johan Johnsson
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

[osg-users] osg multithreading doc.

2007-12-06 Thread Johan Johnsson
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

[osg-users] 2 sided textures?

2007-11-28 Thread Johan Johnsson
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ø

Re: [osg-users] Occluding techniques

2007-11-27 Thread Johan Johnsson
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

Re: [osg-users] Occluding techniques

2007-11-27 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-23 Thread Johan Johnsson
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

[osg-users] utf-8?

2007-11-21 Thread Johan Johnsson
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

Re: [osg-users] utf-8?

2007-11-21 Thread Johan Johnsson
. 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

Re: [osg-users] utf-8?

2007-11-21 Thread Johan Johnsson
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

[osg-users] Struct / class containing current FPS

2007-11-13 Thread Johan Johnsson
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

[osg-users] getScene()-getUpdateVisitor()

2007-11-07 Thread Johan Johnsson
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

Re: [osg-users] Frustum specialists look here.

2007-10-23 Thread Johan Johnsson
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

Re: [osg-users] Frustum specialists look here.

2007-10-22 Thread Johan Johnsson
, 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

Re: [osg-users] Frustum specialists look here.

2007-10-22 Thread Johan Johnsson
/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

Re: [osg-users] Frustum specialists look here.

2007-10-19 Thread Johan Johnsson
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

Re: [osg-users] Frustum specialists look here.

2007-10-18 Thread Johan Johnsson
,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

[osg-users] Frustum specialists look here.

2007-10-18 Thread Johan Johnsson
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

[osg-users] Window resize

2007-10-15 Thread Johan Johnsson
. 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

Re: [osg-users] Window resize

2007-10-15 Thread Johan Johnsson
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

[osg-users] fatal error LNK1120: 3 unresolved externals

2007-09-20 Thread Johan Johnsson
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)

Re: [osg-users] mirrorize a slave with a offset from the master camera

2007-09-11 Thread Johan Johnsson
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

Re: [osg-users] mirrorize a slave with a offset from the master camera

2007-09-11 Thread Johan Johnsson
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

Re: [osg-users] don't show statistics on screen? (compositeViewer)

2007-08-30 Thread Johan Johnsson
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

Re: [osg-users] don't show statistics on screen? (compositeViewer)

2007-08-30 Thread Johan Johnsson
, 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

Re: [osg-users] don't show statistics on screen? (compositeViewer)

2007-08-30 Thread Johan Johnsson
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

[osg-users] how to set frustum on camera slaves

2007-08-09 Thread Johan Johnsson
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