I am trying to create a 3d room in opengl.
Making a floor in opengl.
Initially stenciling is not used so if you look by holding down the left mouse button and moving at the dinosaur from below the floor you ll see a bogus dinosaur and appreciate how the basic technique works.
Here i will show you how you might go about doing that.
The example has a mode using opengl stenciling to avoid drawing the reflection not on the top of the floor.
I want to create a 3d room with camera view set to certain angle and place a table and teapot in the room.
I am getting the right and bottom walls right but the back wall is not being displayed.
1 1 1 1 1 1 1 1 1 1 1 1 do the same with your other walls that don t show up.
So opengl has all the features needed to render fast high quality.
If you recall how we made our cubes we specified the four vertices that we wanted to color in and that was it.
Floor returns a value equal to the nearest integer that is less than or equal to x.