Jump to content

[1.8.9] Changes.


Ernio

Recommended Posts

First of all - loving 1.8.9.

 

Back to the case - I want to know every trick regarding WorldRenderer.

In particular:

* mode and format params in "#begin" - what and when are they used?

* Is there some one-time color-setting method or from now on everything should be kinda like this:

#pos(x,y,z).endVertex();

#pos(x,y,z).color(r,g,b,a).endVertex();

 

What other methods are useful, yeah - I could read source but vertex formats are the worst.

 

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

I know that one of the parameters for WorldRenderer is the GL draw type.  GL11.GL_QUADS, etc.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Okay, so this is getting pretty nice.

 

The vertex format is actually short code for:

POSITION: #pos(x,y,z)

TEX: #tex(u,v)

COLOR: #color(r,g,b,a)

 

Whenever you want to apply one of those, you need to use proper vertex format (e.g: POSITION_TEX for pos and tex).

Then you close vertex with #endVertex().

 

Anyway, that was easy (I guess I just was lazy).

 

I know that one of the parameters for WorldRenderer is the GL draw type.  GL11.GL_QUADS, etc.

 

So where can I read about those types? I am GL noob in terms of conventions. Everything I know i learned from scratch (a lot actually).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

I know that one of the parameters for WorldRenderer is the GL draw type.  GL11.GL_QUADS, etc.

 

So where can I read about those types? I am GL noob in terms of conventions. Everything I know i learned from scratch (a lot actually).

 

Look for some GL tutorials.  If you hover over

GL11.GL_QUADS

you can do a jump-to-definition which will take you to the GL11 class and you can look at the other modes there (I can't find a list online).  QUADS is more or less deprecated because it's inefficient, but no one in Minecraft modding cares (it's faster to draw two triangles than making the CPU calculate said triangles).  The other options I can remember are... LINES (may not work, use instead...), LINE_STRIP, and TRIANGLE_STRIP.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I know that one of the parameters for WorldRenderer is the GL draw type.  GL11.GL_QUADS, etc.

 

So where can I read about those types? I am GL noob in terms of conventions. Everything I know i learned from scratch (a lot actually).

 

Look for some GL tutorials.  If you hover over

GL11.GL_QUADS

you can do a jump-to-definition which will take you to the GL11 class and you can look at the other modes there (I can't find a list online).  QUADS is more or less deprecated because it's inefficient, but no one in Minecraft modding cares (it's faster to draw two triangles than making the CPU calculate said triangles).  The other options I can remember are... LINES (may not work, use instead...), LINE_STRIP, and TRIANGLE_STRIP.

There's also

GL_POLYGON

and i think

GL_POINTS

.

Link to comment
Share on other sites

When I was searching yesterday I don't know why I didn't catch this:

https://www.opengl.org/sdk/docs/man2/xhtml/glBegin.xml

 

Only thing questionable is why internal methods are public, and if they are not internal - how do they allow different outcome than ones provided (e.g: those in my prev post), but whatever. :)

 

Oh and eventually - how do you use lightmap (yeah, there is a method now)?

1.7.10 is no longer supported by forge, you are on your own.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • In the perilous world of online trading, where promises of quick riches often lead to devastating losses, finding a trustworthy ally can feel like searching for a needle in a haystack. My journey began with high hopes, as I ventured into online trading with an external expert guiding my every move. Little did I know, I was stepping into a carefully orchestrated scam. After investing a substantial $380,000 deposit on an online trading platform, I found myself at the mercy of both the platform and the supposed expert leading my trades. Despite initially seeing profits, red flags began to appear when they demanded a hefty 20% fee, not from the generated profits, but from my pocket. Alarm bells rang loudly in my mind, signaling a potential scam. Thankfully, in the nick of time, I stumbled upon Wizard Web Recovery. With skepticism clouding my judgment, I cautiously reached out to them, hoping against hope for a glimmer of salvation. From the first interaction, their professionalism and expertise shone brightly, offering hope amidst the murky waters of deceit. Their approach was meticulous and methodical, as they diligently assessed my situation, leaving no stone unturned in their quest for justice. Despite the daunting odds stacked against me, Wizard Web Recovery embarked on a relentless pursuit to reclaim what was rightfully mine. Their transparency was a breath of fresh air in an industry plagued by deception. Every step of the way, they kept me informed, providing regular updates and guidance, instilling a sense of trust that had long eluded me. Their dedication to my cause was unwavering, as they navigated the complexities of online trading with finesse and precision. What truly sets Wizard Web Recovery apart is its unwavering commitment to its clients. Beyond mere restitution, they prioritize education and empowerment, equipping individuals with the knowledge and tools to navigate the treacherous waters of online trading safely. Through their expertise and tenacity, Wizard Web Recovery emerged victorious, securing the return of my hard-earned funds. But their impact extends far beyond mere financial restitution. They restored my faith in humanity, proving that amidst the darkness, there are still beacons of light shining brightly. To anyone who finds themselves ensnared in the tangled web of online trading scams, I wholeheartedly recommend Wizard Web Recovery. Their professionalism, expertise, and unwavering dedication are unmatched, offering a glimmer of hope in an otherwise bleak landscape. Trust in their abilities, for they are true wizards in the realm of recovery.
    • In the perilous world of online trading, where promises of quick riches often lead to devastating losses, finding a trustworthy ally can feel like searching for a needle in a haystack. My journey began with high hopes, as I ventured into online trading with an external expert guiding my every move. Little did I know, I was stepping into a carefully orchestrated scam. After investing a substantial $380,000 deposit on an online trading platform, I found myself at the mercy of both the platform and the supposed expert leading my trades. Despite initially seeing profits, red flags began to appear when they demanded a hefty 20% fee, not from the generated profits, but from my pocket. Alarm bells rang loudly in my mind, signaling a potential scam. Thankfully, in the nick of time, I stumbled upon Wizard Web Recovery. With skepticism clouding my judgment, I cautiously reached out to them, hoping against hope for a glimmer of salvation. From the first interaction, their professionalism and expertise shone brightly, offering hope amidst the murky waters of deceit. Their approach was meticulous and methodical, as they diligently assessed my situation, leaving no stone unturned in their quest for justice. Despite the daunting odds stacked against me, Wizard Web Recovery embarked on a relentless pursuit to reclaim what was rightfully mine. Their transparency was a breath of fresh air in an industry plagued by deception. Every step of the way, they kept me informed, providing regular updates and guidance, instilling a sense of trust that had long eluded me. Their dedication to my cause was unwavering, as they navigated the complexities of online trading with finesse and precision. What truly sets Wizard Web Recovery apart is its unwavering commitment to its clients. Beyond mere restitution, they prioritize education and empowerment, equipping individuals with the knowledge and tools to navigate the treacherous waters of online trading safely. Through their expertise and tenacity, Wizard Web Recovery emerged victorious, securing the return of my hard-earned funds. But their impact extends far beyond mere financial restitution. They restored my faith in humanity, proving that amidst the darkness, there are still beacons of light shining brightly. To anyone who finds themselves ensnared in the tangled web of online trading scams, I wholeheartedly recommend Wizard Web Recovery. Their professionalism, expertise, and unwavering dedication are unmatched, offering a glimmer of hope in an otherwise bleak landscape. Trust in their abilities, for they are true wizards in the realm of recovery.     
    • Throughout a day i tried to understand what each variable does, and at the end of a day, i finally got it, but what EXACTLY (difference between) setRotationPoint and addBox does - idk Alias for setRotationPoint = "srp", addBox = "ab" -----------------NERD-TALK----------------- SO, the most sussy value is Y-axis. Starting from srp, 24.0F - is height +0, meaning a starting point. in ab, 0.0F is also height +0. When you decrement srp or ab y-axis  values - you get height +1 with each -1, meaning you can interpretate same height in infinite ways, same for X axis but srp starting point is 0.0F, note that none of each applies to Z axis - it is 'normal' For example, task: Place cube with dimensions 3, 3, 3 to coords -1.5, 6, -4. My theory approach: Decrement cube Y dimension from ab value, and decrement srp value until satisfied(3 in this case). I think X and Z axis do not need explanation, but still: you can set -1.5 and -4 to either srp or/and ab -------------INTERESTING-PART------------- this.head = new ModelRenderer((ModelBase)this, 0, 10)). addBox(-1.5f, -3.0f, -3.0f, 3, 3, 3); # For X and Y axis - decrement its dimension to get position 0. To achieve -1.5 in X axis - add this reverted value to srp/ab (ab in this case) this.head.setRotationPoint(0.0f, 21.0f, -2.0f); # Decrementing 3 to achieve "6" height (you can do so with ab value, but NOTE that i don't know the difference between both) Edit: I Figured it out by playing with java entity class file for forge 1.7.10 Hope this helps someone if you went this far somehow
    • I have been following a tutorial for DataGen for my Minecraft Mod and I have come across an error. Caused by: java.lang.IllegalStateException: No way of obtaining recipe droidsancientrelics:lemon_juice I am not sure why this has happened for the Lemon Juice specifically, as no error is present for the Orange Juice even though the code is the same. I thought I would make a post before acting on anything in case I would create unnecessary work for myself, though I know that a possible outcome would be to go to an earlier version of the mod where the data files are still separate and go from there.  Video link for reference.
    • I removed optifine and now F3 works
  • Topics

×
×
  • Create New...

Important Information

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