We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Materials appear black on one object, but work for another one

Home Forums Graphics / Blender Materials appear black on one object, but work for another one

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #69357
    alissa
    Participant

    Hi Guys,
    I am working on a configurator, where you can change between multiple materials for different Objects. All materials work at least for one/two object in the scene and some work for all objects. So I don’t think the mistake is with the different materials, but I can’t figure out what it is.
    If a material doesn’t work it shows up just black, but assigned to another object it looks fine.

    Thank you in advance for any help!
    https://v3d.net/r53

    #69360
    kdv
    Participant

    5+ minutes of loading time, 700+ Mb of incoming traffic to see what? An empty scene with a blue cloudy sky? :scratch: Where is that black object? :unsure:

    Hint: your objects most likely have different UVs and that material is UV dependent.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #69362
    xeon
    Customer

    It seems you may still be trying to get your scene to work. I have loaded it a few times and get different results. I had one that had a chrome like sphere inside a cloud environment and now just a cloud environment.

    What I recommend is you use Chrome and the Developer console and watch the performance in the console. You will see you are loading textures that are very larger. 2 at 8192×4096, 11 at 4096×4094 and 10 in the 2048 range.

    The general rule is to keep your textures a to a power of 2 ( 2 to Nth power) and to keep them 2048 or less. Preferably less.

    As KDV has mentioned your objects may not have their UVs maps assigned properly.
    I would suggest to start…by removing your environment and simplifying your scene down to the one of the objects you are having an issue with. Validate it works in V3D as you desire…then add your envionment back. Validate it works and then start adding your other objects back into the scene.

    If you havent already…be sure to set your camera location and what it looks at either in puzzles or in key frames. This will just ensure when you pull up your scene the camera is pointing in the right direction.

    If you are using HiDPI and Order of Transparency this can cause known issues..basically they cant work together. At least not yet. If you are using both…turn off one.

    But from a diagnostic stand point…. start with a scene that has an HDR environment map and nothing else. Add one object in at a time making sure it works…and as soon as you run into a model that is not working validate the texture size and UV map.
    Doing this one step at a time you will be able to figure it out. I am sure of it.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #69385
    alissa
    Participant

    Thank you guys! I resized all my image textures and exported it again. I also unwrapped my all object with Smart UV Project. At the moment my scene consists of a sky sphere and 9 grounds, which I am hiding and showing when clicked on my interface. I guess that’s why you couldn’t see them.
    But I still can’t figure out what is wrong. The goal is to be able to switch between all 9 materials of my 9 grounds. For some ground-objects the material switching works perfectly and others just show 4 or 5 out of 9 materials as black.
    Could you take a look at my file? I would really appreciate it

    https://www.dropbox.com/scl/fi/g0snnpelbc05ibomsjmql/Skies1.blend.zip?rlkey=06q9vaesup5j82p1q0bx5okdl&dl=0

    The objects on the left in my sphere are working with every material and the ones on the right don’t work for these materials: ground_water, ground_waterfall, ground_mountains, ground_reaf and ground_purple.

    • This reply was modified 4 months, 1 week ago by alissa.
    #69387
    xeon
    Customer

    12 million triangles….is this for web use or are you going to distribute this as an electron app? For web use…you want to try to get this to about 500K triangles.

    You have two environment spheres….the world shader and your sky sphere….you can use just one.

    If you are going to use the sky sphere…make sure it doesent receive shadows and doesn’t cast shadows. If you want the inside of your sky sphere to be lit and see the texture…make sure to flip the normals.

    The Ground Particles object is 11 million plus triangles…start by reducing this down or deleting it from the scene…get the rest of the scene working then optimize it and get it back in.

    You also have some very large textures in the project files…..you should replace those with something smaller.

    just my very quick two cents

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #69388
    alissa
    Participant

    It’s for web use, you are right I will delete the object with 11 million triangles.

    About the world shader and the environment sphere. I have notices, that my textures are very grey/washed out, if I don’t have the world shader together with to sphere to light up my scene.

    But could you find something that is responsible for my textures not working right when I assign them for different grounds in verge3d?

    #69389
    kdv
    Participant

    names of problematic objects and materials? or should we guess?

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #69391
    xeon
    Customer

    OK..so if you do some basic diagnostics and delete the 12 Million poly object and delete your sphere you will notice your project loads in to v3D faster and all the materails show up as expected….nothing black.

    You have a reflection map being created but it was taking into the effect the inside of a sphere that was casting shadows with normals the wrong way…etc…..just causing problems.

    The results when rendered in Blender line up pretty nice with that inside V3D.

    You should experiment with the World Environment Shader. This is like a giant environment sphere and will act as your light source for your scene.

    With respect to your materials not showing up.. when inside v3d. I would guess its a puzzle related issue….post your project and we can quickly find out.

    But optimize the project file before you post … please by removing that large 12M poly object and the 132Mb Texture.

    • This reply was modified 4 months, 1 week ago by xeon.
    Attachments:
    You must be logged in to view attached files.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.