[pythian] Re: CODE - TriStrips

  • From: "kk" <krauspe@xxxxxxx>
  • To: <pythian@xxxxxxxxxxxxx>
  • Date: Mon, 1 Jul 2002 21:55:28 +0200

> So yes, we'll need to support both passes and layers and combinations of
> these.  This is not difficult, fortunately, but it will take code in
> both the panel rendering and shaders.  I've just added some code to CVS
> for better rendering of panels, and this well help you.  I added
> "DrawVertices" and "DrawNoShader" methods to TPanelTris.  In the Draw
> method of TPanelTris, you can check the shader to see if it has many
> layers and switch textures and render the vertices multiple times (if
> necessary).  Actually, I think the shader already has all the code to do
> this since you can bind a particular texture layer.

I will check this... anyway, I have done the rendering part and I tried to
save it to a jpg (for debugging)... it really works!. Also 90deg. rotation
if needed. Now I need to do the shader replication and then see how it works
in engine.

-kk


Other related posts: