| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| This is how ID games does material checks | |
|---|---|
| Tweet Topic Started: Sep 3 2010, 09:50 PM (286 Views) | |
| skarik | Sep 3 2010, 09:50 PM Post #1 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
A neat idea, which could help from some rendering performance aspects.![]() This is how it would work in Unity.
I've tested it. It works fine. I'm not using it at the moment, however, seeing as I want to use the slower and easier to set up material system right now. |
| Blog|EHS | |
![]() |
|
| Despellanion | Sep 4 2010, 12:56 AM Post #2 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This could also be easily achieved in U3D by checking material ray intersection. |
![]() |
|
| luenardi | Sep 4 2010, 01:53 AM Post #3 |
|
Cofee Machines Rock
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
@Skarik I'll keep this in mind.. Thanx alot dude. it's like you posted this just for me. Edited by luenardi, Sep 4 2010, 09:27 AM.
|
![]() For your perception no. But my universe has no such limits. www.recall.co.nr | |
![]() |
|
| Eansis | Sep 5 2010, 12:41 AM Post #4 |
|
ghost
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Am I understanding this incorrectly because this sounds like a bad idea. Since when is oil red? Using this you would have to limit yourself to whatever color's are the "typical" colors of things...or you would have to make an extra world mesh with color coding...in u3d it would be much easier to just go by material names and do a search for string eg CheckIntersectedMaterialIndex() if find_string_part(GetMaterialIndex)=water...that way you could have regular material names but just add their type at the end eg. texturename_water or texturename_dirt. |
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY
| |
![]() |
|
| skarik | Sep 7 2010, 07:44 AM Post #5 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
It's a separate map that isn't used in rendering, but is defined in the material. Since rendering with a single material is much faster, it would be beneficial to have two or more material types in the same material. For example, an enemy might have both flesh and metal materials. Instead of using separate shaders and inducing more rendering (CPU to GPU) overhead just to get different hit particle effects and code, why not just look at the material-check map? It's not possible to do this in Ultimate 3D, unless someone wants to make a raycast-hit-to-texture-coordinate conversion that's fast enough for real time. Then again, if you're trying to do this in Ultimate 3D, you shouldn't be using Ultimate 3D. |
| Blog|EHS | |
![]() |
|
| luenardi | Sep 7 2010, 08:04 AM Post #6 |
|
Cofee Machines Rock
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
yeah.. these are way more high level toys. This has been done for ages in a 2d style.. for menu's and so on.. There are quite a few ways to do this.. i like this one cuz a simple texture swap B4 texture & shader rendering would work very well. You could do this materials in u3d.. but that would limit you to 8 types... |
![]() For your perception no. But my universe has no such limits. www.recall.co.nr | |
![]() |
|
| « Previous Topic · Off-topic · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)





10:49 AM Jul 11