Jump to content

Normals when rotating 90°


AnniXa
 Share

Recommended Posts

Hey, actually i am building the geometry data of my map by myself with addvertex, addtriangle and stuff from a own geometry data type, this works great, and leadwerks made a well bether job than minib3d here.

but well i saw there is now "updatenormals()" stuff here, so i thought i cannot make my stuff rotate before putting it into the surface, because the normals are messed up then.

 

But when i rotate it with exacly 90° only, then it should be enough when i just swap 2 normal values of all verts before putting them into the surface?

 

like when rotating for 90° then just for every vertex nx = nz and nz = ny ? and such? or is it not that simple?

otherwise i would have to save 4 variants of the thingies

Whuts wroong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...