[Opensg-users] Compilation error

2003-12-09 Thread Polina Kondratieva
Hi all, I've got some strange error while trying to compile example file in the directory Tutorials. I've successfully added two New Folders with two Materials into the OpenSG project after the following steps: 1) put New Folder into the Source/Experimental, 2) Remove from the all includes 'O

[Opensg-users] Memory leak in DrawAction ?

2003-12-09 Thread Martin Schmidt
Hi all, Is is possible that the DrawAction creates memory leaks ? In our application we load big vrml models with our own vrml-importer. We do the rendering with the DrawAction (dont ask me why). The application runs under Windows. I am using the task manager to watch memory consumption. Exp

Re: [Opensg-users] Efficient Texture change

2003-12-09 Thread Dirk Reiners
Hi Daniel, hi Andreas, > // Change image and texture. > unsigned int *dst = (unsigned int *) _image->getData(); > // now copy some pixels into the image > *dst++ = ... > > beginEditCP(image); > endEditCP(image); Hmm, not a perfect example. You should call beginEditCP before the changes, as it

Re: [Opensg-users] Efficient Texture change

2003-12-09 Thread Andreas Zieringer
Daniel Grest wrote: Hello, I have a rather short question: How to exchange Textures on geometries efficiently? I tried it with the SimpleTextureMaterial by just setting a new image. Thats horrible slow :( I guess there is a better way. Maybe an example? Thanks in advance, Daniel Grest Hi

[Opensg-users] StreamSocketConnection and ClusterServer: Can I instantiate one w/ an IP address as an argument

2003-12-09 Thread opensg . * . icemax
First I would like to thank the list for help with the more general version of this question last week, but now that I've found the right classes to use and all, I have a few more questions. I am trying to modify the 12ClusterServer tutorial to connect to a single IP instead of broadcast to the

[Opensg-users] Efficient Texture change

2003-12-09 Thread Daniel Grest
Hello, I have a rather short question: How to exchange Textures on geometries efficiently? I tried it with the SimpleTextureMaterial by just setting a new image. Thats horrible slow :( I guess there is a better way. Maybe an example? Thanks in advance, Daniel Grest ---

Re: [Opensg-users] lighting problems with VRML pointsets

2003-12-09 Thread Andreas Zieringer
Christoph Fuenfzig wrote: Dirk Reiners wrote: Hi Akos, Sorry, been there tried that. :) The problem is the following: the experimental VRML loader doesn't assign Materials to the Geometries loaded, but uses MaterialGroup Nodes -- whatever they might be (couldn't find any docs on that)

Re: [Opensg-users] lighting problems with VRML pointsets

2003-12-09 Thread Christoph Fuenfzig
Dirk Reiners wrote: Hi Akos, Sorry, been there tried that. :) The problem is the following: the experimental VRML loader doesn't assign Materials to the Geometries loaded, but uses MaterialGroup Nodes -- whatever they might be (couldn't find any docs on that). Just

Re: [Opensg-users] TextureShader settings in TextureChunk

2003-12-09 Thread Dirk Reiners
Hi Manfred, > Hi Folks, > > I have just found a little strange issue in the current snapshot > with respect to the NV texture shader functionality. > > Currently texture shaders are used by setting a shader op different > from NULL in the texturechunk. The problem occured when i was providing

Re: [Opensg-users] lighting problems with VRML pointsets

2003-12-09 Thread Akos Balazs
Hi Dirk, On Tue, 9 Dec 2003, Dirk Reiners wrote: > the solution is to use an unlit material. VRML defines that for points, > but OpenSG currently doesn't automatically do it, because it's hard to > do if materials are shared. So just traverse the scene, make the > Geometry's material unlit and th

Re: [Opensg-users] wrapping a node with a core

2003-12-09 Thread Dirk Reiners
Hi Chad, > In light of the recent makeCoredNode convenience function, another > useful one would create a node and set its core to an already created > core: > > NodePtr makeCoredNode(NodeCorePtr core) { > NodePtr n = Node::create(); > > beginEditCP(n, Node::CoreFieldMask); >

Re: [Opensg-users] lighting problems with VRML pointsets

2003-12-09 Thread Dirk Reiners
Hi Akos, > Hi guys, > > I have a VRML file which defines a pointset of ~3M points. Each point has > its own colour. Using Gerrit's experimental VRML loader I can load it just > fine, however, the colours are only correct when looking from above the > model (using the SimpleSceneManager). When