Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Clipping decals help

Author
Message
ico
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: Ottawa, Canada
Posted: 4th Aug 2006 09:14
Currently when the player shoots anything, a mark is left. I have a textured plane created wherever the bullet strikes, however if the bullet hits close to an edge the mark will stick out. I'm wondering what would be the best way to clip these? And how would I wrap a decal around a sphere or any uneven surface? I'm using DBP 6.2 Thanks!

Attachments

Login to view attachments
SpyDaniel
18
Years of Service
User Offline
Joined: 4th Feb 2006
Location: United Kingdom
Posted: 4th Aug 2006 11:38
This isnt the game design forum.
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 4th Aug 2006 14:08
The DBPro board would probably have been more help to you than here (it's mostly artists, not coders) but I'll try to give you some pointers.

Firstly, you may need to try to work out the 'normal' of the polygon you've hit - I think that there's a plugin that returns the normal of the collided polygon (not sure which one, sorry). That'll give you the angle that you hit.

After that. you'll probably have to have your plane with the sprite on it, actually be subdivided (like a mesh instead of just four vertices) and then do collision for each vertex and do some vertex manipulation. Once you get to corners, you may have to colour the vertex transparent if the distance is too great compared to the other distances.

Hard work, and some rather difficult maths - the DBPro board could help you more.

Heckno
20
Years of Service
User Offline
Joined: 8th Sep 2004
Location: Palm Coast, FL
Posted: 4th Aug 2006 23:42
sparky's collision dll should help work through that....

Login to post a reply

Server time is: 2024-11-26 22:36:47
Your offset time is: 2024-11-26 22:36:47