Jump to content

Recommended Posts

Posted (edited)

Forge: forge-1.16.4-35.1.4-mdk

I've been working on custom models of a new fence recently. But I have met with a problem, that the fence's brightness looks good during the day, but too bright at night.

Perhaps the brightness somehow doesn't change via time? (Just a guess of course)

I've been searching solutions for this issue for a while, and I found that it might be related with option experimentalForgeLightPipelineEnabled, so I made some comparation: true or false, and during day or at night.

 

True, during the day:
True, during the day

 

False, during the day:

False, during the day:

 

True, at night:

True, at night

 

False, at night:

False, at night

In addition, the model is built with blender 2.90. I'm pretty new to blender, so not sure whether it is caused by some wrong properties in blenders.

Texture is edit with GIMP 2.10.14.

Also, you might have noticed that the texture displayed on the face of the fence is different from the texture in file. Indeed it's also a issue need to be solved, but yet it's another different issue, so I put it in another thread.

==Code==

bcp.java

CustomShapeFence.java

HoleyFenceExtension.java

HoleyFenceNode.java

 

==Blockstates==

holey_fence_node.json

holey_fence_extension.json

==Models==

holey_fence_node_post.json

holey_fence_node_post.obj

holey_fence_node_post.mtl

 

holey_fence_node_side.blend

holey_fence_node_side.json

holey_fence_node_side.obj

holey_fence_node_side.mtl

 

holey_fence_extension_post.json

holey_fence_extension_post.obj

holey_fence_extension_post.mtl

 

 

holey_fence_extension_side.blend

holey_fence_extension_side.json

holey_fence_extension_side.obj

holey_fence_extension_side.mtl

==Textures==

fence_face_cross.png.5b2428e508723c62cc19f8ac7ce47ff5.png

Edited by FishBoneEK
Posted
1 hour ago, lupicus said:

I believe one fix would be to add "ambientToFullbright": false, in the obj model json files

Between, I would like to know more about json options like these. Where may I learn about them?

Posted (edited)

Not sure if they are documented somewhere, but I found these in ObjLoader#read

You can find other loaders in ModelLoaderRegistry#init, then follow to their read method for their options.

Edited by lupicus
Posted
20 hours ago, lupicus said:

Not sure if they are documented somewhere, but I found these in ObjLoader#read

You can find other loaders in ModelLoaderRegistry#init, then follow to their read method for their options.

Thanks!

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.