Moo-Ack-Productions / MCprep

Blender python addon to increase workflow for creating minecraft renders and animations
https://theduckcow.com/MCprep
GNU General Public License v3.0
278 stars 26 forks source link

texture isuues #249

Closed ghost closed 2 years ago

ghost commented 2 years ago

there are black spots in certain areas when rendered using camera close the surface. the issue occures in flowers, grass, wheat and other such textures especially if many are one behind or close to one another. The issue is not limited to one file. issue occurs in both mineways and jmc2obj 112 as well. so mostly the issue is with mcprep. and unable to delete mcprep as well Screenshot (86) Screenshot (87) Screenshot (90)

Coppertine commented 2 years ago

Have you tried without using MCPrep? You can import obj's as usual in Blender

ghost commented 2 years ago

Have you tried without using MCPrep? You can import obj's as usual in Blender

I tried both importing the map through mc prep obj import and normal import obj . But the error remains

StandingPadAnimations commented 2 years ago

Can you show your render settings? Specifically light bounces

ghost commented 2 years ago

Can you show your render settings? Specifically light bounces

Total max bounce is 12, and transparent bounce i have tried it all ranging from 1 to even 32. And all others r blender default as well

TheDuckCow commented 2 years ago

Just to echo StandingPad here, this sounds like the classic issue for number of bounce. Try an even higher number like 64. I can see from that camera angle that we are probably looking through a number of planes of wheat and flowers.

TheDuckCow commented 2 years ago

Sorry pressed comment too soon - Your total max needs to be equally higher too, I believe. Try setting both to 64 just to see if the issue goes away then; if so, then you know you just need to drop them down until you no longer have the black shapes showing through.

This is also a fair use case for the Meshswap feature, to turn the wheel and most flowers into physical 3D models. They typically have modifiers which add the solididity, so if you still want the classic look without 3d shapes, you can turn those off in modifier settings after you've done your meshswapping. Let us know if you have questions on this!

StandingPadAnimations commented 2 years ago

Actually it seems to be a driver issue. Normally 8 max bounces and 12 transparent bounces would solve the issue

ghost commented 2 years ago

Sorry pressed comment too soon - Your total max needs to be equally higher too, I believe. Try setting both to 64 just to see if the issue goes away then; if so, then you know you just need to drop them down until you no longer have the black shapes showing through.

This is also a fair use case for the Meshswap feature, to turn the wheel and most flowers into physical 3D models. They typically have modifiers which add the solididity, so if you still want the classic look without 3d shapes, you can turn those off in modifier settings after you've done your meshswapping. Let us know if you have questions on this!

Yes i tried and it worked. Then i reduced it down till the black spots appeared. It seemed that the issue accured if transparency occured if transparency bounce was less than 15. So thebissue is resolved thanks to you. But i have another issue as well. I use a GTX 1650Ti and AMD ryzen 5 4600H. So logically if i keep the pixel size at around 256px it should yield the fastest render but what i noticed is it renders slower compared to when i use 32px. At 256px a certain scene took me 42 secs while using 32px took 30 secs. Whereas it should be the reverse case actually since the gpu is better at rendering. If u can help me this as well it will be very much appreciated.

StandingPadAnimations commented 2 years ago

For that issue, try using CUDA since GTX cards can't use Optix well(they lack ray tracing cores to take advantage of Optix).

TheDuckCow commented 2 years ago

Closing this now as it's more a troubleshooting thing, feel free to comment back (or join the discord community for more realtime help).