Jump to content
  • Advertisement

Andre Rogers

Member
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

160 Neutral

About Andre Rogers

  • Rank
    Member

Personal Information

  • Interests
    Art
    Design
    Programming
  1. Given that I need to perform        Normal = mat3(transpose(inverse(model))) * normal;   this per vertex normal to efficiently render a model. My current scenario, is that I am importing a model via assimp, and loading it into a vertex and element buffer object. Having now built the VAO how do I update the normals before I bind the model to be rendered.    Do I have to use glBufferSubData or glMapBuffer? Is there a simpler solution where I can isolate the model's normals from the rest of the model's VAO within another VAO and use both attribute objects to render the model? Could I maybe create a texture with the pre-calculated normals and pass that?   Am not sure what to do here, any help would be appreciated.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!