Foros - Stratos

Proyectos => Jad Engine => Mensaje iniciado por: plonkman en 17 de Mayo de 2006, 10:05:44 PM

Título: Max / Min Z / Colour
Publicado por: plonkman en 17 de Mayo de 2006, 10:05:44 PM
 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.
Título: Max / Min Z / Colour
Publicado por: SlykDrako en 18 de Mayo de 2006, 03:08:09 PM
 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
Título: Max / Min Z / Colour
Publicado por: Haddd en 18 de Mayo de 2006, 03:32:43 PM
 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...
Título: Max / Min Z / Colour
Publicado por: plonkman en 18 de Mayo de 2006, 03:33:54 PM
 Cheers guys!

Super stuff.

Tony. (ole)