Jump to content

Looking for people to help test this modeller!


Flenix
 Share

Recommended Posts

Hey guys,

 

As some of you may have seen, I recently had a lot of issues getting a working tessellator.

I've now got it, so I've modified an old model editor made by IceReaper (from MoreMaterials, a Spout plugin) to hopefully throw out tessellator code.

 

I need people to test it and give me feedback. It's not perfected interface yet (for example there's a bug where once you create a shape, you can't edit/delete it), but if you could make some things, use the code and tell me if you have issues that would be lovely :)

 

 

You'll need to set up the rest of the ISBRH yourself. It only exports the renderWorldBlock method.

 

http://www.silvania.co.uk/model/forge

 

It's very shoddy, and should not be used properly just yet!

 

For an example, here's an upper-half slab:

521341750a29d.jpg

 

And the Export box gave me this code:

    @Override
    @SideOnly(Side.CLIENT)
    public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
        int meta = world.getBlockMetadata(x, y, z);
        int side = 0; //Change as required
        Icon icon = block.getIcon(side, meta);

        //Change stone to whatever block you want to mimic for light interaction. Not 100% precise!
        int brightness = Block.blocksList[block.stone.blockID].getMixedBrightnessForBlock(world, x, y, z);

        float u = icon.getMinU();
        float v = icon.getMinV();
        float U = icon.getMaxU();
        float V = icon.getMaxV();

        Tessellator tess = Tessellator.instance;
        tess.addTranslation(x, y, z);
        tess.setBrightness(brightness);
        tess.setColorOpaque_F(1.0F, 1.0F, 1.0F);

        tess.addVertexWithUV(0 1 1, u, v);
        tess.addVertexWithUV(1 1 1, u, v);
        tess.addVertexWithUV(1 1 0, u, v);
        tess.addVertexWithUV(0 1 0, u, v);

        tess.addVertexWithUV(0 0.5 1, u, v);
        tess.addVertexWithUV(1 0.5 1, u, v);
        tess.addVertexWithUV(1 1 1, u, v);
        tess.addVertexWithUV(0 1 1, u, v);

        tess.addVertexWithUV(1 1 1, u, v);
        tess.addVertexWithUV(1 0.5 1, u, v);
        tess.addVertexWithUV(1 0.5 0, u, v);
        tess.addVertexWithUV(1 1 0, u, v);

        tess.addVertexWithUV(0 1 0, u, v);
        tess.addVertexWithUV(1 1 0, u, v);
        tess.addVertexWithUV(1 0.5 0, u, v);
        tess.addVertexWithUV(0 0.5 0, u, v);

        tess.addVertexWithUV(0 0.5 1, u, v);
        tess.addVertexWithUV(0 1 1, u, v);
        tess.addVertexWithUV(0 1 0, u, v);
        tess.addVertexWithUV(0 0.5 0, u, v);

        tess.addVertexWithUV(1 0.5 1, u, v);
        tess.addVertexWithUV(0 0.5 1, u, v);
        tess.addVertexWithUV(0 0.5 0, u, v);
        tess.addVertexWithUV(1 0.5 0, u, v);

    }

 

The main issue right now is the UVs aren't done yet. You need to edit them for each quad, like so:

U, V

U, v

u, v

u, V

 

(To display your texture upright. Change it if you want to rotate the texture)

 

 

UPDATE:

I've remade it using a different base. It certainly looks much nicer now, and it's text-to-edit instead of button to edit, which makes workflow a bit faster but a slightly steeper learning curve.

 

It also gives you much more control.

 

This version still has the above-mentioned UV bug, and also the cube is currently offset by half a block in each direction. I'll fix that later

http://silvania.co.uk/model/asmt/

 

Tell me which of the two editors you prefer!

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Link to comment
Share on other sites

Uhm is this use for blocks that needs models ?

 

Blocks which use the tessellator for models, yes. It's quite different to Techne- this wont cover mobs or animated models, just straight up models (for example the in-game Fence)

 

 

I'm re-writing with a different core at the moment which should make it much easier to use.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Link to comment
Share on other sites

Oh ok ill try this seems interesting . By the way will you possibly include mobs  and stuff here ?

 

I'm not sure if mobs can actually be made with the tessellator, you'll have to use techne and a model file for that.

Check the OP, just added a link to the newer one.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Link to comment
Share on other sites

I'm not sure if mobs can actually be made with the tessellator, you'll have to use techne and a model file for that.

Check the OP, just added a link to the newer one.

 

I'm not sure if mobs can actually be made with the tessellator

yes

 

you'll have to use techne and a model file for that.

or dear god not techne, please use wavefront files :)

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

Well you could techne or write the code manually, I guess techne is easier than that.

But if you want a mob, you would want animations which are easily added to models written manually (or by techne),

but seemingly not that easy with wavefront files?

 

I assume that by using a wavefront file you could create the model and the whole animation in Maya(Or blender or similar 3d editors) and then just import the animation from that? That would be quite a lot better than techne for sure :)

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

yeah the thing is we dont have a loader for any animation files. and i dont want to write one xD its sooo f***ing long!

 

but its "possible" to do animation via wavefront ... but it kinda sucks, plus its not like techne support animation either ...

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

I've done animations for mobs with techne, but never tried blocks to be honest. I only recommended techne as it's easier for newbies than something like blender.

 

That being said, one of the default plugins of the engine I'm using is a wavefront editor. And, when I get my plugin working on there, you can convert between wavefront and tessellator models at the click of a button. ;)

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Link to comment
Share on other sites

I've done animations for mobs with techne

 

good to knwo, i tought it couldnt

 

I only recommended techne as it's easier for newbies than something like blender.

yeha, but blender makes way more efficient models and way more beautifull models :)

 

 

btw if your program ever outputs code, can you have a class that will automaticly use display list ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Try removing the Curios mod and any mods that depend on it. Add them back in one at a time, test launching each time.
    • I am new in modding. I have a registry class for all minecraft items. How I add information an Item without opening new class?
    • Seriously, is this gonna plague future versions of Forge? Because how the hell am I supposed to load mods correctly like I did before if this keeps going on? (Here's the error.) [07Feb2023 12:06:56.387] [Render thread/WARN] [mixin/]: Error loading class: com/mojang/math/Quaternion (java.lang.ClassNotFoundException: com.mojang.math.Quaternion) [07Feb2023 12:06:56.390] [Render thread/FATAL] [mixin/]: Mixin apply failed flywheel.mixins.json:matrix.PoseStackMixin -> com.mojang.blaze3d.vertex.PoseStack: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException Unexpecteded ClassMetadataNotFoundException whilst transforming the mixin class: [MAIN Applicator Phase -> flywheel.mixins.json:matrix.PoseStackMixin -> Apply Methods -> (Lcom/mojang/math/Quaternion;)Lcom/jozufozu/flywheel/util/transform/TransformStack;:multiply -> Transform LVT -> var=quaternion -> desc=Lcom/mojang/math/Quaternion;] org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: Unexpecteded ClassMetadataNotFoundException whilst transforming the mixin class: [MAIN Applicator Phase -> flywheel.mixins.json:matrix.PoseStackMixin -> Apply Methods -> (Lcom/mojang/math/Quaternion;)Lcom/jozufozu/flywheel/util/transform/TransformStack;:multiply -> Transform LVT -> var=quaternion -> desc=Lcom/mojang/math/Quaternion;]     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformMethod(MixinTargetContext.java:491) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyNormalMethod(MixinApplicatorStandard.java:532) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMethods(MixinApplicatorStandard.java:518) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:386) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.8.jar:10.0.8+10.0.8+main.0ef7e830]     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.6.jar:?]     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?]     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.6.jar:?]     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.6.jar:?]     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.6.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]     at com.mojang.blaze3d.systems.RenderSystem.<clinit>(RenderSystem.java:83) ~[1.19.3-forge-44.1.16.jar:?]     at net.minecraft.client.main.Main.m_239872_(Main.java:174) ~[1.19.3-forge-44.1.16.jar:?]     at net.minecraft.client.main.Main.main(Main.java:51) ~[1.19.3-forge-44.1.16.jar:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19.3-44.1.16.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] Caused by: org.spongepowered.asm.mixin.throwables.ClassMetadataNotFoundException: com.mojang.math.Quaternion     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformSingleDescriptor(MixinTargetContext.java:983) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformSingleDescriptor(MixinTargetContext.java:943) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformLVT(MixinTargetContext.java:544) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformMethod(MixinTargetContext.java:450) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] This has been going on since 44.1.8 and how on Earth is this not even fixed yet?
    • Error downloading asset (try 2) : minecraft/sounds/block/fence_gate/close2.ogg java.io.IOException: Server returned HTTP response code: 400 for URL: http://resources.download.minecraft.net/58/58d63232621aaa03e4d09598700561214e7c2477     at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1902)     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500)     at java.net.URL.openStream(URL.java:1093)     at net.minecraftforge.gradle.tasks.DownloadAssetsTask$GetAssetTask.call(DownloadAssetsTask.java:189)     at net.minecraftforge.gradle.tasks.DownloadAssetsTask$GetAssetTask.call(DownloadAssetsTask.java:150)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)     at java.lang.Thread.run(Thread.java:750) This and countless other assets failing to download. This is my school laptop, Programs such as Fortiguard are installed, Could this possibly be interfering? 
  • Topics

×
×
  • Create New...

Important Information

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