Skip to main content
gamedev.net
🔒 Locked

Rendering a Plane

Started by Little Coding Fox Jan 5, 2007 at 10:27 AM 0 replies 850+ views
Original Post
Little Coding Fox
Little Coding Fox
Hello everyone! I'd like to be able to "see" the planes i calculate in my game engine, but i dont really know how to render one, so i'd like someone to explain to me, please, if you dont mind. Should i just make a quad oriented to the plane's normal or something? Also, i'm mainly using OpenGL, but i'll be using DirectX soon too, so the graphics API involved in the rendering isnt really important. Thank you all for your help.
smitty1276
smitty1276
If you calculated the normal, then you know at least 3 points on the plane, right? Use those points to calculate vectors to the corners of a quad that lies on the plane. The size and orientation of the quad is up to you.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.