Jump to content

Get texture of block from ItemStack , or how to render custom block


TechoMan

Recommended Posts

I'm having Block , that have diffrent texture , depended on TileEntity info. So what i need to do - same thing , but in players inventory , hand , and chest. What i want to try - use IItemRenderer , but maybe there is other way? and even if i use it , how do i render blocks with it?

Link to comment
Share on other sites

oh , and one more question about Rendering , but now not MC , but OpenGL. For some reason , GL_CULL_FACES not rendering item...i know how to use it in OpenGL with C++/Delphi , but how to use GL_CULL_FACES in MC? So , how it does "kulling" of faces? *Just asking , beacos i dont want to disable it*

Link to comment
Share on other sites

heh , i will help you then ;)

GL_CULL_FACEL - render only that sides , that screen ( AND YES , ACTUALLY SCREEN , not player.) can see.Its faster to render stuff , but can be buggy in "bad code developers" hand. What it can do - from one side , poly / square is visible , but from other no.That is acually what it does at all - you can see from one side , but cant from other.Its sometimes very needed , but sometimes it can srev up you render.There is diffrent modes on it , and i dont know what mode MC use...That not a problem - i just turn it off , but....meh , -0.05 fps , just dont care ;) .But for some one its more than that , and it very importen for "tons of" render.When you rendering 1M of someting - YOU NEED IT.

Link to comment
Share on other sites

evrywhere ;) List in what "renderers" that i used it turned on:

- Inventory renderer

- Block in world renderer

- TileEntity renderer

- Entity renderer

Where its turned off for some reason(why idk) :

- in hand render

- when item is dropped

 

and why you stopped developing of camera craft?(

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.