hiya all OSG users,
i am again working on my project. Despite all the hints collected here,
i am still getting no texture output...
i gave a look at the cubemap examples, like dirk suggested me and now i
have some new questions: looking at the two examples (cube texture and
cube reflection) i noticed some little differences, a bit confusing
me...
1) in the texture example, the cube map is created, but actually not
linked to any Geo. same thing for the texgen stuff. Simply in the
display routine, every chunk is activated calling
chunkptr->activate(drawaction). Is it the same that it happens in
opengl, where i create textures and then i just bindtexture them on the
fly?
2) in the reflection example the cubemap is just specified as a
gl_reflection_map (no image given?!). After all a
traverse(scene,
osgTypedFunctionFunctor1CPtrRef<Action::ResultE, NodePtr>
(setGeoMaterial));
is called. is it the same that traversing manually the scene and
->setMaterial for every geo in the tree??
final question) when i use a ChunkMaterial, in the moment i add a chunk
i am actually ->activating it, right? No need for an explicit call of
cubetexturechunk->activate, right?
thanks 4 any help,
enrico
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users