[osg-users] OSGVisual SVN Access

2015-10-19 Thread Kevin Kennedy
Hi,

I have been trying to check out OSGVisual from its SVN with the command 
described on the OSGVisual Website's download page (I cannot post it because I 
am a new user here).

However, it is asking me for credentials for both a username and password. I 
just need to read it, as I am trying to hook up a 3D Mouse to a product. I can 
use the online trac page, but navigating through source with that is painful. 

I heard that Toben frequents these forums and I hope to get some guidance on 
how to checkout OSGVisual.

Thank you!

Kind regards,
Kevin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65374#65374





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Using a custom StateAttribute

2015-10-19 Thread Robert Milharcic

On 18.10.2015 22:58,
 Jannik Heller wrote:

To me it seems the feature advertised in docs of creating your own 
StateAttributes simply isn't possible, just because of this one function 
returning enum instead of int, which would be an easy fix. Am I missing 
something here?

Probably not. The underlying integral type for the enum Type could be (and 
probably is) int8_t. That implies that possible values for the user type should 
be within range +- 127 or the conversion to Type will be undefined.

Best Regards
Robert Milharcic
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Using a custom StateAttribute

2015-10-19 Thread Lionel Lagarde

Hi,

An attribute is identified by a type (enum Type) and a member (int). The 
StateAttribute getters and setters have the member parameter defaulted 
to 0.


I use some custom state attributes:
- I use the type as an attribute class (i.e. MATERIAL for BRDF related 
parameters...)

- I use the member of prevent conflicts with the OSG legacy attributes


On 18/10/2015 22:58, Jannik Heller wrote:

Hi,

How is one supposed to use a custom StateAttribute?

The docs say that:

"When extending the osg's StateAttribute's simply define your own Type value which 
is unique, using the StateAttribute::Type enum as a guide of what values to use"

As it is, returning a unique value simply isn't possible because the getType() 
function returns an enum:

 /** Return the Type identifier of the attribute's class type.*/
 virtual Type getType() const = 0;

Type is the enum defined here containing the default types, with no room for 
user types:


Code:

 enum Type
 {
 TEXTURE,

 POLYGONMODE,
  

 FRAME_BUFFER_OBJECT
 };




I suppose that you could choose some integer, static_cast it back to enum Type 
and then hope that will work. (it will most likely work if the enum has a large 
enough bit size, but it's technically undefined behaviour, so I can't imagine 
that's how Robert intended it to be used).

To me it seems the feature advertised in docs of creating your own 
StateAttributes simply isn't possible, just because of this one function 
returning enum instead of int, which would be an easy fix. Am I missing 
something here?

Cheers,
Jannik

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65369#65369





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] GL3 Context in MFC

2015-10-19 Thread Lincoln Nxumalo
Something I forgot to mention, I am using osg 3.4.0. Even if someone managed to 
get GL3 to work with osg 3.2.x using MFC, that would be helpful. Atleast maybe 
I could try to track the changes that caused it to stop working.
... 

Thank you!

Cheers,
Lincoln

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65378#65378





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG BOF at SIGGRAPH was a SUCCESS

2015-10-19 Thread David Glenn
Greetings all!

Just to let you all know that I got some interest in showing how to add 
excursions (a.k.a. buildings like the Boston demo that Pelican wiped up).
I know that there was a lot of questions that I had in the BOF on this and I 
did a similar map for someone else's demo and I would like to do an illustrated 
how-to video on YouTube if there is any interest in that subject! 

For others that don't know, I have done a how-to for Virtual Planet Builder 
that included how to compile the code in MS Windows using Visual Studio Express 
2010. 

... 

Thank you!

Cheers,
David


David Glenn
---
D Glenn 3D Computer Graphics Entertainment.
www.dglenn.com

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65380#65380





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org