Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Max / Min Z / Colour

Iniciado por plonkman, 17 de Mayo de 2006, 10:05:44 PM

« anterior - próximo »

plonkman

 Hi guys, how is everyone?

How can I set the max / min z range and clear colour of the back buffer?

I tried "Haddd.Video.RenderTargets.Primary.viewport.MaxZ = X" but that doesn`t work.

I know I can just set a coloured sky box for back colour but it`s more efficient in the clear back buffer call..

Thanks,

Tony.

SlykDrako

 Hi, sorry for my english.

I think what you're looking for is this

camera.FarPlane = X;
camera.NearPlane = X;

For the clear colour I don't know :P, sorry

Haddd

 I think i removed it because of the way i was doing the render pipeline. But i think the color is at: Haddd.Video.Render.Color

About z Min/max, i have not work with it, so, it's not implemented...

plonkman

 Cheers guys!

Super stuff.

Tony. (ole)