How to get name of picked Q3 triangle texture?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

How to get name of picked Q3 triangle texture?

Post by MessiaH »

I want to implement the feature of different bullet sounds if
bullet hit different kind of materials(wood,metal,concrete).
But if i have a cool *.bsp map how can i get name of texture
of picked triangle?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Hmm, I also thought about this. My first thought was using a physics engine (Newton, ODE) and work with their "materials". But now (after testing with Newton) I know that you can assign a material to a mesh... But my and also your map is a whole mesh. So I don't how to do this except for splitting up the map... Or maybe you can assign different materials to one mesh?

Edit: http://www.physicsengine.com/forum/view ... s+one+mesh => seems to be possible with Newton :)
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

Don't think that's what i need...
Unfortunatelly there isn't ready func in Irrlicht for this.
Maybe it's possible to work with Irrlicht source and analize Q3 loader?
Post Reply