chadthecoder / graphicsProject

Graphics project using SDL2, ASIO OPENGL, GLEW, WebGL, miniaudio, stb (Only stb_image.h right now), assimp (implementing now), PerlinNoise from Reputeless, and GLM. Following multiple tutorials to learn how to code graphics in C++.
0 stars 3 forks source link

Not properly drawing cube in GLEW branch. #34

Closed chadthecoder closed 8 months ago

chadthecoder commented 9 months ago

Possibly since I am not rendering counter clockwise? How to render 3D objects? Draw out pyramid on paper and see if I can make sense of why cube isn't working?

chadthecoder commented 9 months ago

Texture and color cords wrong? Figure out why they were what they were in pyramid?

chadthecoder commented 9 months ago

https://learnopengl.com/Getting-started/Coordinate-Systems

Check out this page about drawing cubes. Draw on paper to see if I can make sense of why? Adapt to my code and use index buffer?

chadthecoder commented 9 months ago

If a square is turned, is counter clockwise still counter clockwise?

chadthecoder commented 9 months ago

fixed cube rendering, but texture is still off. Texture and color coords are probably wrong.

chadthecoder commented 8 months ago

Cube rendering issue the new way, need to render cube with brick texture

chadthecoder commented 8 months ago

Had to rewrite cube function. Rewrite again later to make more efficient?