Jump to content

Recommended Posts

Posted

I am trying to remake what was a TESRed block into a model system block.

 

Information:

1. Using Forge blockstates json: https://github.com/williewillus/AdventureBackpack3/blob/master/src/main/resources/assets/adventurebackpack3/blockstates/campfire.json.

2. Both the campfire base model (pebbles) and the log submodel are standard-issue block models created in MrCrayfish's model creator.

3. What I want: The campfire base model, with a log as a submodel that is slightly tilted upwards (20 degrees). Reference from 1.7 TESR: http://gyazo.com/260e049dbb252d89fffc82536621c00e.

4. What I get: The texture itself becomes fucked or the rotation is completely borking: http://gyazo.com/08753bac6c1bb9d4dda64da4b7c80aec. The sticks from the 1.7 screenshot are not present because I haven't done them yet

5. Interesting things: In the Blockstate V1 spec by Fry (https://gist.github.com/RainWarrior/0618131f51b8d37b80a6), Zaggy commented that transform{} modifications are not about the center of the block. If that is so, what point are they about? How do I change it so that it works? Should I just ditch this and go for b3d? (If so, any examples of how to use Blender?)

6. Interesting things: If I specify the rotation angle as a multiple of 90 it works completely fine. Anything else, even 91, borks completely. In the spec above it says that these rotations are unrestricted, so this is confusing...

 

Thanks for the help

Posted

The way you can do this is by drawing the faces of the sticks. All 6 of them. Make sure the sticks are on a different tessellator from your campfire base.Dont start at exactly the center of the block. Because you will have more than one stick. After you have drawn the sticks, inside the tessellator use GL11 rotation to rotate them about 80 deegrees. If you get any glitchy stuff in your game. Make sure that in the end of the tessellator you rotate back

Posted

The way you can do this is by drawing the faces of the sticks. All 6 of them. Make sure the sticks are on a different tessellator from your campfire base.Dont start at exactly the center of the block. Because you will have more than one stick. After you have drawn the sticks, inside the tessellator use GL11 rotation to rotate them about 80 deegrees. If you get any glitchy stuff in your game. Make sure that in the end of the tessellator you rotate back

 

...what? This is using JSONs here. I'm not touching the tessellator or GL at all.

AND I said not to worry about the sticks, I'm concerned with the big log in the middle here.

Please read more carefully -.-

Posted

...what? This is using JSONs here. I'm not touching the tessellator or GL at all.

AND I said not to worry about the sticks, I'm concerned with the big log in the middle here.

Please read more carefully -.-

I think you could use ISmartBlockModel and get all the states of a block and change the vertices manually (if you want to know how google matrixes transformations, it will take some time to find).

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.