Page 1 of 3

Export as Java

Posted: 19 Nov 2016, 03:29
by Jimmy
Extension: ".java"
Format name: Java Code
Used by: Minecraft TileEntitySpecialRenderer/EntityRenderer

Specs: http://pastebin.com/TcwMYWuz

Where:

Code: Select all

ModelRenderer Shape1;// Shape1 = Unique name of Cube Element

Shape1 = new ModelRenderer(this, <UvStart>, <UvStop>);
Shape1.addBox(-1F, 0F, 0F, 1, 1, 2);// the 6 Numbers are The Position ( first 3 in X,Y,Z) and Size where size cannot be a floating point number (Google translator :P)
Shape1.setRotationPoint(-4F, 15.5F, 11F);// Rotation Origin
Shape1.setTextureSize(textureWidth , textureHeight );// values will be "replaced" automaticly by above defined ( textureWidth = 64; & textureHeight = 64;)
Shape1.mirror = true;// Also no Idea what thats for
setRotation(Shape1, 1.745329F, 0F, 0F);// Rotation of the Element at X,Y,Z Axis no limitation to 90 Degrees steps (1 = 180° I think might also be 360°)
and
textureWidth = 64;
textureHeight = 64;
are required as this can only use 1 Texture

Format description:
Welp went maybe to far above :D

* Credit to the guy down below for this explanation :D

Re: Export as Java

Posted: 19 Nov 2016, 10:30
by Sphax
Please edit your suggestion to fit the template: viewtopic.php?f=10&t=184&p=1092#p1092

Re: Export as Java

Posted: 19 Nov 2016, 20:34
by Jimmy
Sphax wrote: 19 Nov 2016, 10:30 Please edit your suggestion to fit the template: viewtopic.php?f=10&t=184&p=1092#p1092
Done! I fixed the other post but forgot to edit this one xD

Re: Export as Java

Posted: 19 Nov 2016, 20:46
by Sphax
Java is not a format but a language...

So if you want a 3D model in "Java format", that means you are following specific specs. If it's for Forge (I think that's the case) you should post a link which describes how a 3D Model in Java for Forge looks like, how it is textured and how texture(s) look like.

Everything is detailed in the template post, i.e.:

Code: Select all

[b]Extension:[/b] extension like ".cubik"
[b]Format name:[/b] Short name
[b]Used by:[/b] Name of at least one software/game using that format

[b]Specs:[/b] At least one link to format specifications (= technical description of the format)

[b]Format description:[/b]
A short description of the format
So please, edit your 1st post to add details on the format if you want to see it supportedin Cubik Studio...
Again, I'm not asking to follow the template for fun or to make things look nice but to bring details right on the table.

Re: Export as Java

Posted: 20 Nov 2016, 19:14
by JTK222
Oh would love that Feature too! :D

Extension: ".java" / ".txt" (Depending on implementation way)
Format name: Java Code
Used by: Minecraft TileEntitySpecialRenderer/EntityRenderer

Specs: http://pastebin.com/TcwMYWuz
Where:
ModelRenderer Shape1; ---> Shape1 = Unique name of Cube Element
and
Shape1 = new ModelRenderer(this, <UvStart>, <UvStop>);
Shape1.addBox(-1F, 0F, 0F, 1, 1, 2); ---> the 6 Numbers are The Position ( first 3 in X,Y,Z) and Size where size cannot be a floating point number (Google translator :P)
Shape1.setRotationPoint(-4F, 15.5F, 11F); ---> Rotation Origin
Shape1.setTextureSize(textureWidth , textureHeight ); ---> values will be "replaced" automaticly by above defined ( textureWidth = 64; & textureHeight = 64;)
Shape1.mirror = true; ---> Also no Idea what thats for
setRotation(Shape1, 1.745329F, 0F, 0F); ---> Rotation of the Element at X,Y,Z Axis no limitation to 90 Degrees steps (1 = 180° I think might also be 360°)

and
textureWidth = 64;
textureHeight = 64;
are required as this can only use 1 Texture

Format description:
Welp went maybe to far above :D

Re: Export as Java

Posted: 20 Nov 2016, 20:50
by Jimmy
Yeah, exactly what he said! ^^^ xD

I'm going to edit my original post to match yours. If for some reason you aren't okay with that, let me know and I'll write my own! :D

Re: Export as Java

Posted: 01 Dec 2016, 06:56
by Jimmy
So does this seem possible? I'd much rather use Cubik than Techne for this :D

Re: Export as Java

Posted: 10 Dec 2016, 18:13
by Sphax
Anyone know an easy viewer of such model?

Re: Export as Java

Posted: 14 Dec 2016, 12:42
by LemonCraft
I agree with the author, do support Java format:)

Re: Export as Java

Posted: 25 Apr 2017, 01:22
by DEMONKLEENR
I also would love Java file export for minecraft formatted like the pastebin above.