Jump to content

how to render upside down


ILuvYouCompanionCube

Recommended Posts

I got this idea after today's talk about Dinnerbone. I got this idea that it's probably quite easy to render something upside down. You probably wouldn't need a whole new renderer or to redefine lots of things on the one you have. I can almost bet it's just a matter of setting one or 2 GL11 thingies or whatever. And your model gets upside down. That would be useful under a lot of circumstances.

 

Does anybody know if I'm right, and if I am, what are the thingies to set to render something upside down?

Link to comment
Share on other sites

GL11.glScaled(1,-1,1);

 

will turn the model upside down compared to current matrix origin

I bet this will mess up the model. More exactly: player will see not outer sides of polygons, but inner.

P.S.

Yes, it does:

wYFG2Ox.png

 

So it's better to rotate the model upside down, like GL11.glRotatef(180f, 1f, 0, 0); or GL11.glRotatef(180f, 0, 0, 1f);

xRFaBOG.png

Yes, the model won't be mirrored, but it's only working way i can imagine.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.