Simon Haegler wrote:
> osghello
>
> how do i render objects with wireframes on top of the shaded polygons? i 
> tried 
> to add two polygonchunks to my material, one with GL_FILL, the other with 
> GL_LINE... this does not work, the last chunk added always determines the 
> rendering, how can i combine these two chunks? do i need a multipass 
> material? 
> or do i need two make two passes in my draw method, with material switching 
> in 
> between?
>
> any hack is appreciated! you know, eurographics is on our doorsteps...
Multipass is probably the simplest way to do it. You do need to render 
it twice with different materials, whichever method you choose. Don't 
forget to use some z-bias for the lines to avoid z-fighting as well.

(Since statechunks have slots associated with them, adding a new chunk 
will invoke the autoreplace function and replace the previous chunk. For 
TextureChunks/TextureTransformChunks, you can specify the slot to set 
which texture unit you like. For PolygonChunk, this is pointless as 
there can be only one.)

Cheers,
/Marcus


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to