Home › Forums › Graphics / Blender › Materials appear black on one object, but work for another one
- This topic has 7 replies, 3 voices, and was last updated 12 months ago by xeon.
-
AuthorPosts
-
2023-12-24 at 12:29 pm #69357alissaParticipant
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/r532023-12-24 at 5:54 pm #69360kdvParticipant5+ minutes of loading time, 700+ Mb of incoming traffic to see what? An empty scene with a blue cloudy sky? Where is that black object?
Hint: your objects most likely have different UVs and that material is UV dependent.
Puzzles and JS coding. 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 the meaning at all.
2023-12-24 at 9:59 pm #69362xeonCustomerIt 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.com2023-12-27 at 5:55 pm #69385alissaParticipantThank 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 itThe 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 12 months ago by alissa.
2023-12-27 at 7:01 pm #69387xeonCustomer12 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.com2023-12-27 at 8:35 pm #69388alissaParticipantIt’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?
2023-12-27 at 11:26 pm #69389kdvParticipantnames of problematic objects and materials? or should we guess?
Puzzles and JS coding. 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 the meaning at all.
2023-12-28 at 12:03 am #69391xeonCustomerOK..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 12 months 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 -
AuthorPosts
- You must be logged in to reply to this topic.