Jump to content

[Solved] [1.7.10] How to get blender models to render correctly


Recommended Posts

Posted

I have made a blender model and have exported it to a .obj file and blinded it to a tile entity. But it does not render correctly, it's suppose to be a cylinder, but the ends are really weird. One side looks fine:

 

WGUfaFJ.png

 

But the other side looks really weird:

 

H6rrd5d.png

 

Here is my .obj file:

 

 

  Reveal hidden contents

 

 

And my renderer class:

 

 

  Reveal hidden contents

 

Posted

I got it to work by adding

GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDepthMask(true);

bindTexture(modelTexture);
model.renderAll();

GL11.glPopAttrib();

to my code.

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.