- This topic has 3 replies, 3 voices, and was last updated 1 year, 4 months ago by kdv.
-
AuthorPosts
-
2023-05-28 at 7:19 pm #641353dcgiCustomer
Hello
I have an issue that materials do not get assigned correctly, using the puzzle – see screenshotEverything works correctly only the first time I click a material button (after refreshing)
Then when I start clicking material buttons randomly the materials somehow get mixed up
Any idea what is going on here?Attachments:
You must be logged in to view attached files.Senior CGI Artist @ 3DCGI.Studio #zerophotography
➤ Unreal Engine - 3ds max V-Ray
➤ Hyper-realistic 3D. Cars, Motorcycles, Products, Archviz Visualizations, 3D & VFX Animations2023-05-28 at 10:30 pm #64144xeonCustomerHi 3dcgi,
I am going to take a guess at what the problem might be as there is not enough information in the puzzles to diagnose what is happening.
In order to change materials from one material in your scene to another those materials have to already exist and be assigned to an object.
This can be done by creating some simple triangles and assigning each material so a single object/triangle that is out of camera view.
If you don’t do this the material you had assigned is removed from memory and there is no way to get it back. Also if it’s not assigned to a material at the time of load or at the time prior to you needing it…it can not be called upon to replace an existing material.
Example:
If your scene has a cube and in your 3d project file you have the a chrome material assigned to the cube but also in you material libray you have a red material and a blue material but they are not assigned to any object in your scene. You export to V3d. You will not be able to assign the red or blue to the cube.However, if you add two triangles objects to the scene, a red triangle with the red material and a blue triangle with the blue material export the scene to v3d. Through puzzles, you will be able to change the color of your chrome cube to red or blue.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2023-07-23 at 7:26 am #65375xeonCustomerNew tutorial up on this topic:
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2023-07-23 at 9:46 am #65378kdvParticipantGood. Correct One addition: An additional material user may be represented by any hidden (invisible) primitive. For example, you can assign 6 material to one cube: one material per face. Or you can use a sub-divided plane with the same result. The main condition: materials must have additional users to store them in the scene if they are supposed to be replaced.
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.
-
AuthorPosts
- You must be logged in to reply to this topic.