Hi Enrico,
On Thu, 2004-03-25 at 09:42, Enrico Borrione wrote:
> here you go:
>
> DEBUG: Window 0x81825b0: GL Extensions: GL_ARB_depth_texture
> GL_ARB_fragment_program GL_ARB_imaging GL_ARB_multisample
...
> GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos
ok, so you have FP and VP, that's not he problem.
> i've cut a lot of every-frame-is-the-same info.
>
> does it actually means anything?
Yeah, but most of it just for debugging. :)
> well, i changed the graph construction
> this way:
>
> * cube map loading with 6 separate images ^_^ *
>
> cubemap->setMagFilter(GL_NEAREST);
> cubemap->setMinFilter(GL_NEAREST);
>
>
> diffCubeMap->addChunk(cubemap);
>
> diffCubeMap->addChunk(vp);
> diffCubeMap->addChunk(fp);
>
> NodePtr gruppo = Node::create();
> MaterialGroupPtr grp = MaterialGroup::create();
>
> beginEditCP(grp);
> grp->setMaterial(diffCubeMap);
> endEditCP(grp);
>
> beginEditCP(gruppo);
> gruppo->setCore(grp);
> gruppo->addChild(sfera);
> endEditCP(gruppo);
>
> scene=gruppo;
>
> but still no textures in my scene. What s wrong with it??
Not sure. How do you generate the texture coordinates for the cubemap?
Cubemaps need 3D texcoords to work right, or use texgen. Take a look at
testCubeReflectionRender.cpp in Source/System/State. Can you try if that
works?
Hope it helps
Dirk
-------------------------------------------------------
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